2 ms·
It's not "insanely efficient", it's just really small. Like Forth, but without the expressive power, conceptual elegance, efficiency, or speed of development. :
by silentbicycle 18y ago
It's not "insanely efficient", it's just really small. Like Forth, but without the expressive power, conceptual elegance, efficiency, or speed of development. :)
I wrote a bf interpreter a few weeks ago. (It's one of those things which is just tricky enough to be good for trying out languages, btw.) You can't call anything that makes you deal with strings by repeatedly incrementing cells to set ASCII codes efficient, seriously. One of my test programs was a rot-13 program, and it was slo-o-o-o-o-ow.
Also (wear a helmet before you read this ;) ), there's an i386 native code brainfuck compiler, written in brainfuck: http://www.nada.kth.se/~matslina/awib/ http://www.nada.kth.se/~matslina/awib/