New

The latest blog posts to take off on Hacker News. 2,470 posts.

Any topic
2017
580

A Branchless UTF-8 Decoder

This week I took a crack at writing a branchless UTF-8 decoder: a function that decodes a single UTF-8 code point from a byte stream without any if statements, loops, short-circuit operators, or other sorts of conditional jumps. You can find the source code here along with a test suite and benchmark:

584

Lost Laughs in Leisure Suit Larry

Heads up: This post is going to have some rougher language than what I normally post. We’re going to be talking about the kinds of things teenagers type into videogame text parsers, which means we’re going to get into some naughty words and otherwise unusual subject matter for this blog. I don’t know why I’m warning…

587

Uncle Bob and Silver Bullets

A while back I wrote that Robert Martin was ruining software by being too good at programming. That was supposed to be a joke. Since then he’s done his damndest to actually ruin software by telling people they’re doing it wrong. His most recent response where he yells at software correctness was the breaking point for…