Lua: Difference between revisions

From ArchWiki
m (make the fact that this is quoted a bit clearer)
m (Replace HTML entity with character)
 
Line 11: Line 11:
There are multiple versions available:
There are multiple versions available:


* {{Pkg|lua}} — Lua 5.4
* {{Pkg|lua}} Lua 5.4
* {{Pkg|lua53}} — Lua 5.3
* {{Pkg|lua53}} Lua 5.3
* {{Pkg|lua52}} — Lua 5.2
* {{Pkg|lua52}} Lua 5.2
* {{Pkg|lua51}} — Lua 5.1
* {{Pkg|lua51}} Lua 5.1


== JIT compilation support ==
== JIT compilation support ==

Latest revision as of 17:17, 22 October 2022

According to lua.org:

Lua is a powerful, efficient, lightweight, embeddable scripting language.

This makes Lua ideal for configuration and extensions of other programs, also because of its great interoperation with C. The basic Lua interpreter is less than 250K in size. As the official implementation is written in ANSI C it is available for many platforms and architectures.

Installation

There are multiple versions available:

JIT compilation support

Just-in-time compilation is a method of compiling source code at run-time, rather than before. LuaJIT is a drop-in replacement for Lua 5.1. This version is best suited for higher performance constrains.

For JIT compilation support install the luajit package.

Modules

The LuaRocks package manager is available as luarocks.

Some modules are also available in the official repositories.

See also