Skip to content

Commit 5cef4c5

Browse files
menaechmibritzl
andauthored
Remove lua version table (#508)
* Remove lua.md table * Apply suggestions from code review Co-authored-by: menaechmi <menaechmi@protonmail.com> --------- Co-authored-by: Björn Ritzl <bjorn.ritzl@gmail.com>
1 parent e1f4b93 commit 5cef4c5

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

docs/en/manuals/lua.md

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,20 @@ The Defold engine has the Lua language embedded for scripting. Lua is a lightwei
1010
This manual will give a quick introduction to the basics of Lua programming in general and what you need to consider when working with Lua in Defold. If you have some experience with Python, Perl, Ruby, Javascript, or a similar dynamic language you will get going pretty quickly. If you are new to programming you might want to start with a Lua book aimed at beginners. There are plenty to choose from.
1111

1212
## Lua versions
13-
We aim to keep Defold the same across all platforms, but we currently have a few minor discrepancies in the Lua language version between platforms:
14-
15-
| Platform | Lua version | JIT Enabled |
16-
|-----------------|---------------------|-------------|
17-
| Windows | LuaJIT 2.1.0-beta3 | Yes |
18-
| macOS | LuaJIT 2.1.0-beta3 | Yes |
19-
| Linux | LuaJIT 2.1.0-beta3 | Yes |
20-
| Android | LuaJIT 2.1.0-beta3 | Yes |
21-
| iOS | LuaJIT 2.1.0-beta3 | No* |
22-
| Nintendo Switch | LuaJIT 2.1.0-beta3 | No* |
23-
| HTML5 | Lua 5.1.4 | N/A |
24-
25-
*=JIT compiled code is not allowed
2613

27-
[LuaJIT](https://luajit.org/) is a highly optimized version of Lua suitable for use in games and other performance-critical software. It is fully upwards compatible with Lua 5.1 and supports all standard Lua library functions and the full set of Lua/C API functions.
14+
Defold uses [LuaJIT](https://luajit.org/), a highly optimized version of Lua suitable for use in games and other performance-critical software. It is fully upwards compatible with Lua 5.1 and supports all standard Lua library functions and the full set of Lua/C API functions.
2815

2916
LuaJIT also adds several [language extensions](https://luajit.org/extensions.html) and some Lua 5.2 and 5.3 features.
3017

18+
We aim to keep Defold the same across all platforms, but we currently have a few minor discrepancies in the Lua language version between platforms:
19+
* iOS does not allow JIT compilation.
20+
* Nintendo Switch does not allow JIT compilation.
21+
* HTML5 uses Lua 5.1.4 instead of LuaJIT.
22+
3123
::: important
3224
To guarantee that your game works across all supported platforms we strongly recommend that you ONLY use language features from Lua 5.1.
3325
:::
3426

35-
3627
### Standard libraries and extensions
3728
Defold includes all of the [Lua 5.1 standard libraries](http://www.lua.org/manual/5.1/manual.html#5) as well as a socket and a bit operation library:
3829

0 commit comments

Comments
 (0)