Best of 2021

The blog posts Hacker News loved most in 2021. 1,517 posts.

Software Engineering
932

JSON with Commas and Comments

Summary: JWCC is a minimal extension to the widely used JSON file format with (1) optional commas after the final element of arrays and objects and (2) C/C++ style comments. These two features make it more suitable for human-editable configuration files, without adding so many features that it’s incompatible with…

935

Reading code is a skill (2020)

I’m inspired to write this post because Someone Is Wrong On The Internet. Of course a more accurate statement would be “I disagree with some aspects of what someone on the internet said, even though they have an entirely valid point of view”. But that’s less catchy. I saw a Tweet I violently agreed with, so I…

941

Racket v8.3

_posted by John Clements_ Racket version 8.3 is now available from https://download.racket-lang.org. Racket removes syntax arming and disarming in favor of a simpler system of protected syntax operations, along with other updates to the syntax sys...

946

All Horses Are the Same Color

Problem: Show that all horses are of the same color. “Solution”: We will show, by induction, that for any set of $ n$ horses, every horse in that set has the same color. Suppose $ n=1$, this is obviously true. Now suppose for all sets of $ n$ horses, every horse in the set has the same color. Consider any set $ H$ of…

951

Six ways to make async Rust easier

Asynchronous Rust is powerful but has a reputation for being hard to learn. There have been various ideas on how to fix the trickiest aspects, though with my focus being on Tokio 1.0, I had not been able to dedicate much focus to those topics. However, Niko’s async vision effort has recently started the discussion…