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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Brainfuck interpreter written in the C preprocessor

118 点作者 pepsi_can超过 12 年前

6 条评论

kibwen超过 12 年前
<i>"There has been much speculation on the turing completeness of the C Preprocessor, but I believe this is the first demonstrative proof that the C preprocessor is turing complete. This uses no GCC extensions and other than the rules for macro evaluation the only 'features' it takes advantage of are token pasting and variable argument macros."</i><p>Can anyone confirm that this is really the first demonstrative proof of this kind?
评论 #4796221 未加载
JulianMorrison超过 12 年前
Now all you need to do is implement COBOL in it, and the gate to hell will open.
jrajav超过 12 年前
He said it doesn't use any gcc extensions, but this still doesn't seem to work with llvm-gcc or clang. :(
评论 #4797766 未加载
tsewlliw超过 12 年前
If there's a recursion limit, can you not write a program that fails to terminate?
评论 #4796157 未加载
评论 #4796479 未加载
wheaties超过 12 年前
Impressive. Massively impressive. Does this count towards your thesis in any way? I'd hate the kind of effort this required to go to waste when PhDs sucks the life out of your for 6-8 years (at least in the US.)
angeladur超过 12 年前
Has anybody checked out [<a href="http://www.ioccc.org/2001/herrmann1.hint" rel="nofollow">http://www.ioccc.org/2001/herrmann1.hint</a>