TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A Brainfuck to C transcompiler in Ruby

7 pointsby cproover 9 years ago

2 comments

killercupover 9 years ago
Interesting! I just read [1] this morning, which describes an optimizing BF compiler (written in Rust) that compiles to LLVM IR. The article also gives a good overview of optimization techniques used.<p>[1]: <a href="http:&#x2F;&#x2F;www.wilfred.me.uk&#x2F;blog&#x2F;2015&#x2F;08&#x2F;29&#x2F;an-optimising-bf-compiler&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.wilfred.me.uk&#x2F;blog&#x2F;2015&#x2F;08&#x2F;29&#x2F;an-optimising-bf-co...</a><p>Edit: Just saw this was also discussed on HN: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10141604" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=10141604</a>
评论 #10144132 未加载
tomsmedingover 9 years ago
Nice work; how about optimising the C output? Ten plusses in a row can be shortened to *p+=10 for example.
评论 #10142926 未加载