gLua: A modern Lua transpiler in Scheme
summary
gLua implements a Lua 5.2 front end that transpiles Lua into Scheme-based IR and runs on the Gaia/Guile platform, reusing Scheme modules and calling back into Scheme code. It builds a working compiler pipeline from Lua AST to s‑expression IR, supports module interop and namespace renaming, and experiments with extensions like coroutines implemented via delimited continuations. Metatable support is incomplete, some bugs remain, but the demo runs and targets future backends such as WebAssembly; development started in 2013 and is used in at least one product.
AI-written summary · about
chapters (12)
- 0:00Introduction
- 1:41About me
- 5:51Architecture
- 7:56Code
- 9:15Basic expressions
- 11:50Multiple arguments
- 13:50String format
- 19:35Table format
- 20:30Self
- 22:20Modules
- 25:00Conventions
- 29:00Questions
related talks
29mLunarML: From Standard ML to Scripting Languages
21mGOOL: A Generic Object-Oriented Lanugage
28mModern language engineering with Langium
31mGraal-LSP: A Language Server Implementation with Polyglot Support for the GraalVM
39mIs Go A Good Language to Build Compilers?
42m#lang wishful thinking
34mI quit my job to write my own language: Goby
30mLangium + Sirius Web = Heart
