Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I really dislike the tiny lisp implementation mentioned in the article. Part of the beauty of a real "lisp in lisp" interpreter is that it is meta-circular -- that is, the interpreter is able to interpret itself.

Using pmatch and some other tricks makes the interpreter shorter but prevents meta-circular evaluation, in which case you could have just defined the lisp interpreter as just being eval.



Exactly. There needs to be cond instead of some pmatch. And the definition of the required 7 primitives for apply, the base for eval.




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

Search: