Best of 2021

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

Software Engineering
882

Branchless Coding in Go

So, I was recently inspired by a coworker’s design to pack what would have been JSON (JavaScript Object Notation) data into a bunch of bit fields in an array of 64-bit elements. Binary arithmetic, bit-packing, and high performance are fun for me, so I thought of some ways to improve it, for learning purposes. Then I…