Hacker News new | past | comments | ask | show | jobs | submit login
Writing A Lisp Interpreter In Haskell (2006) (defmacro.org)
66 points by behnamoh on Sept 14, 2022 | hide | past | favorite | 4 comments



There's a nice tutorial, Write Yourself a Scheme in 48 hours [0] for writing a lisp interpreter in Haskell

[0] https://en.m.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_4...


This one is absolutely golden. Read down typeclassopedia, do this one and you're basically ready to ship.


Nice. The first Lisp interpreter whose source code I was able to dissect (as a student, source code generously provided by my professor), was the Lispf3 interpreter written in (gasp ;-) Fortran.

http://www.softwarepreservation.net/projects/LISP/uppsala/No...

Sidenote: the garbage collector was in file garb.f (IIRC) and I lost this file soon when I did a "rm garb" to clean up my account on the BSD VAX where I kept it. But still have the line printer output :-)


Awesome, thanks for the link. I'll probably use that as a response whenever someone complains about compilation/setup being too complicated - the compilation instructions on page 4 should give them a proper baseline ;)




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

Search: