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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Walnut – A tree-walking Interpreter in C++

3 点作者 p-ranav超过 6 年前

1 comment

mepian超过 6 年前
It&#x27;s always great to see new people work on their own programming languages, but I have to ask: why a tree-walking interpreter? This is probably the least optimal way to implement a language, whether you are a beginner or not. While interpreters are often believed to be the right way for beginners to implement languages, compilers are actually much easier to write, much easier to maintain, and yield much better performance than interpreters if you are doing anything more than a throwaway exercise, and judging by this Github page your ambitions are larger than that. If you don&#x27;t know where to start with compilers, I recommend reading Abdulaziz Ghuloum&#x27;s &quot;An Incremental Approach to Compiler Construction&quot; paper [0], and then moving on to Andrew Appel&#x27;s &quot;Modern Compiler Implementation in ML&quot; book.<p>[0] <a href="http:&#x2F;&#x2F;scheme2006.cs.uchicago.edu&#x2F;11-ghuloum.pdf" rel="nofollow">http:&#x2F;&#x2F;scheme2006.cs.uchicago.edu&#x2F;11-ghuloum.pdf</a>
评论 #18572040 未加载