News for hackers. Stuff that matters.
Re:Source code for Lua 5.3 by fosk on Wednesday April 06, 2016 @11:02AM (#11439217)
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...)

Re:Source code for Lua 5.3 by vbit on Wednesday April 06, 2016 @07:41PM (#11443309)
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?

Re:Source code for Lua 5.3 by aleksi on Wednesday April 06, 2016 @11:04AM (#11439232)
There are some Lua 5.2 extensions: http://luajit.org/extensions.html
Re:Source code for Lua 5.3 by CapsAdmin on Friday April 08, 2016 @04:37AM (#11453364)
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.