786 karma · joined Aug 3, 2019 (7y ago) · 145 submissions
comment 19h ago · link · parent
There are two kinds of errors: Those that you expect to happen in production and should therefore be handled explicitly. And those that should never happen in production and should therefore simply crash the process.
Any sufficiently important production system needs to be able to recover from process crashes anyway (all code runs on physical hardware after all, so in rare instances it could crash despite your code being 100% correct).
If you decide to also try to recover from panics, that introduces another failure recovery mechanism that adds complexity despite being largely redundant. It's easy to get wrong, extremely cumbersome to test and verify, etc.
There can be many unfortunate consequences of the deeply misguided idea of unwinding panics and, worse still, attempting to recover from them, mutex poisoning is just one of them.
2.
Held together by spare time: Reviving wiki.alpinelinux.org during PHP2Shell(lambdacreate.com ↗)
4 points · by renehsz · 20h ago · discuss
comment 22h ago · link · parent
For some bizarre reason, the EU is obsessed with stripping people of their anonymity in the name of "transparency". What is this supposed to achieve? Especially for small open-source app developers like OP. The only ones who benefit are spammers and stalkers.
comment 1d ago · link · parent
A successor would inherit the org chart, but wouldn't have decades of trust and good relationships with crucial suppliers and customers.
This is especially true for Nvidia as they're not vertically integrated. They don't own the supply chain. They need to be on very good terms with TSMC and others.
If a new CEO came in, how could anyone in the industry know they're trustworthy when hundreds of billions of dollars are at stake? Jensen has a >30-year track record of being trustworthy.
I'm not saying this in support of his return. I'm just stating the reason why finding a good successor is nearly impossible.
comment 2d ago · link · parent
The US has at least several tens of thousands of square miles that are suitable for massive solar farms (after excluding all urban/inhabited land, farmland, forests, national parks, mountainous regions, etc.)
I'm not saying it would be easy to fill huge areas like that with solar, but it's not completely out of the question either.
comment 2d ago · link · parent
But at least we could stop the externalization of costs. Everyone (person or company) who causes environmental harm has to pay for the cost to society. Then, market forces will embed those costs into prices. People and companies would no longer have to be well-meaning and well-informed, because by picking the cheapest option, they would also be picking one with little negative impact on society.
comment 2d ago · link · parent
I just cannot understand how anyone would find this comparison useful... oh wait, I see, it's not to educate people, it's to push a false narrative. Now I understand!
> 18 gigawatts
That's a figure we can work with!
comment 4d ago · link · parent
I, on the other hand, wish I'd gone with a Framework instead of System76.
My System76 devices keep breaking and because they're a few years old already, obtaining replacement parts is a challenge. And forget about upgrading them or giving a laptop a second life as a desktop.
13.
Jujutsu Primer(ethanlowman.com ↗)
210 points · by renehsz · 4d ago · 196 comments
comment 6d ago · link · parent
But here’s a hypothetical question I’d love to hear yall's opinions on: If a small hardware company couldn't survive paying out all refunds as promised, which of the following two scenarios is worse?
1. The company tries to honor refund promises and goes bankrupt. Nobody receives new hardware or ongoing support anymore. Customers who preordered might still go home empty-handed depending on how much the company owes to other creditors.
2. The company offers store credit instead of the promised cash refunds and stays in business. They can keep producing devices and provide support to customers. But preorder customers cannot get their cash back, only stuff from the store.
To be clear, I'm not saying that Purism is/was in this situation. Obviously, R&D of a phone is very expensive and they don't sell huge volumes, so they have to jack up prices to stay afloat. But I don't what financial situation they're in, maybe they're doing perfectly fine, maybe not.
Regardless, I'm curious what people would prefer them to do in the hypothetical scenario that they were extremely short on cash.
comment 1w ago · link · parent
They could also do neither and build carbon-free generation (and storage and transmission that goes along with it) from the get-go. That's what I'm arguing for. Not simply making grid operators deal with it.
I'd love to see some of that insane AI money be used to make actual progress towards net-zero emissions now.
> the best thing might be to use turbines temporarily to avoid raising short-term electricity prices for ordinary people, but only for the time it takes to build some new non-carbon generation to replace them
My fear is that some of these gas turbines aren't as temporary as they want people to believe. But even if we take their word for it, why spend money on a temporary solution and on a permanent solution later, even though we have the technology and supply chain to build the permanent solution now?
> renewable energy isn't just cleaner, it's cheaper
I agree that it's fundamentally cheaper, though some politicians seem to be dead set on skewing the market unfairly towards fossil fuels.
> It just takes longer to deploy, not least because the permits cost more and take longer than they ought to.
And I agree that delays due to permits are problematic, but I'd love to see AI money and momentum being used to overcome these hurdles. It shouldn't take longer from a technical perspective.
Right now, the voting public largely opposes datacenters being built at all, and that can hardly be the outcome we should strive for.
Instead, we should be building datacenters that are fully sustainable from the get-go and, if anything, have a positive effect on grid prices.
Rather than rejecting datacenter projects outright, let's push them to fulfill that goal for the benefit of all of us. Hundreds of billions of dollars from the AI hype should be enough to do it.
comment 1w ago · link · parent
Kids don't need to have their phones on them during class "for safety". On the way to and from school, sure, but once they're at school, stow the phones somewhere.
comment 1w ago · link · parent
Why would Europe want to make itself energy-dependent on another continent? It's unnecessarily risky and prone to disruption by hostile nations.
The move from fossil fuels to renewable energy sources is an amazing opportunity to gain back our energy sovereignty, so let's not fumble it by putting our energy generation physically outside of our control.
comment 1w ago · link · parent
Unfortunately, the gas-fired turbines that are being built now feel like quite a regression. Or the additional load on the public grid, which in some places barely has any spare capacity left.
It's not an unsolvable problem though. A sustainable hyperscale datacenter can be built. There just isn't enough of an incentive as long as buying gas and polluting the air is cheaper (because the cost of both is externalized on society)
comment 1w ago · link · parent
The proliferation of Shopify has also made a night and day difference for the typical shopping experience on small online stores.
I remember trying to fight my way through broken checkout flows and eventually just buying on Amazon instead because their store actually works. These days, many of those small retailers have migrated to Shopify, which gives customers the peace of mind that the experience won't be hopelessly broken.
comment 1w ago · link · parent
Him having an affair with subordinates and a customer is the part that got him fired. That's no longer a personal matter, it has crossed well into the realm of professional misconduct. The problem isn't cheating, it's the abuse of power and conflict of interest.
comment 1w ago · link · parent
But let's not forget that an overview of what’s even possible is extremely valuable in its own right. When these students are later faced with a problem X, they'll remember that there was this thing called Y which might help. They won't know the details, but at least they'll know where to start looking.
This is especially important if you want to rise to managerial positions, and it might become more relevant now that AI agents are increasingly capable of implementing things: Solving problems is not all about how to do something, but also about knowing what can be done at all. Laypeople often have no idea what's possible, but engineers do, which lets them be creative with their tools.
All of this is not to downplay the value of true in-depth knowledge of a specific subject. But those subject matter experts typically gain their expertise on the job, or at a later stage in their academic life when they conduct proper research. An overview course like this one doesn't hurt even if many students will choose to specialize later on.
comment 1w ago · link · parent
Operating systems we use today were designed in an era when security and isolation were an afterthought at best. Plenty of security features have been bolted on over time to enable what we now call containerization, such as cgroups, namespaces, seccomp-bpf, capabilities, etc. But each part was added separately with its own API and tricky edge cases. Docker is needed as a midlayer to package them up into something a normal person can use.
If, however, the OS was designed from the ground up so that every process is only handed exactly the resources it needs (files, network endpoints, device handles, ...) as capabilities, every application would simply run sandboxed by default. Instead of taking away / altering permissions from a process that starts out with all permissions, we'd only add the exact capabilities it needs via a unified and clean system API. Capabilities handle not only permissions but also make namespacing practically free. The only Docker-like thing we might still need is a way to package and distribute images, but that's a much simpler problem to solve.
This is not a new idea, Fuchsia basically implements this. seL4 provides the necessary foundation as well. Plan 9 at least has per-process namespaces, which get us most of the way there.
comment 1w ago · link · parent
I should have made it clear that I was referring to the generic/impersonal "you", the HN readers, not "you" as in the specific account I was replying to. Sorry about that! I should have worded it more precisely. It certainly wasn't meant to be condescending.
Re puzzle difficulty in The Witness, this is the part of your previous comment that confuses me:
> The hardest part of the Witness is the fact you aren’t told the rules of the line-drawing puzzle you’re presented. But often, they’re not that hard to discover. It’s not half as clever as Blow thinks it is. It’s essentially “what number am I thinking of”? Then being called a fool when you didn’t guess 12,859,155.
I might have misunderstood this paragraph the first time I read it and wrote my reply. But now that I've read it about ten times, I still don't understand what exactly you're referring to.
On the one hand, you say that the rules often aren't that hard to discover. Fair enough. On the other hand, you compare it to guessing the number 12,859,155. I took that to mean the rules are very hard (take a lot of tries) to guess correctly.
I don't remember the latter being true at all. There is some guesswork initially to discover the rules, but those rules then apply to a lot of puzzles, and different rules combine to form larger and more interesting puzzles.
What I personally found most satisfying was eventually gaining a meta-understanding of how the rules are structured, and sometimes being able to predict what the new rules for a set of puzzles will be, taking away the guesswork completely.
(Granted, it's been a long time since I played the game at release, so maybe I'm misremembering things or viewing them through a lens of nostalgia.)
> And Order is sokoban. Just, like, a lot of it. [...] They are not mind-expanding journeys into the very nature of the meaning of puzzles.
For me personally, Blow's games have been mind-expanding. But I rarely play puzzle games. If I did, I might already be familiar with a lot of these ideas and find the puzzles boring. For me, the difficulty was just right. But I can imagine that people who play a lot of puzzle games need more to find something interesting, and that's fine.
So if your criticisim is that the puzzle rules aren't interesting or sophisticated enough for some people, then fair enough. They are interesting enough for me, though, and judging by sales and reviews, a lot of other people feel the same.
Either way, none of this is meant personally, I just enjoy talking about these games. Also, I can't speak to Blow's politics or other opinions people have brought up elsewhere in this discussion. All I can say for sure is that I've really enjoyed his games, and other people might too.