Comprehensive Lua Training Course

Primary tabs

Duration Duration

21 hours (usually 3 days including breaks)

Requirements Requirements

Familiarity with at least one other programming language. Programming experience. Optionally if you have familiarity with other scripting languages, that will make it easier to understand Lua.

Overview Overview

Lua is an easy to use scripting language that is used as an embedded plugin/extension language in different products. For example it is the embedded scripting language of network applications like nmap and wireshark, and can also be found as a scripting language in World of Warcraft, Orbiter and other games.

Lua can also be used as a standalone language. It is a lightweight, multi-paradigm programming language and therefore the course teaches various concepts that students will find useful in other areas of software engineering as well.

This course covers everything out there to know about Lua. We build up from the basic programming constructs, learn about advanced techniques and finally talk about embedding of Lua into other programming languages and embedding other programming languages into Lua. The course contains a lot of programming exercises, so that newcomers can gain proficiency with the language, starting from scratch.

Course Outline Course Outline

Introduction to Lua

  • A bit of history
  • Lua's goals, features and non-goals
  • Resources of Lua documentation and tutorials
  • Installing the Lua interpreter
  • Setting up and using LuaRocks

Basic syntax and semantics

  • Identifiers
  • Comments, block comments
  • Global variables and enforcing of strictness
  • Local variables
  • Standalone programs, program arguments
  • Compilation units, chunks, expressions, semicolons

Data types and data structures

  • Basic types: nil, boolean, number, string
  • Object types: function, userdata, thread, table
  • References/objects vs. basic values
  • The importance of tables in Lua

Introduction to tables and their versatility

  • Tables as an associative array
  • Tables as numeric arrays, sequences

Basic control structures

  • The if then elseif else end
  • The while loop
  • The repeat loop
  • The simple for loop

Error handling

  • Return values vs exceptions
  • Converting a return value to an exception
  • Converting an exception to a return value
  • Error levels

Example programs

  • Polynomial evaluation
  • Breadth first search
  • Additional exercises

More about functions

  • Named arguments
  • Object-oriented calls
  • Closures
  • Currying
  • Tail calls
  • Multiple assignment and return
  • Varargs

Iterators and co-routines

  • The generic for loop
  • Stateless vs stateful iterators
  • Differences between iterators and co-routines

Metatables and metamethods

  • The set example
  • The __tostring metamethod
  • Arithmetic metamethods
  • The __index, __newindex metamethods
  • The __len metamethod

Modules and packages

  • Using modules
  • Creating modules
  • Organizing modules into packages

Advanced tables

  • Tables for queues and stacks
  • Tables describing graphs
  • Matrices as tables
  • Linked lists as tables
  • String buffers

Metatables through examples

  • Proxies
  • Readonly
  • Memoization
  • Dynamic programming with memoization
  • The Fibonacci example

Environments

  • Relationship between global variables and environments
  • Free variables
  • The _ENV table and the _G table

More about modules

  • Different approaches to creating modules
  • Modules that change the behavior
  • Module initialization and arguments
  • Using environments to implement safe modules

Advanced iterators and co-routines

  • Producer, consumer, filter
  • Wrapping co-routines to get iterators
  • Stateless iterator for linked lists

Contributing to the Ecosystem

  • Uploading packages to MoonRocks

Functional paradigm in Lua

  • The map function
  • The reduce / fold function

Object-oriented Programming

  • Different approaches to OOP
  • Different approaches to inheritance
  • Examples

A walkthrough of the Lua Standard Libraries

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

Bookings, Prices and Enquiries

Guaranteed to run even with a single delegate!
Public Classroom Public Classroom
From 5194PLN
(23)
Public Classroom
Participants from multiple organisations. Topics usually cannot be customised
Private Classroom
Participants are from one organisation only. No external participants are allowed. Usually customised to a specific group, course topics are agreed between the client and the trainer.
Private Remote
The instructor and the participants are in two different physical locations and communicate via the Internet. More Information

The more delegates, the greater the savings per delegate. Table reflects price per delegate and is used for illustration purposes only, actual prices may differ.

Number of Delegates Public Classroom Private Remote
1 5194PLN 15160PLN
2 4252PLN 9235PLN
3 3938PLN 7260PLN
4 3781PLN 6273PLN
Cannot find a suitable date? Choose Your Course Date >>
Too expensive? Suggest your price

Related Categories

Lua Training

Related Courses


Upcoming Courses

VenueCourse DateCourse Price [Remote / Classroom]
Kielce, ul. Warszawska 19Mon, 2017-10-09 09:0015160PLN / 5194PLN
Wrocław, ul.Ludwika Rydygiera 2a/22Mon, 2017-10-09 09:0015160PLN / 5194PLN
Bydgoszcz, ul. Dworcowa 94Wed, 2017-10-11 09:0015160PLN / 5344PLN
Opole, Wladyslawa Reymonta 29Wed, 2017-10-11 09:0015160PLN / 5944PLN
Katowice ul. Opolska 22Wed, 2017-10-11 09:0015160PLN / 5644PLN

Course Discounts

Course Venue Course Date Course Price [Remote / Classroom]
DTP (InDesign, Photoshop, Illustrator, Acrobat) Katowice ul. Opolska 22 Mon, 2017-09-25 09:00 5940PLN / 3730PLN
Visual Basic for Applications (VBA) in Excel - Advanced Warszawa, ul. Złota 3/11 Mon, 2017-09-25 09:00 3069PLN / 1623PLN
Programming in C++ Wrocław, ul.Ludwika Rydygiera 2a/22 Mon, 2017-09-25 09:00 5445PLN / 2815PLN
Java Performance Wrocław, ul.Ludwika Rydygiera 2a/22 Mon, 2017-09-25 09:00 9801PLN / 3000PLN
Creating and managing Web sites Poznan, Garbary 100/63 Mon, 2017-09-25 09:00 5841PLN / 2298PLN
SQL in Microsoft Access Kraków, ul. Rzemieślnicza 1 Tue, 2017-09-26 09:00 10266PLN / 3911PLN
OCUP2 UML 2.5 Certification - Foundation Exam Preparation Kraków, ul. Rzemieślnicza 1 Wed, 2017-09-27 09:00 6930PLN / 3510PLN
Visual Basic for Applications (VBA) for Analysts Poznan, Garbary 100/63 Wed, 2017-09-27 09:00 2970PLN / 1590PLN
Adobe InDesign Katowice ul. Opolska 22 Thu, 2017-09-28 09:00 1881PLN / 1327PLN
Design Patterns in C# Rzeszów, Plac Wolności 13 Thu, 2017-09-28 09:00 3861PLN / 2331PLN
Tworzenie aplikacji na platformie Android Łódź, ul. Tatrzańska 11 Mon, 2017-10-02 09:00 4455PLN / 3128PLN
Statistical and Econometric Modelling Warszawa, ul. Złota 3/11 Mon, 2017-10-02 09:00 20483PLN / 6807PLN
Effective interpersonal communication with elements of assertiveness Kraków, ul. Rzemieślnicza 1 Tue, 2017-10-03 09:00 5148PLN / 1830PLN
Web Development with Symfony3 Kielce, ul. Warszawska 19 Mon, 2017-10-09 09:00 5554PLN / 2483PLN
Visual Basic for Applications (VBA) in Excel - Introduction to programming Szczecin, ul. Sienna 9 Mon, 2017-10-09 09:00 3564PLN / 1891PLN
Analiza biznesowa i systemowa z użyciem notacji UML - warsztat praktyczny dla PO w metodyce Scrum Łódź, ul. Tatrzańska 11 Tue, 2017-10-10 09:00 7722PLN / 3474PLN
Access Basics Szczecin, ul. Sienna 9 Tue, 2017-10-10 09:00 3465PLN / 1550PLN
MS-40361 Software Development Fundamentals MTA Exam 98-361 Gdynia, ul. Ejsmonda 2 Wed, 2017-10-11 09:00 6138PLN / 2610PLN
UML Analysis and Design Kraków, ul. Rzemieślnicza 1 Wed, 2017-10-11 09:00 8910PLN / 4170PLN
PostgreSQL for Administrators Gdynia, ul. Ejsmonda 2 Wed, 2017-10-11 09:00 12326PLN / 4235PLN
Agile w projektach zdalnych Katowice ul. Opolska 22 Mon, 2017-10-16 09:00 5049PLN / 1962PLN
Programming in C++ Bielsko-Biała, Al. Armii Krajowej 220 Mon, 2017-10-16 09:00 5445PLN / 3565PLN
Programming in C++ Łódź, ul. Tatrzańska 11 Mon, 2017-10-16 09:00 5445PLN / 3315PLN
PostgreSQL Administration and Development Łódź, ul. Tatrzańska 11 Tue, 2017-10-17 09:00 7821PLN / 3807PLN
Programming in C# Wrocław, ul.Ludwika Rydygiera 2a/22 Wed, 2017-10-18 09:00 4851PLN / 1870PLN
Stress management Gdynia, ul. Ejsmonda 2 Wed, 2017-10-18 09:00 5148PLN / 1530PLN
Business Analysis Kraków, ul. Rzemieślnicza 1 Wed, 2017-10-18 09:00 7722PLN / 3774PLN
Nginx Setup, Configuration and Administration Wrocław, ul.Ludwika Rydygiera 2a/22 Wed, 2017-10-18 09:00 6930PLN / 2700PLN
Projektowanie stron na urządzenia mobilne Kielce, ul. Warszawska 19 Thu, 2017-10-19 09:00 2624PLN / 1305PLN
Adobe Premiere Pro Gdynia, ul. Ejsmonda 2 Mon, 2017-10-23 09:00 3960PLN / 2480PLN
Adobe InDesign Wrocław, ul.Ludwika Rydygiera 2a/22 Mon, 2017-10-23 09:00 1881PLN / 1027PLN
Administration of Linux System Gdynia, ul. Ejsmonda 2 Tue, 2017-10-24 09:00 4950PLN / 3225PLN
Effective working with spreadsheet in Excel Warszawa, ul. Złota 3/11 Thu, 2017-10-26 09:00 2475PLN / 1225PLN
Node.js Olsztyn, ul. Kajki 3/1 Thu, 2017-10-26 09:00 3861PLN / 2431PLN
SQL Advanced in MySQL Warszawa, ul. Złota 3/11 Thu, 2017-11-02 09:00 1881PLN / 1141PLN
Excel For Statistical Data Analysis Warszawa, ul. Złota 3/11 Thu, 2017-11-02 09:00 2673PLN / 1291PLN
Android - The Basics Wrocław, ul.Ludwika Rydygiera 2a/22 Mon, 2017-11-06 09:00 9801PLN / 4180PLN
Java Spring Wrocław, ul.Ludwika Rydygiera 2a/22 Mon, 2017-11-06 09:00 14414PLN / 5970PLN
Quality Assurance and Continuous Integration Wrocław, ul.Ludwika Rydygiera 2a/22 Tue, 2017-11-07 09:00 2673PLN / 1737PLN
Nagios Core Gdańsk, ul. Powstańców Warszawskich 45 Mon, 2017-11-13 09:00 13919PLN / 4968PLN
Data Analysis with Oracle 11g - workshop Gdynia, ul. Ejsmonda 2 Mon, 2017-11-13 09:00 9900PLN / 4664PLN
ADO.NET 4.0 Development Warszawa, ul. Złota 3/11 Tue, 2017-11-14 09:00 20176PLN / 6914PLN

Course Discounts Newsletter

We respect the privacy of your email address. We will not pass on or sell your address to others.
You can always change your preferences or unsubscribe completely.

Some of our clients