bijou64: A variable-length integer encoding

26 points by justinweiss


pyfisch

So this a very neat canonical encoding of 64-bit integers. Is it possible to design a canonical-by-construction encoding for arbitrary integers (or more likely: does it already exist)?

snej

I’ve implemented almost this encoding before — I thought of offsetting by 0xF8, but not of offsetting by larger amounts for longer values. Clever!