Course not currently available
Lua Embedding Training Course
Course
In Bristol ()
Description
-
Type
Course
This Lua course teaches how to interact with Lua from C (and/or other programming languages).
We discuss integration in both directions: how to embed C code in Lua (eg. for performance gains), and how to make a C/C++/Java program extensible with Lua.
As an in-class exercise we create a small program that is extensible with Lua.
The course also tackles the Lua virtual machine and teaches how to understand the bytecode underpinning the language.
This course can serve an add-on to the Lua Fundamentals or Lua Advanced courses in which case a shorter (1 day) version can be organized.
About this course
A good understanding of the basics of the Lua programming language
Reviews
Course programme
- Compilation
- Eval
- Relationship with the environment
- Binary chunks
- Weak tables
- Finalizers, the __gc meta-method
- Generating bytecode from source code
- Reading and analyzing bytecode
- Quick tour of the source code of the Lua VM
- Calling C from Lua
- Search path and loading of C modules
- The Stack
- Error handling
- Continuations
- Arrays
- Strings
- Userdata
- Metatables
- Object oriented calls
- Light userdata
- Allocators
- GC API
- Co-routines vs threads
- Real multi-threading and Lua states
Additional information
Lua Embedding Training Course