Lua REPL

This is a REPL for Lua. Press the button to execute the code in the editor below. You can also modify the code and run it again.

output


        

Execute »

Status

The stuff you see in the example above works, which includes using JavaScript objects from Lua as if they were Lua objects, calling the DOM, callbacks into Lua, etc. And as mentioned on the main page, this uses the compiled Lua VM, so it includes all the normal Lua languages features, and it's compiled into asm.js so it can have reasonable performance.

Limitations

Not all ways to interact between JavaScript and Lua have been implemented yet, this is a work in progress. If you see something missing please file an issue.

No effort has been made to optimize the JavaScript/Lua glue layer whatsoever.

The glue layer holds strong references to everything currently. We could use Lua userdata with __gc to fix that.

Fork me on GitHub