mjanicek / rembulan

Rembulan, an implementation of Lua 5.3 for the Java Virtual Machine
Apache License 2.0
163 stars 28 forks source link

Consider adding a compatibility layer for Lua 5.1 and 5.2 #10

Open mjanicek opened 8 years ago

mjanicek commented 8 years ago

There are many projects out there that use Lua 5.1 or 5.2, mainly because they are based on LuaJIT rather than PUC-Lua. In order to run such Lua scripts on the JVM, currently the best way to do this involves using LuaJ. In order to LuaJ users a viable alternative, it would be good to have a compatibility layer for running Lua 5.1 and 5.2 on Rembulan.

The simplest way to go about this would be adding alternative implementations of the standard library. This would not provide the exact semantics as Lua 5.1 or 5.2, but might be sufficient in most cases.

mjanicek commented 8 years ago

One such project is XOWA, an offline interface to Wikipedia. (See gnosygnu/xowa#89.)