LuaTruffle

Implementation of Lua on the JVM using Truffle

This project is maintained by Lucas Amorim

LuaTruffle - A Java implementation of the Lua language using Truffle

Master: Build Status

 Compiling

mvn package

Running

bin/luatruffle my.lua

Running With Graal

Download one of:

Then run:

JAVACMD=../graalvm-jdk1.8.0/bin/java bin/luatruffle my.lua

Options

To pass options to the JVM, prefix with -J. For example, -J-Xmx1G.

Performance

Compare:

lua benchmarks/mandelbrot.lua
luajit benchmarks/mandelbrot.lua
JAVACMD=../graalvm-jdk1.8.0/bin/java bin/luatruffle benchmarks/mandelbrot.lua
We're around 13x compared to lua, and as fast as luajit.