VOOZH about

URL: https://www.phoronix.com/news/Lua-5.5-Released

⇱ Lua 5.5 Released With Declarations For Global Variables, Garbage Collection Improvements - Phoronix


👁 Phoronix

Lua 5.5 Released With Declarations For Global Variables, Garbage Collection Improvements

Written by Michael Larabel in Programming on 22 December 2025 at 12:25 PM EST. 22 Comments
Five years after releasing Lua 5.4, Lua 5.5 debuted today as the newest version of this lightweight and embeddable scripting language.

Lua 5.5 brings support for declarations of global variables, more compact arrays, and other refined language features. Large arrays in Lua are as using around 60% less memory with the Lua 5.5 build. Lua 5.5 also continues work on garbage collection "GC" improvements with a new generational mode and major garbage collections being done in an incremental manner.

👁 Lua logo


The Lua.org README lists the Lua 5.5 highlights as:
- declarations for global variables
- for-loop variables are read only
- floats are printed in decimal with enough digits to be read back correctly.
- more levels for constructors
- table.create
- utf8.offset returns also final position of character
- external strings (that use memory not managed by Lua)
- new functions luaL_openselectedlibs and luaL_makeseed
- major garbage collections done incrementally
- more compact arrays (large arrays use about 60% less memory)
- lua.c loads 'readline' dynamically
- static (fixed) binaries (when loading a binary chunk in memory, Lua can reuse its original memory in some of the internal structures)
- dump and undump reuse all strings
- auxiliary buffer reuses buffer when it creates final string

A nice Lua 5.5 release for ending out 2025.

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.