by andrewvc · 13y ago · 0 comments
I can highly recommend the book Lisp in Small Pieces, $93 on amazon, and worth every penny. Walking through the building blocks and design decisions of a language changes the way you code. Every language you look at winds up being internally translated into your own IR whether you've written a compiler or not. Understanding the inner workings of a compiler however adds depth.
I basically teach baby compiler theory at the end of my Python book without people even noticing because I think parsing at a minimum is so important.
I think Forth may have that honor, and people have done some pretty amazing things with simple Forth implementations. I do agree, though, that writing a simple Lisp compiler is a worthwhile exercise, and the Lisp In Small Pieces is a book everyone should have on their shelf.
Write yourself scheme in 48 hours (with haskell). Great learning experiance!!
Is there something special in clojure macros ?