Top posts

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

Software Engineering
2021
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…