Indeed, it's a very specialized subject, one needs to manage C and Lua quite well -- and the code is not portable, it's still somewhat experimental (in lua) and it's quite easy to break luatex.It's definitively for dedicated applications.You can see https://luajit.org, the FFI sections.