Hacker News new | past | comments | ask | show | jobs | submit login

As mentioned by the author, "An Incremental Approach to Compiler Construction" [0] is one of the best papers I've ever read and I highly recommend reading it and implementing even just the first few steps. It was the first resource I found that made writing compilers approachable. I made it through about half of the steps (about as many as the author of this post) before setting it aside for awhile. I'd like to pick it back up and keep going sometime. I also recommend writing the compiler in lisp if you already know lisp, rather than C. :)

[0] http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf




https://mitpress.mit.edu/9780262047760/essentials-of-compila...

Essentials of Compilation by Siek (Racket and Python versions available) are book-length treatments of that paper's topic.


Ah, published in 2023! I missed this release. Ordered a copy. Thanks for the link!


Now I have to look into these as well for my library. Thanks for the heads up. :)

By the way, for the Python folks with a Pi around, this one is also an interesting read to dive into what it means to write a compiler

"Writing Interpreters and Compilers for the Raspberry Pi Using Python"

https://www.amazon.com/Writing-Interpreters-Compilers-Raspbe...




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: