~/talk

Interfacing Lua and Ruby with C

links:none on file
slides:none on file

Claims that a professional C/C++ programmer can embed and script with Lua after these basics, noting Lua is ~60,000 lines and LuaJIT exists for speed. Explains bridging via the lua_State stack (push/pop, type checks, userdata, length‑prefixed strings, tables starting at one), and shows a working raw socket C wrapper used to drive network tests in manufacturing. Covers Ruby C API (VALUE, conversion macros, building .so extensions loaded with require) and practical pitfalls of memory and type marshaling.

AI-written summary · about

  1. 0:00Start
  2. 1:19Why??
  3. 3:22Why Lua?
  4. 4:01Introduction to Lua
  5. 4:50Specialties of Lua
  6. 6:17Superpowers of Lua
  7. 7:17Hello world
  8. 7:40Lua Control Structures
  9. 8:21Lua Examples
  10. 9:52Lua Function Examples
  11. 10:50More on Lua Functions
  12. 12:36Closures
  13. 13:42Lua Tables
  14. 14:56Useful Lua Idioms
  15. 15:34Lua Packages
  16. 16:49Lua Internals
  17. 17:51Lua & C-Introduction
  18. 18:50Stack between Lua & C
  19. 24:00Related technologies
  20. 27:11Quick Introduction to Ruby
  21. 27:27Ruby: Details
  22. 30:03VALUE
~/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.