Show HN: A Brainfuck to C transcompiler in Ruby(github.com)
github.com
Show HN: A Brainfuck to C transcompiler in Ruby
https://github.com/prophittcorey/bft
4 comments
Nice work; how about optimising the C output? Ten plusses in a row can be shortened to *p+=10 for example.
Thanks-- that's a good idea. I didn't think of optimization at all but that sounds like a fun step to take next.
[1]: http://www.wilfred.me.uk/blog/2015/08/29/an-optimising-bf-co...
Edit: Just saw this was also discussed on HN: https://news.ycombinator.com/item?id=10141604