Bootstring Part 1: Decoding ↗
Bootstring is the algorithm underneath Punycode — which is how internationalized domain names like münchen.de become valid ASCII. I’d never looked at how it actually worked.
The clever bit: delta values between code points are self-delimiting, no separator needed, because the threshold mechanism guarantees a natural stopping point. The bias adaptation on top of that is the kind of thing that looks like dark magic until you trace through an example.