3 ms·
https://en.wikipedia.org/wiki/Brainfuck https://en.wikipedia.org/wiki/Brainfuck > Although Brainfuck programs, especially complicated ones, are difficult to wr
by rrdharan 4y ago
https://en.wikipedia.org/wiki/Brainfuck https://en.wikipedia.org/wiki/Brainfuck
> Although Brainfuck programs, especially complicated ones, are difficult to write, it is quite trivial to write an interpreter for Brainfuck in a more typical language such as C due to its simplicity. There even exist Brainfuck interpreters written in the Brainfuck language itself.
- shpongled 4y agoThe parent comment was about a transpiler targeting brainfuck, not an interpreter. Writing a brainfuck interpreter (or compiler to x86/etc) is indeed trivial... writing a compiler targeting brainfuck is another beast entirely.
- rrdharan 4y agoYou're right of course. Although I guess some do exist: https://github.com/arthaud/c2bf https://github.com/arthaud/c2bf https://github.com/felko/bfpy https://github.com/felko/bfpy