jplwill

Results 21 comments of jplwill

So I made this change, and yes, I'm still seeing bizarre behavior. Sometimes it does the right thing, sometimes it does something slightly wrong, and sometimes it is just way...

Thanks! I persist in thinking that there are some timing-related things going on: that when I click (and how often) might also be having an effect. But for the experiment...

Maybe a coroutine plus a Java timeout that will wake the coroutine up? (Dunno, not an expert.)

LuaJ's "userdata" types are Java objects. You'd have to use JNI to wrap the C modules as Java objects. Non-trivial.

Maybe there's a tool that will produce a JNI wrapping for a C API that you could use as a first step? It looks like SWIG has some kind of...

Bearing in mind that I'm a newcomer to Lua: LuaJ strikes me as a way to embed Lua in Java apps and libraries, NOT as a platform for general Lua...

See the swing example at https://github.com/luaj/luaj/blob/master/examples/lua/swingapp.lua, and the docs for `CoerceJavaToLua.coerce()`. I'm not seeing anything else. (Not an expert, me, started looking at LuaJ last week.)

In LexState.java, 287 is the integer code for `TK_NUMBER`. This error seems to indicate that the compiler is looking for more input, and is (by default at least) expecting to...

The script `mytab = {` results in a similar error, with `unexpected symbol 286`. Symbol 286 is TK_EOS, meaning end of string.