Luajit API and some examples