Best of 2022

The blog posts Hacker News loved most in 2022. 171 posts.

Math & Algorithms
61

Geometry from Another Universe

You start on an enclosed lawn, surrounded by four walls with a doorway in one of them. If you go in and explore, you might begin to feel trapped. You'll find you can visit five different rooms in the house, or go back outside to the lawn, but there's no way to go anywhere else. It's not because there are walls…

77

Timsort (2019)

Timsort: A very fast , O(n log n), stable sorting algorithm built for the real world — not constructed in academia. Timsort is a sorting algorithm that is efficient for real-world data and not created in an academic laboratory. Tim Peters created Timsort for the Python programming language in 2001.

82

Death by hockey sticks

You may be familiar with the term “hockey stick curve,” used describe a trend that has been flat/stable for a very long time, but shoots up at the end of the series in dramatic fashion, resembling the shape of a hockey stick. Hockey can be a violent sport, and it’s easy to get hurt by even one well-aimed swing…