3 ms·
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 an
by davexunit 3y ago
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 http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf
- Jtsummers 3y agohttps://mitpress.mit.edu/9780262047760/essentials-of-compilation/ 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.
- davexunit 3y agoAh, published in 2023! I missed this release. Ordered a copy. Thanks for the link!
- pjmlp 3y agoNow 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-Raspberry-Python/dp/1977509207 https://www.amazon.com/Writing-Interpreters-Compilers-Raspbe...