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?
There are some Lua 5.2 extensions: http://luajit.org/extensions.html
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...)