top | item 11426605

Source code for Lua 5.3

75 points| vmorgulis | 10 years ago |lua.org | reply

25 comments

order
[+] fosk|10 years ago|reply
When running Lua, always consider running it on the LuaJIT (http://luajit.org/). It's extremely fast, portable and lightweight JIT compiler for Lua, although it only supports Lua 5.1.

The performance improvements are incredible, and it allows you to write inline C code thanks to the FFI library (declaring it like this https://github.com/Mashape/kong/blob/master/kong/plugins/fil..., and invoking it like this https://github.com/Mashape/kong/blob/master/kong/plugins/fil...)

[+] vbit|10 years ago|reply
Seconded. LuaJIT FFI is just awesome. Check out the motivating examples: http://luajit.org/ext_ffi.html

BTW, does anyone have recent benchmarks comparing LuaJIT against new versions of the Javascript JITs?

[+] CapsAdmin|10 years ago|reply
You are restricted to making C declarations. You can't write inline C code. You can however can create and use C types in Lua.
[+] sspiff|10 years ago|reply
What's the point of posting this? Pointing out how small and elegant a real world language implementation can be?
[+] scrollaway|10 years ago|reply
I'm happy with anything that gives Lua more exposure. It's a pretty language and it is so damn small, fast and embeddable.

Too many developers are using Javascript in places where Lua would be a far more appropriate option. Embedding, especially.

[+] vmorgulis|10 years ago|reply
Yes and the design of the source code browsing (by column).
[+] mrdrozdov|10 years ago|reply
What's a "real world language"?