Top posts

Every blog post that took off on Hacker News, ranked by the votes of its best submission. 49,224 posts.

Any topic
Any year
18992

Eller’s Algorithm (2012)

Eller's algorithm creates 'perfect' mazes, having only a single path between any two cells, one row at a time. The algorithm itself is incredibly fast, and far more memory efficient than other popular algorithms (such as Prim's and Kruskal's) requiring storage proportional to only a single row. This makes it possible…

19012

Cruel optimism and lazy pessimism

Do you remember the avocado toast guy? I read Johann Hari’s Stolen Focus recently (you should read it, it’s great), and I learned that someone1 has come up with a name for this sort of modern reinterpretation of “let them eat cake”: cruel optimism. Cruel optimism, the way Hari interprets it2, boils down to the folly…

19017

C23: A Slightly Better C

One of the established and most popular programming languages is the C programming language. It is relatively easy to learn, and highly practical. Maybe surprisingly, the C programming language keeps evolving, slowly and carefully. If you have GCC 13 or LLVM (Clang) 16, you already have a compiler with some of the…