3 ms·
I would throw out all obscure languages and useless symbols. One character = one code point. I would use 32 bits for a code point. The lower 16 bits would be
by kazinator 3y ago
I would throw out all obscure languages and useless symbols.
One character = one code point.
I would use 32 bits for a code point. The lower 16 bits would be code; the upper 16 bits contain some flags and fields for classification. This would allow simple bit operations to inquire about important properties. There would be a 4-bit flexible type code, leaving 12 bits, some of which would have a code-specific meaning, others fixed. Or something like that.
The goal would be to have a code that programs can work with, without requiring megabytes and megabytes of meta-data about the code.