News for hackers. Stuff that matters.
Re:Contents • Build Your Own Lisp by mepian on Saturday April 29, 2023 @08:28AM (#35752258)
My favorite language implementation tutorial is "An Incremental Approach to Compiler Construction" by Abdulaziz Ghuloum: http://scheme2006.cs.uchicago.edu/11-ghuloum.pdf

What makes it stand out is that it shows you how to build a compiler rather than an interpreter, and shows that it's really not that much more difficult.

There is a book-length "sequel" to this paper that goes into more detail: https://github.com/IUCompilerCourse/Essentials-of-Compilatio...

Re:Contents • Build Your Own Lisp by jeffrallen on Saturday April 29, 2023 @11:52AM (#35754067)
I did this one too get back into programming after a career change and it worked for me.
Re:Contents • Build Your Own Lisp by pjmlp on Sunday April 30, 2023 @08:08AM (#35761828)
One tip I got back in the day (mid-90's), regarding compilers vs interpreters.

Make the compiler output some kind of bytecode in a format, which can be easily interpreted, or with the help of a Macro Assembler, very quickly transformed into machine code.

It won't win performance prices, however it is quite easy to get going.

Naturally fitting these ideas into Lisp like languages is quite straightforward.

Thanks for the book tip.