I'm just starting to take a look how luatex makes use of lua. And it appears that luatex does not merely use lua, but extends it in various ways, essentially creating new lua dialect. Is the assessment correct? Is there any documentation on this?
Also, is luajit used in the same way, or would it be possible to use a system installed luajit in building luatex?