Lua Mod clarification

BlitzMax Forums/BlitzMax Beginners Area/Lua Mod clarification

MOBii(Posted 2014) [#1]
I experimenting/Lerning with pub.Lua now
What I read is zeke.luajit2 is .exe fast
Lugi look very good documented

With luajit2 I could just:
' Import pub.Lua
Import zeke.luajit2
and it worked


Is Lugi suppose to work like this:
My program <---> Lugi(API) <---> zeke.luajit2/pub.Lua?


MOBii(Posted 2014) [#2]
I can only compile zeke.luajit2 in debug mode
I can see/use: jit.on()/jit.off()
Release I get:
C:/BlitzMax/bin/ld.exe: cannot find -lluajit
Build Error: Failed to link C:\BlitzMax\MOBii\INI\EDii.exe
It's not matter If I got lua51.dll in the projectmap or NOT


MOBii(Posted 2014) [#3]
I found my problem for release:
I need to copy libluajit.a to C:\BlitzMax\lib

It look like I don't need to copy lua51.dll to my project map, and my exe only get 100Kb bigger!
I copy the projectmap with the release exe to another HD and jit.on() is working without the lua51.dll
sieve.lua: Total time = 0.128

Totally easy to get started with: zeke.luajit2, cheers zeke
Time to start Gluing..