Elixir Lua Library v0.1.0 Released: Run Lua on the BEAM VM

2025-05-15
Elixir Lua Library v0.1.0 Released: Run Lua on the BEAM VM

The first stable release of the Elixir Lua library, v0.1.0, is now available on hex.pm! This library lets you execute sandboxed Lua programs directly on the BEAM VM, not by embedding the C Lua runtime, but through a complete Lua 5.3 implementation in Erlang (powered by the Luerl library). Improvements include better error messages, comprehensive documentation, a `deflua` macro for easily exposing Elixir APIs to Lua, and a `~LUA` sigil for compile-time syntax checking. Born from the needs of TV Labs for building physical device integration tests, it's used as a compilation target for their drag-and-drop automation builder. Future plans involve merging the Elixir Lua library into Luerl for improved error messages, documentation, and sandbox features.

Development