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.

Resources for Amateur Compiler Writers

21 pointsby davikr9 months ago

3 comments

recursivedoubts9 months ago
The best resource for any new&#x2F;amateur compiler writer who doesn&#x27;t want to deal with code-gen (and even for people who eventually do want to do code-gen) is Bob Noystrom&#x27;s Crafting Interpreters:<p><a href="https:&#x2F;&#x2F;www.craftinginterpreters.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.craftinginterpreters.com&#x2F;</a><p>It is well paced, well illustrated, and demonstrates a very simple recursive descent parser, avoiding all the junk typically foisted on students.<p>I cannot recommend the book highly enough, I use it in my compilers class.
diffxx9 months ago
I unfortunately do not have a good reference of my own, but it strikes me that this list is missing resources for language design. This is the underdiscussed hard part of compiler writing. Good language design can also make compiler implementation much easier.
thelastbender129 months ago
This looks great!<p>I&#x27;d also love to hear from people working on compilers - what are some real&#x2F;fun&#x2F;cool problems to work on for amateur compiler writers?<p>Suspect the obvious candidates are deep-learning, sql engines but those already get a lot of attention.