~/talk

Howling at the Moon: Lua for C++ Programmers

Talkat CppCon 2017 · 2017-09-24..09-29· [embedded-and-hardware]
slides:none on file

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

  1. 0:00Introduction and speaker background
  2. 1:05What makes Lua unique
  3. 3:56Lua’s small size and power
  4. 4:38Hello World and functions
  5. 10:08Closures and lexical scoping
  6. 10:52Tables as Lua’s primary data structure
  7. 14:12Metatables and operator overloading
  8. 15:40Encapsulation with closures
  9. 17:08Global variables and _G table
  10. 18:59Integrating Lua with C++
  11. 23:43Lua C API and stack mechanics
  12. 27:02Calling Lua functions from C++
  13. 27:23Lua’s elevator pitch and resources
  14. 28:06Q&A: Multiple Lua interpreters
  15. 30:11Q&A: Debugging and binding libraries
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.