A simple interpreter for Lua written in Rust.
cargo build --release
cargo run --release -p luavm -- filename.lua
cargo run --release -p luacompiler -- filename.lua
This will generate a filename.luabc file, which can also be used as input to
luavm.
You must have installed:
rustcandcargomakepython3
The ./deps.sh script installs rustup together with rust, cargo, and
other libraries that are needed by lua and luajit.
The ./build.sh downloads, installs, and builds in this folder:
multitimelua5.3luajitluster
To run a particular benchmark, such as fib.lua, you can use the run.py
script:
./run.py -b ./benchmarks/fib.lua -n <number_of_times_to_run>
For more options please see ./run.py --help.