lua-users home
lua-l archive

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


On Mon, Apr 2, 2012 at 9:57 AM, Robert Klemme
<shortcutter@googlemail.com> wrote:
> Considering the fact that it took Sun 7 years from the first working
> implementation of G1 to the production release with Java 7 it may be
> more worthwhile to work at jlua. :-)

I must say that Lua on the JVM is a very pleasant experience. With
LuaJava it was surprisingly easy to make Swing interfaces, etc. But
LuaJava is a JNI-binding so you still have a single-threaded
interpreter that needs all the special care discussed here. (LuaJava
still has a show-stopper for more serious work; coroutines cannot call
Java methods, due to its design)

One loses performance[1] with a straight-JVM Lua (and there are a
number of others, like Kahlua, etc) but such an interpreter _can_ be
designed to be thread-safe. (Whether such a beast exists, I don't
know)

steve d.

[1] but then there is JNI overhead plus method dispatch via
reflection, so in practice probably not so big a difference.