I'm not aware of a good tutorial online, but Peter Norvig does excellent treatment in his book "Paradigms of Artificial Intelligence Programming". Chapter 23 is devoted to writing a simple compiler. The source for his compiler is online at:
http://norvig.com/paip/compile1.lisp http://norvig.com/paip/compile2.lisp http://norvig.com/paip/compile3.lisp http://norvig.com/paip/compopt.lisp Norvig's book is also full of lots of other cool stuff too, it's worth owning I'd say. Christian Queinnec's "Lisp In Small Pieces" is also supposed to be very good. So I hear anyway, I haven't managed to finish it yet... Hope that helps. ~jeff On Wed, Oct 21, 2009 at 10:58 AM, CuppoJava <patrickli_2...@hotmail.com> wrote: > > Hi, > Clojure started my interest in programming languages, and I'm > wondering exactly how LISP-like languages get compiled ahead of time? > A link to a tutorial would be much appreciated. > > The part that I'm having trouble understanding is the fact that > functions can be defined at runtime. How do you compile a function > that's not defined until after you run the program? > > Thanks for your help > -Patrick > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---