This first edition was written for Lua 5.0. While still largely relevant for later versions, there are some differences.
The fourth edition targets Lua 5.3 and is available at Amazon and other bookstores.
By buying the book, you also help to support the Lua project.


Several people helped me to write this book. Luiz Henrique de Figueiredo and Waldemar Celes, co-authors of Lua, helped to improve Lua, therefore making my job here easier. Luiz Henrique also helped with the interior book design. Noemi Rodriguez, André Carregal, Diego Nehab, and Gavin Wraith reviewed drafts of this book and provided invaluable suggestions. Renato Cerqueira, Carlos Cassino, Tomás Guisasola, Joe Myers, and Ed Ferguson also provided important suggestions. Alexandre Nakonechnyj designed the book cover and also helped with the interior book design. Rosane Teles prepared the Cataloging-in-Publication (CIP) data. My thanks to you all.