Skip to content
Archive of posts filed under the Lua category.

Lua Programming Gems out!

Hot from the presses, the book is finally here. The table of contents, the front matter and the free chapter 2 are in the book homepage.

Bibliography of Programming Languages Implementation

Doing some research about compilers, interpreters and virtual machines, I have gathered some bibliography from several resources. Here it is, in no particular order:

Essentials of Programming Languages, by Daniel P. Friedman, Mitchell Wand and Christopher T. Haynes
Programming Language Pragmatics, by Michael L. Scott
Smalltalk-80: The Language and Its Implementation, by Adele Goldberg and David Robson
Writing Compilers [...]

Toy Scheme interpreter in Lua

As part of my Lisp studies, I have implemented a toy Scheme interpreter in roughly 1000 lines of Lua. It is here. It supports tail-call optimisation, lexical scope for closures, and first-class continuations via call/cc.
I have departed from the traditional approach of implementing a Scheme interpreter in Scheme itself because I wanted to avoid possible [...]