Arc Forumnew | comments | leaders | submitlogin
Scheme from Scratch - Introduction (michaux.ca)
5 points by pmarin 5454 days ago | 2 comments


1 point by pmarin 5454 days ago | link

How about Arc From Scratch?

-----

3 points by fallintothis 5454 days ago | link

Smart-ass answer: once you build up to mzscheme, you can run Arc. ;)

To elaborate: Scheme and Arc aren't that different to implement. Parsing & literals are largely the same (Arc doesn't use booleans, vectors, et al.), Lisp constructs are fairly standard (quote, if, assign, fn, etc.), and Arc even borrows high-level features like TCO and continuations. Scheme uses hygienic macros, which seem harder to implement than Arc/CL-style macros anyway. Moreover, Arc is simple: the "primitive" things are in ac.scm and the "meat" is in arc.arc. Once you get the Scheme side working, you get the rest of Arc for free.

Good series, though. With the above in mind, it'd be pretty easy to tweak Scheme-from-Scratch into Arc -- and a good exercise, at that.

-----