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: Walnut – A tree-walking Interpreter in C++

3 pointsby p-ranavover 6 years ago

1 comment

mepianover 6 years ago
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 未加载