by aetherspawn · 5y ago · 0 comments
This is my favorite answer to why this should or should not qualify as a compiler.
If translating to c is a compiler then anything is a compiler and the term has no meaning at all.
I've created a new language called Brainfuck2 that is exactly the same as Brainfuck except the + symbol is replaced with a t. Clearly my compiler from Brainfuck2 => Brainfuck does not implement the identity function, and is less than 50 bytes.
[1] if you did it right, it's idempotent, which is about as close to trivial as a nontrivial function gets under the lens of symbolic dynamics, but I'm getting a bit far afield