Lua Embedding Training Course

Course

In City Of London

Price on request

Description

  • Type

    Course

  • Location

    City of london

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.

Facilities

Location

Start date

City Of London (London)
See map
Token House, 11-12 Tokenhouse Yard, EC2R 7AS

Start date

On request

Questions & Answers

Add your question

Our advisors and other users will be able to reply to you

Who would you like to address this question to?

Fill in your details to get a reply

We will only publish your name and question

Reviews

Subjects

  • XML training
  • Object oriented training
  • Java
  • XML
  • Object-oriented training
  • IT
  • Technology
  • Threading
  • Programming
  • IT Development

Course programme

Compilation

  • Compilation
  • Eval
  • Relationship with the environment
  • Binary chunks
Garbage collection
  • Weak tables
  • Finalizers, the __gc meta-method
Lua bytecode and virtual machine
  • Generating bytecode from source code
  • Reading and analyzing bytecode
  • Quick tour of the source code of the Lua VM
C modules
  • Calling C from Lua
  • Search path and loading of C modules
Calling Lua from C
  • The Stack
  • Error handling
  • Continuations
Handling Lua values and types from C
  • Arrays
  • Strings
  • Userdata
  • Metatables
  • Object oriented calls
  • Light userdata
Memory management
  • Allocators
  • GC API
Threads in Lua
  • Co-routines vs threads
  • Real multi-threading and Lua states

Lua Embedding Training Course

Price on request