Recent submissions

Comment · 7 months ago
Catala is not at all about "proving the law" formally (I'm not even sure what it would mean?). It's about having a formal language to translate law into that both matches the way law is usually written ("default logic") and allows to make numerical computations on. This can typically be used to implement tax or benefits law so that it is way easier to check that the algorithm computing taxes/benefits is correct compared to the actual state of the art of using general purpose programming languages.
Comment · 8 months ago
It's not even only a matter of tone, the content is just.. wrong and incoherent?

> Each bird tracks about 6-7 neighbors. Not the closest by distance, but the closest by rank. Bird number 1 through 7, sorted by proximity.

I mean, it sounds like it is exactly the 7 closest birds by distance?

Comment · 1 year ago
Comment · 1 year ago
Comment · 1 year ago
Sorry about that, I switched the link. Thanks.
Comment · 1 year ago
Comment · 2 years ago
Cool use of tech!

> I ended up writing a small JavaScript function to maximize font size: it makes the text invisible (via CSS visibility: hidden), tries displaying the text at a very large size, and then tries successively smaller font sizes until it finds a size that lets all the text fit. It then makes the text visible again.

That would be a good application for dichotomic search if performance was ever a problem (I doubt it though).

More generally, having elements on a grid of different sizes should hopefully be much more easy once CSS masonry grid is available.

Comment · 2 years ago
Comment · 2 years ago
This is currently the only comment on the 1st post of the front page. Peak HN moment.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton