Lua
A tiny language designed to be embedded.
💡
This course has 3 lessons. Start with the first one and use the next / previous links at the bottom of each lesson — the sidebar keeps the whole course in order.
Lessons
- Lua syntax and typesLocals versus globals, the eight value types, 1-based tables, and the operators that surprise newcomers.
- Tables, metatables and object orientationHow __index and __newindex turn plain tables into classes, proxies and read-only views.
- Embedding Lua in a host programThe C API stack, passing values in both directions, registering host functions, and sandboxing untrusted scripts.
More in Programming Languages
Last refreshed 2026-09-17.