3 ms·
Javascript Brainfuck Interpreter and Visualizer
- ancarda 14y agoAre there any benefits to learning Brainfuck? I can imagine it might help with learning pointers and how memory works.
- cyriacthomas 14y agoIt will help you understand the turing machine.
- egeozcan 14y agoAt the very least, it will be fun. I can guarantee that =)
- becojo 14y agoVery interesting visualization. It's always hard to wrap in mind what a Brainfuck program does while executing. While reading the source of the interpreter, I found out that the "[" command is not working properly. It is suppose to jump to the next matching bracket when the value of the current pointer is zero. I'm quite sure the creator is aware of that as he wrote on the demo page what it supposed to do. Good work still !
- Sami_Lehtinen 14y agoNice, I finally bothered to play with it. I have read about many languages, ut this was so nice visualisation I wrote my first BF program.
- mehmettekn 14y agoi like the visualization. but i still don't get how Brainfuck works. I guess I'm just not tech-savvy enough.
- smokel 14y agoNice. An improvement would be to highlight the currently active instruction in the source code. Also, for debugging many algorithms it is nice to see the current ASCII character alongside the numeric value in a cell.
- tunnuz 14y agoI don't know brainfuck, however, if you set the code to something like <<<<<<<<<<<<<<<<<<<<<<<<<<< the cursor moves away from the tape.
- sadkingbilly 14y agoNice gui. It needs a fast-forward speed. It also needs to interpret the , instruction for accepting input. Maybe you could use http://www.iamcal.com/misc/bf_debug http://www.iamcal.com/misc/bf_debug (in Debug mode) as a guide.
- primaryobjects 14y ago++[>++++++++++++++++++++++++++++++++++++<-]>.++++++. It would be nice if there was a url parameter to auto-populate the source code and run it. Generated the above with http://goo.gl/aD67C http://goo.gl/aD67C
- j_s 14y agogoo.gl/aD67C -> http://www.primaryobjects.com/CMS/Article149.aspx http://www.primaryobjects.com/CMS/Article149.aspx > Advantages of Brainf-ck as an AI Programming Language