lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi, list!

Just found an interesting project:

http://pypi.python.org/pypi/lupa/0.9

Allows Lua-Python interop with Lua running inside LuaJIT

Documentation lists several advantages over LunaticPython:

* separate Lua runtime states through a LuaRuntime class
* Python compatible wrapper for Lua coroutines
* proper encoding and decoding of strings (configurable, UTF-8 by default)
* frees the GIL and supports threading in separate runtimes when
calling into Lua
* supports Python 2.x and 3.x, potentially starting with Python 2.3
(currently untested)
* written for LuaJIT2, as opposed to the Lua interpreter (tested with
LuaJIT 2.0.0-beta4)
* much easier to hack on and extend as it is written in Cython, not C

But Lua discrimination strikes again:

    <...>Lua code is harder to write than Python code as the language
lacks most of the batteries that Python includes. Writing large
programs in Lua is rather futile<...>

Alexander.