Howling at the Moon: Lua for C++ Programmers
summary
Lua is an embeddable, tiny scripting language whose full runtime can be as small as 180 KB binary with a short reference manual and only eight basic data types. Functions are true first-class closures and tables are the single complex data structure, with metatables providing operator overloading and encapsulation. Integration with C++ uses a stack-based C API that solves ownership by keeping items on the VM stack; C++17 variants or small binding libraries (Luabind, Sol2) make type crossings ergonomic and you can often roll a custom binding quickly.
AI-written summary · about
chapters (15)
- 0:00Introduction and speaker background
- 1:05What makes Lua unique
- 3:56Lua’s small size and power
- 4:38Hello World and functions
- 10:08Closures and lexical scoping
- 10:52Tables as Lua’s primary data structure
- 14:12Metatables and operator overloading
- 15:40Encapsulation with closures
- 17:08Global variables and _G table
- 18:59Integrating Lua with C++
- 23:43Lua C API and stack mechanics
- 27:02Calling Lua functions from C++
- 27:23Lua’s elevator pitch and resources
- 28:06Q&A: Multiple Lua interpreters
- 30:11Q&A: Debugging and binding libraries
related talks
35mInterfacing Lua and Ruby with C
47mRapid Development of Software Solutions with C++ and Lua
01h 33mC++20 + Lua = Flexibility
01h 01mScripting at the Speed of Thought: Lua and C++ with sol3
43mLua in High-Load Telecom Systems
42mpicolibc: a C library for small 32-bit systems
01h 31mBetter embedded library interfaces with modern C++
35mEmbedded Limbo Dancing with Wasm
