r/ruby • u/ranmrdrakono • Jan 22 '13
A optimizing brainfuck compiler in ~130 lines (using LLVM)
http://htmlpreview.github.com/?https://github.com/ranmrdrakono/llvm-brainfuck/blob/master/brainfuck.html
12
Upvotes
2
u/reactormonk Jan 22 '13
Why the superfluous return statements?
5
u/ranmrdrakono Jan 22 '13
I like them to state explicitly that some return value is supposed to be used
2
u/anime_expert Jan 30 '13
Thank you for doing this. You make Ruby easier to scan. I wish you were my future coworkers.
1
8
u/[deleted] Jan 22 '13
That's not a compiler, that's a language frontend.