Lua interface that mirrors the interface for other languages
The ffi interface to Rosie allows multi-threaded programs in languages like Go, Python, js, and more to use Rosie. Each thread gets its own Rosie instance (they are small), so they won't interfere with each other, and each Rosie could be configured differently if needed.
This request is to create a Lua api that works just like the ffi-based api. Each Rosie instance will have its own Lua state, and the user program will be in its own Lua state, possibly running a different version of Lua (or lpeg, etc.).
r = require("rosie") e = new_engine(rosie_home) ...