TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: A Brainfuck to C transcompiler in Ruby

7 点作者 cpro超过 9 年前

2 条评论

killercup超过 9 年前
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 未加载
tomsmeding超过 9 年前
Nice work; how about optimising the C output? Ten plusses in a row can be shortened to *p+=10 for example.
评论 #10142926 未加载