skysight-inc/HackerNews huggingface dataset:
We already have the technology to build net zero carbon buildings. But the building trade is both notoriously conservative and extremely effective at lobbying to protect their profits (at least in the UK).

Superinsulated, almost airtight houses with ground and air source heat pumps and solar PV should be mandatory, as should banning of all in home boilers in new builds.

That’s all easily achievable even without some of the recent novel inventions such as engineered wood: https://www.nature.com/articles/nature25476

We have to stop treating the atmosphere as a free line of credit with no limit that we can just dump all our externalities into, or we’ll find out very soon that there is no such thing as an externality at planetary scale. We’re all in the same hermetically sealed box, breathing each other’s farts.

Sorry for the rant. It’s hard to stop once the despair creeps in.
That depends on where you are. In a drywall or wooden house, this would be true, but in concrete apartment building with thick walls and many other networks, it might not be the case.
Hardly. One's a limited certificate, other is a root authority key.
Not everyone calculates all the dimensions of what they're building in advance. Sure it's only convenient when you have integer feet divided by multiples of 2,3 or 4, but those are the first three primes so they're going to be common in a lot of operations. In which case the head math becomes:

4 feet divided by 3

= 4 * 4 inches

= 16 inches (It's perfectly reasonable to stop here, your tape measure isn't going only say 1'4")

= 16/12 feet + 16%12 inches

= 1'4"

vs.

4 meters divided by 3

= 4/3meters + ...

= 1meter + 4%3/0.3 decimeters

= 1.3meter + 4%0.3/0.03 centimeters

= 1.33meters ...

For each level of precision in metric you have to remember one additional digit, where as in the degenerate case for imperial you remember a constant number of digits at each step. Think of it as making multiples of the {1,1,2}th primes more convenient vs making the {1,3}th primes more convenient.
But "life" and "person" are two different things. Why not call themselves pro-person? I think it's because then you have to discuss when person-hood start.

In general, "pro-life" people are not pro-life, they are pro-soul, but they know instinctively that's a debate they can't win, so they change the name. It's, in my opinion, a big, big hypocrisy.
Planning on Using AWS Step Functions? Think Again
When I was getting ready to take paternity leave I figured I'd either a) explore "hardware", or b) take a stab at learning mobile development.

In the end I started playing with Arduinos. After a very short while I got a little addicted, but switched to using ESP8266 devices - because having onboard wifi made the hardware so much more useful.

I've built, experimented with, and torn down a hell of a lot of projects in the three years since. But my absolute favourite project is nothing more than an LCD screen which shows me the next tram-departures from the local stop:

https://steve.fi/hardware/helsinki-tram-times/

That project was hacked up in an hour or two, but later made much more "producty" - being configurable with a web-browser, and being installed in a 3d-printed case I paid somebody to make for me.

Over time I've added little hacks, so now it alternates between showing "$HOUR $DATE" and "$HOUR $TEMPERATURE" in the top-line. Because my wife would often ask me "Is it cold outside?"

I've done more impressive things; such buying a random radio-based temperature/humidity sensor, then having to sniff for the packets, decode the bitstream, and inject the temp/humidity into an MQ queue. But for sheer practicality, and sheer usefulness, the always-on clock and tram display has been worth it.
To highlight some important elements of their work:

A group of researchers, led by a UNSW sustainability scientist, have reviewed existing academic discussions on the link between wealth, economy and associated impacts, reaching a clear conclusion: technology will only get us so far when working towards sustainability—we need far-reaching lifestyle changes and different economic paradigms.

In their review, published today in Nature Communications and entitled Scientists' Warning on Affluence, the researchers have summarized the available evidence, identifying possible solution approaches.

"Recent scientists' warnings have done a great job at describing the many perils our natural world is facing through crises in climate, biodiversity and food systems, to name but a few," says lead author Professor Tommy Wiedmann from UNSW Engineering.

"However, none of these warnings has explicitly considered the role of growth-oriented economies and the pursuit of affluence. In our scientists' warning, we identify the underlying forces of overconsumption and spell out the measures that are needed to tackle the overwhelming 'power' of consumption and the economic growth paradigm—that's the gap we fill.

"The key conclusion from our review is that we cannot rely on technology alone to solve existential environmental problems—like climate change, biodiversity loss and pollution—but that we also have to change our affluent lifestyles and reduce overconsumption, in combination with structural change."
@jacquesm: I can't reply to your post, so do it here:

Even assuming you do know what you are doing, it is still very irresponsible to tell this to people who will have no way to make use of the knowledge safely.

When somebody has their expensive laptop swollen they have incentive to delude themselves it is ok. It is not and it is dangerous. There is no way to tell the reason the battery is swollen and so the thing they should do is to not charge the battery and get it replaced.
> if someone wants your keys, the can break your knees

Whose knees to break though?
In fact, the researchers say the world's affluent citizens are responsible for most environmental impacts and are central to any future prospect of retreating to safer conditions.

"Consumption of affluent households worldwide is by far the strongest determinant—and the strongest accelerator—of increased global environmental and social impacts," co-author Lorenz Keysser from ETH Zurich says.

"Current discussions on how to address the ecological crises within science, policy making and social movements need to recognize the responsibility of the most affluent for these crises."
...
"The structural imperative for growth in competitive market economies leads to decision makers being locked into bolstering economic growth, and inhibiting necessary societal changes," Prof Wiedmann says.

"So, we have to get away from our obsession with economic growth—we really need to start managing our economies in a way that protects our climate and natural resources, even if this means less, no or even negative growth.

These quotes taken from: https://phys.org/news/2020-06-overconsumption-growth-economy...
Your point about the fractal structure of tribalism reminded me of this joke:

I was walking across a bridge one day, and I saw a man standing on the edge, about to jump. I ran over and said: "Stop. Don't do it."

"Why shouldn't I?" he asked.

"Well, there's so much to live for!"

"Like what?"

"Are you religious?"

He said: "Yes."

I said: "Me too. Are you Christian or Buddhist?"

"Christian."

"Me too. Are you Catholic or Protestant?"

"Protestant."

"Me too. Are you Episcopalian or Baptist?"

"Baptist."

"Wow. Me too. Are you Baptist Church of God or Baptist Church of the Lord?"

"Baptist Church of God."

"Me too. Are you original Baptist Church of God, or are you Reformed Baptist Church of God?"

"Reformed Baptist Church of God."

"Me too. Are you Reformed Baptist Church of God, Reformation of 1879, or Reformed Baptist Church of God, Reformation of 1915?"

He said: "Reformed Baptist Church of God, Reformation of 1915."

I said: "Die, heretic scum," and pushed him off.
It's the fundamental economics of platforms. At the same time that they are very democratic, they are also very monopolistic. It's weird and not something you should analyse without undoing your intuition about companies. The economics is very different.

Book recommendation: Modern Monopolies by Alex Moazed
Software should be designed to last
Same here, but now when I run past other people using wireless devices the sound breaks up. Still probably better than a cable swinging around.
getAncestor is built-in: element.closest() :)
The gas tank on top of a bus in Stockholm exploded when the bus was about to enter a tunnel protected by a metal bar: https://youtu.be/4pVStENP_Y4
You should read the article first. What you're saying is the opposite of what the article is about, which is thousands of infants left in state orphanages.
The problem with these discussions is everyone seems to assume colonising a galaxy is just like colonising a planet - so you have an Age of Exploration, and then you set up colonies, and stuff happens, and you have an Empire or a Federation, or something.

This is really, really unlikely to be true, for all kinds of reasons.

There's a huge difference between colonising a galaxy - which assumes some kind of uniform culture, and common strategic goals - and simply throwing more or less living/sentient stuff around a galaxy and hoping some of it sticks.

We've gone from barely being noticeable on Earth to being in danger of being responsible for a planetary extinction event in around 12,000 years.

We know nothing about building a stable culture that can last for millions of years. It's unlikely any sentient species will be able to learn that skill without making a lot of mistakes - some of which will be terminal.

So galactic colonisation requires a lot more than solving the mechanics of transportation. And the "few million years at 0.1c" estimate is going to be Not Even Wrong.
Harvey-van der Hoeven. And yes it is. But this is an asymptotic cost meaning you have to have absolutely enormous integers before the cost will be lower than the old algorithm. In fact, the crossover is so large it is quite possibly out of the range of anything we'll practically ever compute.

In particular, crypto typically works with integers zillions of times smaller, so you certainly don't want the Harvey-van der Hoeven algorithm for that.
There are other frameworks that do favour a "drop in" style of development, with native Web Components being one of them. I used Riot for this for a while, and tried native Web Components as well.

My current approach for zero dependency/build, one off UI components is:

<div class="some-component" data-props="{}">
...more HTML...
<button class="some-component__button">Click Me</button>
<script type=text/javascript">
(function() {
var component = document.currentScript.parentNode;
var props = component.dataset.props;
var button = component.querySelector('.some-component__button');

button.addEventListener('click', function(){
...doStuff...
});
})();
</script>
</div>

If it needs a global state, or is part of a larger more dynamic UI I'll start looking at a framework. But for an otherwise static website, it's so much easier to do it that way than it is to introduce an entire framework and build pipeline in order to do a handful of JS components. It's also a somewhat defensive approach, useful in legacy applications with lots of hodge podge JS going on. Generally speaking, you don't cause any problems, and don't encounter any conflicts.

I used to have a class based/web components way to do this, but I don't even bother with that anymore. You don't gain anything from introducing complexity in this circumstance.
So there's a big question here (beyond the obvious, existential one) for the VC and startup community. What role do we play in all of this? Can we play a constructive role? What might that look like?
Title has become mangled, should be "The reasons why people become incompetent at work".

TLDR, the Peter principle: "Every employee tends to rise to his or her level of incompetence – Laurence J Peter".

A quote I didn't know, he apparently also said that competence is in the eye of the beholder.
So why were thousands of children sent to state orphanages, if adoption was normal?

There's some kind of disconnect here where it seems like Romanians are brigading on my post without actually reading the article.
Sure, but the computer must have been built by some form of life ultimately (possibly through a long line of other computers). If your point was only that artificial life created by a form of life could vastly outlast that form of life, then I agree that that is a very good point.
They will still cause a fire in the garbage truck.
Those trucks will usually compress the trash which will expose the lithium to air.
Apple also doesn't allow any browser technology other than their built-in WebKit so all browsers are internally the same on iOS.

They also doesn't support free VP9 video coded because they are part of competitive FFMPEG.

I didn't like Apple due to this gatekeeper/walled garden but I started to hate it more after watching "Steve Jobs: The Man in the Machine" documentary. Such a big company and still they did illegal option backdating, avoiding tax in Ireland, etc.

It needs more time for people to realize their mistake of supporting this company.
Building manageable, loosely-coupled serverless solutions with Azure Event Grid
The difference is the screen refresh rate.

On 60Hz my wired and wireless mouse feel exactly the same.

On 240Hz, yeah, there is a lot of difference.
Cloudflare Workers KV Introduction
I don't know much js, but it seems fairly straightforward. Here's some comments:

// create an element with 'tag'
const elem = document.createElement(tag)

// copy properties into the new element one at a time
for (const k in props) {
elem[k] = props[k]
}

// append child elements one at a time
for (const kid of kids) {
elem.appendChild(kid)
}

// and that's it
return elem

Applied recursively, you can make dom elements with very little boilerplate.
Extending Kubernetes Cluster; Kubectl Plugins and Krew
You're fearmongering all over this thread. Stop digging, you are at hobbyist level with your knowledge on a forum with professionals. if you can't tell the difference between 'batteries will swell some during their operating life' vs 'excessive swelling is a sign things are about to go pear shaped' then you shouldn't be working on your own laptop period.

Any laptop older than 12 months will have a slightly swollen battery (even if that swelling is accommodated by the case immediately around the battery so you won't see it).

HN stands for 'hacker news', if batteries scare you then don't use them. The same goes for powertools, explosives, household cleaning products, chisels, hammers and so on. Danger is a relative thing. Knowing the head fire marshall of a very large (2 million inhabitants) European city: if you are afraid of fire then you should disconnect all your wall-warts. Those are the cause of a very large number of fires and the best way to deal with them is to switch them all off when you leave your home. Batteries are a very distant second to that and stories of them catching fire are rare enough that they make the news. See also: Samsung and Boeing.

https://en.wikipedia.org/wiki/Samsung_Galaxy_Note_7#Battery_...

https://en.wikipedia.org/wiki/Boeing_787_Dreamliner_battery_...

Note that a perfectly good battery can go into thermal runaway in a couple of seconds if mistreated, the amount of energy these pack is very impressive and if that energy is released quickly then the results can be catastrophic, even resulting in the hull-loss of airliners if the combination of circumstances is particularly bad:

https://safetyfirst.airbus.com/lithium-batteries-safe-to-fly...
> Since then several protocols have shifted towards preferring Elliptic Curve Diffie-Hellman key exchange which doesn't suffer from the same attack ..

There was a strange twist in this story: "Then, in August of this year, NSA freaked out.". And this guy is a professional.

https://blog.cryptographyengineering.com/2015/10/22/a-riddle...
IEEE World Congress on Computational Intelligence 2020
> Protobuf can support zero-copy of strings and byte arrays embedded in the message.

Just to be clear, even this more limited notion of "zero copy" isn't currently supported in the open-sourced version of protobuf. It is supported in the internal Google version, which is presumably what you're thinking of. There is an open issue [1] tracking the possibility of making it available in the open source version too.

[1] https://github.com/protocolbuffers/protobuf/issues/1896
If you just wanna disassemble the laptop, any screwdriver that fits is good

Once you unscrewed it you can replace the screws

People don't do it because are afraid of voiding the warranty or because just don't care
> but about giving an argument a short name.

compression is the mother of persuasion
I'm building Concise Encoding, which is schema-less, with a 1:1 compatible text and binary representation. The binary format supports zero copy for string and binary values.

The reference implementation (in go) is 90% complete, enough to marshal objects except for recursive support.

https://github.com/kstenerud/concise-encoding/blob/master/RE...
Fairly recently there was a story about somebody getting locked out of their gsuite account because their domain dns was hacked (IIRC) so a custom domain also introduces an additional attack vector.
Yeah. It's possible that Bluetooth LE Audio could improve this, we'll see once they finally get around to releasing the specs. It certainly sounds like it's designed to support bidirectional audio links without the stupid HSP/HFP divide of classic Bluetooth. (There's more mainstream demand for this feature now due to things like voice assistants.)
Best chance of anything hypothetically being possible in the very very far future would be not going faster than light, but contracting and expanding space. There's plenty of problems with that theory, one of many would be that it would hypothetically have an event horizon at the front while "moving" faster than light, which would be a big problem because the Hawking radiation from it would kill stuff. It's called an Alcubierre drive and it's a fun thought experiment at the very least. Due to the energy constraints if it was ever hypothetically possible it would need to envelop the vessel in a bubble that's downright infinitesimally small. You could pass right through a planet and not hit anything.

https://en.wikipedia.org/wiki/Alcubierre_drive

But the only scientific method to exceed the speed of light is to loosen the fiber optic cables on your neutrino detector.

https://en.wikipedia.org/wiki/Faster-than-light_neutrino_ano...
That's not going to work. People will take features over unknown future uncertainty. Users just have to realize the past mistakes of other companies and pressure the developers to open the format.
Can anyone with a CS undergrad from an elite US college (Stanford, Berkeley, MIT, Carnegie Mellon) comment on whether they feel their undergrad covered 100-200 hours worth of these subjects?

As someone with an Australian CS degree, I feel like my curriculum covered less than half of this properly.
querySelectorAll is a lot slower than old school functions. You would be tempted to say who cares, but then you load Gmail and wait 2 seconds for UI to render.
> there's no intrinsic value to your stronger definition of zero-copy

> A direct mapping to memory is not always optimal for performance.

You comment seems to imply that the first statement follows from the second, but it does not. You're right, a direct memory mapping might not be optimal in some situations, but then again in some others it might be optimal. So this feature isn't always useful to everyone, but it doesn't follow that it's never useful to anyone.

Even if you worked on this on a range of projects at Google, isn't it possible that there are people working on systems that have rather different performance characteristics than Google's systems?
Here is a lifestyle change for you: ‘A step farther out’ by Jerry Pournell.
Anti-humanism on nature.com rubs me the wrong way.
To HN readers in general, here is how to understand how the FAA thinks, and why they will never deviate:

1) Passengers are assumed, correctly, that they cannot evaluate the risks of a flight, and FAA regulations must protect them.

That's why you won't see passenger drone flights in this century in the US, or any advertised "ride sharing" between strangers.

(The FAA has been slow on banning helicopter skid pop-out floats for sightseeing flights, but I predict that will change.)

2) That VFR and IFR flights must be physically separated.

That's why everything that moves will be required to have ADS-B out.

If you're involved in any kind of business model that opposes the above, it is only a matter of time until the FAA stops you. You're welcome to use the words "doctrine" or "never" when explaining the above.
It really does not

There are tools that work and tools for professionals, tools work, professional tools are for people that do it as a daily job and their job depends on them
From what I understand: tech, mission, and tickets.

Say what you want, the NSA probably has some of the most interesting tech problems you'll encounter. Part of that is due to the unique job that they do-- by definition, they're doing things that nobody else in the US is allowed to do, so they need people to solve problems that don't exist elsewhere. Part of that is due to having a huge amassed knowledge particular to their area of work, which allows them to work on things that other people/organizations simply don't even know about.

Also: the NSA has supercomputers that make your eyes bleed. A buddy of mine who worked there says that even their power bills are classified. Back in the day, they developed a lot of highly specialized, one-of-a-kind hardware. Cray processors had a popcount instruction that was supposedly put in place at the NSA's behest. They can afford to get specialized treatment and demand specialized features from folks who build their computers. If speculation regarding their signal collection capabilities is true, then they also have to have serious signal processing and communications tech, too.

The NSA has interesting challenges and cool tech to work with. That can attract a LOT of people.

Another issue is mission. Look, you may not agree with the NSA's techniques and methods. But at least the original goal of the NSA-- breaking codes used by foreign adversaries to gain an intelligence and military advantage-- is pretty standard military fare, and not inherently evil. SIGINT played a major role in shortening WWII, and who knows may have happened since then (since it's all classified). The folks I know who work there are proud of their work, and believe they're doing the right thing. I'll note that these are GOOD people whom I respect, which leads me to believe that the NSA isn't just moustache-twirling and evil cackling. Some people work there because they believe they are genuinely serving their country.

Finally: tickets. Several of the folks I know have gone to the NSA, worked there a few years, then jumped ship to take industry jobs with clearances. Government contractors pay a premium for cleared workers, and if you show up with a TOP SECRET clearance in hand, your job interview chances just got better. It's a good way to set yourself up for decent job security and comfortable pay.
But they don't

It's a myth
Never set .innerHTML !
document.createElement is very tedious. But you can hide them inside pure functions that returns your component. You could for example put the confetti button example into a function and whenever you want a confetti buttton const button = confettiButton("hurray"); body.appendChild(button);
Or you could make a class and extend the Button into a confetti button.

You can then use innerText to change values. And use other DOM methods instead of redoing the innetHTML. When using function abstractions the DOM updates can be private, and you don't have to worry about innerHTML elsewhere overwriting your changes.

Basically React was invented to overcome spaghetti innerHTML, but you can solve the problem with vanilla JS too, just stop thinking about the DOM as HTML, think of it as a tree.