I am currently writing my own language and have a few queries about it, namely the custom code-page that it uses. It is well-known that languages have custom code-pages to avoid multibyte characters such as Jelly and Ohm but I have never heard of a language having more than one.
The actual problem here is: I have the commands decided, that take up 256 places on the code-page. But I'm starting on the string compressor that uses a special set of characters that aren't part of the original code-page. I have though of two solutions but wasn't sure if either of these were allowed:
1) Have a code page which uses base 23 (the closest to having 512 characters on it)
2) Use one code-page for the actual program and one for the string compressor.
I'm not sure if either of these are allowed on this site and was wondering if anyone could tell me. However, if you can think of a better solution, feel free to post it as an answer.
2**8=256
characters. \$\endgroup\$ab
does one thing (and only one thing),abc
does two:ab
thenbc
(and thenabcd
does three:ab
,bc
, andcd
). We end up needing N+1 bytes of physical size to store a program of N instructions, but we can have up to 65536 code points. Fewer as we'd probably want0b0000000
in each 256-page to be a noop so that the language is functional. Would be diabolical to golf though. \$\endgroup\$