Recent submissions

Comment · 1 month ago
That's what I'm used to as well, but in my experience a lot of programmers take fold and reduce to be synonyms. A monoidal reduce is much less "scary" than a general fold. I suspect most programmers have never[1] heard the word monoid, let alone know what it means, and having to remember the meaning of a weird new word is enough to make most people dislike something compared to the simpler more familiar operations.

[1]Or if they have, their only encounter with it is the "a monad is just a monoid in the category of endofunctors" meme.

Comment · 1 month ago
Right. It's just one more thing you have to think about with Reduce that's not something you have to consider with Map/Filter.
Comment · 1 month ago
The accumulator is global state. If you're folding from list<int> to int you're right that it's (usually) effectively a pairwise operation on ints. If the fold is something like list<foo> -> tree<bar> then you have to reason about each intermediate (tree<bar>, foo) -> tree<bar>, i.e. how global state should evolve over time with each update.
Comment · 1 month ago
Map and Filter are nice because they let you reason locally about a single element in isolation. Reduce(Fold) forces you to reason globally about intermediate results. Reduce also forces you to conjure up a "zero" value of the relevant type, which isn't usually difficult but it does constitute some extra mental overhead.
Comment · 1 month ago
People seem to get on with Discord invite links just fine. You don't have to do the "confirm that all these emoji are the same on both your devices" dance to stop spam.
Comment · 1 month ago
One possible solution is to only be able to contact someone if you have received an invitation code from them out of band. E.g. "scan this QR code to add me on signal". Such an invitation code should default to single-use but users should be allowed to generate standing invitations so that businesses and the like can print and post one in their store or whatever. Start getting spam from one of your standing invitations? Just revoke it and make a new one. Presumably the Signal folks can come up with more alternative solutions than the half baked one I came up with after thinking about it for a minute, they're clever cookies.
Comment · 1 month ago
> Finns and Norwegians only are able to bike part of the year.

They very much bike all year round, even in the north where it regularly gets to -20C(-4F) in winter. Biking in snowy sub-freezing weather is really not a big deal as long as you maintain the bike paths as well as the streets.

Source: have lived there, everyone I knew had a bike they regularly used. The only time I can recall where people I knew who usually commuted by bike didn't do so was during an unusually heavy snowstorm. They instead had to walk about half a kilometer to/from where the city had managed to plow the streets and take a taxi. That was decades ago.

Comment · 1 month ago
Comment · 2 months ago
Workplace safety improved massively when labor unions became a thing and workers got a say in safety standards.
Comment · 2 months ago
You don't need explicit consent for functional cookies, e.g. a session cookie or to store what preferences the user has selected on your settings page. It is implicitly given by the user telling you to treat them a certain way. For that you just need a notice somewhere on the page that reads along the lines of "this website uses cookies". It can be an unobtrusive note in your footer.
Comment · 2 months ago
>They "trust me"

>Dumb fucks.

Is an attitude he never grew out of.

Comment · 2 months ago
Market forces are not effective at creating good outcomes when there is an oligopoly.

If there are two producers each with ~50% market share, it's not profitable for one of them to improve their product such that they capture an additional 5% of the market but reduces the profit margin of their product by 10%. If there are 50 producers each with ~2% market share, one of them would happily capture 5% of the market (more than doubling the size of their business!) by sacrificing 10% of their profit margin.

In the Google-Apple duopoly it's much more profitable to engage in tacit collusion than it is to defect.

Comment · 3 months ago
First, copying information isn't wrong to begin with. It is literally the one thing that makes our species special.

Second, even if you are a copyright maximalist the output of an LLM is either

a) not subject to copyright because it is not the creative work of a human or

b) a derivative work of the original training material to which the LLM's operator has no rights.

Since the LLM's operator forcefully asserts that it is not infringing, any wrong that arises from taking their word for it and distilling one model into another rests squarely with the operator of the former.

Comment · 3 months ago
It's not just good PR for politicians to pass "<specific instance> case of already illegal <generic> is explicitly illegal"-laws. Prosecuting a violation of <generic> tends to be a lot harder because in addition to providing evidence for <specific instance> it requires convincing a judge that <generic> even applies to <specific instance> in the first place. You get to short-circuit that ordeal by passing a law that clarifies the intent that yes, <specific instance> is in fact an instance of <generic> without having to go all the way through setting precedent in higher courts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton