Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lua language support #195

Open
GoogleCodeExporter opened this issue Aug 3, 2015 · 0 comments
Open

Lua language support #195

GoogleCodeExporter opened this issue Aug 3, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What packages need to be installed?
I've found the following package: liblua5.1-0-dev
(from http://packages.ubuntu.com/hardy/allpackages)

Does the code need to be compiled? If so, how / what's the command line 
argument?
No, it doesn't need to be compiled.

What command to run the bot?
lua mybot.lua


========================================================


Is it possible to install also a luajit runner? 

http://luajit.org (take LuaJIT 2.0.0-beta5 with a hotfix applied - I could do 
it)

It's Lua Just-In-Time interpreter that works MUCH-MUCH faster (up to x100) than 
usual Lua interpreter.
Your runner could analyze lua header to find #/usr/local/bin/luajit as sign to 
start luajit mybot.lua instead of lua mybot.lua

Unfortunately, there's no luajit package for ubuntu hardy, but it's quite easy 
to install:
make
make install
ln -sf luajit-2.0.0-beta5 /usr/local/bin/luajit

luajit would allow to make much more calculations in lua to find better 
strategy.




Original issue reported on code.google.com by buratin....@gmail.com on 8 Oct 2010 at 5:49

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant