Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What's the difference between lua sdl2 and lua 5.1?


Asked by Frankie Stokes on Dec 07, 2021 Lua



Lua-SDL2 is a pure C binding of SDL2 to Lua 5.1, Lua 5.2, Lua 5.3, and LuaJIT. The current version is 2.1, compatible with SDL 2.0.1 - 2.0.5. Lua-SDL2 follows the SemVer standard with regards to project versioning. Lua-SDL2 is a portable binding of SDL2, written in pure C for efficiency.
Also Know,
Lua-SDL2 uses the same versioning as SDL except that it adds a trailing -vwhere vis the binding version (e.g 2.0.3-4 is SDL 2.0.3 and binding version 4). Download¶ To obtain the Lua-SDL2 sources:
Subsequently, Lua 5.1 was released on 21 Feb 2006. Its main new features were a new module system, incremental garbage collection, new mechanism for varargs, new syntax for long strings and comments, mod and length operators, metatables for all types, new configuration scheme via luaconf.h, and a fully reentrant parser.
One may also ask,
Lua-SDL2 is a pure C binding of SDL 2.0 for Lua 5.1, Lua 5.2 and LuaJIT.
Accordingly,
SRB2's implementation of Lua is based on a modification of Lua 5.1 called BLUA (which stands for "bastardized Lua"; see below for an overview of the differences). The reference manual for Lua 5.1 can be found here. The name "Lua" itself derives from the Portuguese word for moon; it should not be referred to as "LUA", as it is not an acronym.