Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Howling at the Moon - Lua for C++ Programmers

code::dive conference via YouTube

Overview

Explore Lua programming for C++ developers in this 59-minute conference talk from code::dive 2017. Dive into Lua's history, its widespread use, and its compact design. Learn about lambdas, function hooking, closures, and object construction. Discover metatables, encapsulation, and reflection techniques. Examine Lua's integration with C++, including stack manipulation and function constraints. Introduce Sol 2, an efficient binding library for C++, and learn how to expose C++ to Lua and vice versa. Gain valuable insights into Lua's unique features and its synergy with C++ programming.

Syllabus

Intro
About me
A little bit of history...
Lua in the wild
Lua is small
The whole language fits into your head
Disclaimer
Hello World!
All functions are lambdas
Replacing functions is trivial
Function Hooking - Counting print calls
Capturing state with function closures
Object Construction
Metatables - Tables describing object properties
Metatables on non-table values
Encapsulation
Reflection
Back to function hooking
Constraining the environment
Integration with C++
The Stack - The needle's eye
Pushing values on the stack (2)
Getting values from the stack
Calling functions
Constraining functions
Sol 2 - An efficient binding library for C+++
Exposing C++ to Lua with Sol 2
From C++ to Lua and back
Wrapping up
Literature

Taught by

code::dive conference

Reviews

Start your review of Howling at the Moon - Lua for C++ Programmers

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.