Thanks anael, I didn't hit any issues moving to LuaJIT, I think it is (should be) Lua 5.1 compatible with some features from 5.2 that doesn't break the compatibility with 5.1.
I'm not sure about any differences in error handling.
However, when dealing with C types in LuaJIT and error messages, then it shows type names as numbers, like: 'struct 95' which can be cryptic.
But there may be other things here that I'm not aware of yet.
I'm still experimenting a bit with maratis and LuaJIT, especially trying to make better use of the FFI. I believe the only way to do it without changing to much is to get a table of C functions (maratis script API) into LuaJIT and then use ffi.cast to convert each function in the table to the correct function type. We can avoid most of those classic lua_xxx functions then. Also, it makes it easier to pass C data from and to functions if needed, like vectors and stuff.
I have uploaded a test here, maratis+LuaJIT, but it's only for Linux 64bit.
This patch should be applied ontop of the svn 200 version. Overwriting files, then build as normal.
https://dl.dropboxusercontent.com/u/784
tch.tar.gz
And this is the Linux 64bit binary with the patch above already applied:
https://dl.dropboxusercontent.com/u/784
-lj.tar.gz
Hope it works if someone want to try it out.
Oh, and the API now lives in a 'maratis' table (my personal choice). That is: getObject() now becomes maratis.getObject() etc.
Same with onSceneUpdate(), now should be written as: maratis.onSceneUpdate = function() ... end