2 ms·
The number of glyphs available by adding additional bytes drops exponentially because each subsequent byte has one less bit available. So I think if we ever we
by hnlmorg 6d ago
The number of glyphs available by adding additional bytes drops exponentially because each subsequent byte has one less bit available.
So I think if we ever were in a situation where > 1 million code points isn’t enough, then we should look at an entirely new way to serialise those code points.
- delamon 6d agoI don't quite get it. 5-byte utf-8 encoding gets extra 5 bits compared to 4 byte, and 6-byte gets extra 10 bits. If you were thinking about bits in leading byte, then yes, you are losing one bit for every extra trailing byte, but you also get 6 bits from it. So adding a byte gives you extra 5 bits.
- hnlmorg 6d agoYeah, you’re right. I might have attempted to do mental arithmetic before coffee…