3 ms·
Programming languages tend to get programmed in programming languages. The cool part is really how concise this kind of code is in a lisp (from OP): https://g
by dgb23 4y ago
Programming languages tend to get programmed in programming languages.
The cool part is really how concise this kind of code is in a lisp (from OP):
https://github.com/turbopape/scheje/blob/master/src/scheje/interpreter.cljc https://github.com/turbopape/scheje/blob/master/src/scheje/i...
It's kind of magical! If someone explained this code in say a programming lecture, they would be compelled to dress like a wizard.
- Jtsummers 4y agoNot dressed as a wizard, but there is a wizard on the cover of this book which has an entire chapter on writing an interpreter like that: https://mitpress.mit.edu/sites/default/files/sicp/full-text/book/book-Z-H-25.html#%_chap_4 https://mitpress.mit.edu/sites/default/files/sicp/full-text/...
- jgwil2 4y agoOr a fez.
- kkylin 4y agoLike this? https://ocw.mit.edu/courses/6-001-structure-and-interpretation-of-computer-programs-spring-2005/resources/7a-metacircular-evaluator-part-1/ https://ocw.mit.edu/courses/6-001-structure-and-interpretati...