5 ms·
Something inspired me to write a Brainfuck interpreter after reading this so I just put together one in Scheme with a TrollScript compatibility layer. I haven'
by wollw 15y ago
Something inspired me to write a Brainfuck interpreter after reading this so I just put together one in Scheme with a TrollScript compatibility layer. I haven't tested it extensively but it seems to work with everything that I've thrown at it.
https://github.com/Wollw/BrainScript https://github.com/Wollw/BrainScript
I wrote it using Guile 1.8.7 and I have no idea if I'm using Guile specific features or not.
edit: Seems it's still a bit broken. The reverse string example in this thread doesn't work for example.
edit2: Well the reverse string example works now. I changed it to read the EOF as equal to 0.
- hbrouwer 15y agoHere's one a friend and I did in Prolog last year: https://github.com/danieldk/brainfuck-pl https://github.com/danieldk/brainfuck-pl Why? Because it can be done. And actually prolog's tracing mechanism makes debugging brainfuck code quite insightful.
- bromagosa 15y agoI coded one in Pharo Smalltalk last year: http://www.squeaksource.com/BrainFuck.html http://www.squeaksource.com/BrainFuck.html It's so slow it's almost hilarious. It took it 8 hours to print an ASCII mandlebrot fractal frame, NO KIDDING.