3 points · by monom · 7mo ago · 1 comment
To solve this, I built kencode as an extension for kotlinx.serialization. It automatically packs booleans and nullability into a single bit-header and uses ZigZag encoding to generate tight Base62 tokens. I wrote up a technical breakdown of the implementation.