Roberto Ierusalimschy

term

programming

Kept in this browser · My desk

The PUC-Rio computer scientist who, with Luiz Henrique de Figueiredo and Waldemar Celes, created the Lua programming language at Tecgraf in 1993, wrote its standard introduction, Programming in Lua, and heads the university's LabLua.

Of the three creators of Lua, Ierusalimschy was the one whose field was programming languages: in 1993 he was an assistant professor in the Department of Computer Science at the Pontifical Catholic University of Rio de Janeiro (PUC-Rio), and with Waldemar Celes he had led the team that designed SOL, the configuration language of a report generator for Petrobras that became one of Lua's two ancestors. His book Programming in Lua, published by Lua.org in 2003 and in a second edition in 2006, is the introduction the creators themselves point readers to.

Who he is. Roberto Ierusalimschy is the Brazilian computer scientist, a full professor in the Departamento de Informática (Department of Computer Science) of the Pontifical Catholic University of Rio de Janeiro (PUC-Rio), who with Luiz Henrique de Figueiredo and Waldemar Celes created Lua in 1993, is described by Lua.org as the language's chief architect, wrote its standard book and founded LabLua, the university's programming-language laboratory.

Tecgraf and the two little languages. Lua, in its creators' account, was born in 1993 inside Tecgraf, the Computer Graphics Technology Group of PUC-Rio, a research and development laboratory created in May 1987 with several industrial partners. The paper they wrote for the third History of Programming Languages conference (HOPL III) in 2007 describes the three creators' different but related backgrounds: Roberto Ierusalimschy was a computer scientist interested mainly in programming languages, Luiz Henrique de Figueiredo a mathematician interested in software tools and computer graphics, and Waldemar Celes an engineer interested in applications of computer graphics. In 1993 Ierusalimschy was an assistant professor in PUC-Rio's Department of Computer Science. Together with Celes he had led the team working on PGM, a configurable report generator for lithology profiles for Petrobras, configured through a description language called SOL, the Simple Object Language.

Why Lua was born in Brazil. Around mid-1993, the three of them met to discuss the two little languages Tecgraf had built for Petrobras, the Brazilian oil company, and concluded that both could be replaced by a single, more powerful language. Because the new language was partly inspired by SOL, which means sun, a friend at Tecgraf, Carlos Henrique Levy, suggested the name Lua, moon in Portuguese; Lua.org insists that it is a noun, pronounced LOO-ah, not an acronym. The three explain the setting in the same paper: from 1977 until 1992 Brazil had a policy of strong trade barriers, the market reserve, under which Tecgraf's clients could not afford, politically or financially, to buy customized software from abroad, so Tecgraf built its own basic tools from scratch. The same paper calls Lua the only language created in a developing country to have achieved global relevance; that is the authors' assessment.

How Lua works. Lua.org describes it as a powerful, efficient, lightweight, embeddable scripting language that supports procedural, object-oriented, functional, data-driven and data-description styles. Its one data-structuring mechanism is the table, an associative array; the HOPL paper says no other language gives associative arrays such a central role, since tables implement modules, objects, records, arrays, sets and lists. SOL left a visible trace there: the paper notes that a SOL record assignment, a track with the fields y=9, x=10 and id="1992-34" written between braces, remained valid in Lua, but with a different meaning, creating a table. Lua is dynamically typed, runs by interpreting bytecode on a register-based virtual machine, the design adopted in Lua 5.0 (2003), and manages memory with incremental garbage collection. The versions page tracks the line: Lua 5.3 (12 January 2015) brought integers and bitwise operators, Lua 5.4 (29 June 2020) a generational garbage collector and to-be-closed variables, and Lua 5.5, released on 22 December 2025, global declarations, named vararg tables, more compact arrays and incremental major collections; the current release is 5.5.1, of 3 August 2026, and 5.4 ended with 5.4.9 on 25 August 2026. His own publication list shows where one of those changes came from: Compact Representations for Arrays in Lua, with Noemi Rodriguez, at the 28th Brazilian Symposium on Programming Languages in September 2024.

Free software and the world. In their earlier history, presented at the Brazilian Symposium on Programming Languages in 2001, the authors record that Lua 2.1, of February 1995, was released as free software, because competitors such as Perl and Tcl were free and a licence restricting commercial use discouraged even academic users, and that a paper in Software: Practice & Experience in June 1996 and an article in Dr. Dobb's that December made the language internationally known; in January 1997 the lead programmer of a LucasArts game, Grim Fandango, wrote to say he planned to adopt it.

Books and tools. The HOPL paper cites Ierusalimschy's own book as the detailed introduction to the language. Programming in Lua, which Lua.org calls the detailed and authoritative introduction written by Lua's chief architect, appeared in 2003 and in a second edition in 2006; the third came in January 2013 and the fourth, updated to Lua 5.3 and completely reorganized, in August 2016. Brazilian readers have their own edition: Lua.org's Portuguese page lists Programando em Lua, by Roberto Ierusalimschy, published by LTC in 2015. He also wrote LPeg, a pattern-matching library for Lua based on Parsing Expression Grammars (PEGs), now at version 1.1, which, following the Snobol tradition, makes patterns first-class values that programs build and compose. Recent work listed on his page includes Pallene, a companion language for Lua (2020), and A Look at the Design of Lua, with de Figueiredo and Celes, in the Communications of the ACM of November 2018.

LabLua. LabLua's own page says it is a research laboratory affiliated with PUC-Rio's Department of Computer Science, dedicated to programming languages with an emphasis on Lua, founded in May 2004 by Ierusalimschy, and that it is where Lua is now housed. Lua.org lists him today as a professor in the department and head of LabLua; his home page gives his title as Full Professor.

Neighbours. Lua, Luiz Henrique de Figueiredo, Waldemar Celes, interpreters, bytecode and the Learn articles on the Brazilian market reserve and the Brazil thread.

Also known as: ierusalimschy, programming in lua

Sources

← Back to R Back to the glossary