lua-users home
lua-l archive

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


Didn't work the first time :) but got it working x86 and x64-- Ran it against LuaJIT in 32-bit mode and it worked just fine for both 1.1.7 and 2.0.0 :

<x86>[curt|/r/dv/tuna/examples]$ ../LuaJIT-2.0.0-beta9/src/luajit require_test.lua
into test
about to sleep
done sleeping
spam..
spam..
spam..
spam..
got talkback from the created thread, later folks
<x86>[curt|/r/dv/tuna/examples]$

64-bit works fine too:

<x64>[curt|/r/dv/tuna/examples]$ ../LuaJIT-2.0.0-beta9/src/luajit require_test.lua
into test
about to sleep
done sleeping
spam..
spam..
spam..
spam..
got talkback from the created thread, later folks
<x64>[curt|/r/dv/tuna/examples]$

Although I don't know if luaJIT supports native x64 code, Tuna does so whatever magic linking needed to happen, did.

Runs fine for LuaJIT 1.1.7 too on x86, but I couldn't get it to build on x64, despite installing the .i686 libs: "/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/4.5.1/libgcc_s.so when searching for -lgcc_s
/usr/bin/ld: cannot find -lgcc_s"

*shrug*

Anyways I'm probably at least a few debug/code sessions and a lot of load testing away from releasing 0.4.2, but again if anyone wants the latest snapshot with the code that works (for me) with LuaJIT I put it up under 0.4.2c [unstable] I don't know any reason why it shouldn't work. http://northarc.com/tuna/downloads

-Curt

On 2/15/2012 9:58 AM, curt wrote:
luawhatnow? that actually works? I'll be damned.

In my head luajit is a lua compiler, do I have that right? Shouldn't be any reason it wouldn't work as long as the calling conventions are flying in formation.

Sure I'll see what I can do. luajit is released in source form, yes? should be able to get to the bottom of the segfault-on-exit.. in fact there is an excellent chance I've already fixed it. As for the luajit2 thing, my gut is something is binary-incompatible. who knows.

Sure I'll support luajit if I can. (and I would not say no to a little help/guidance)

-Curt

On 2/15/2012 4:30 AM, Michal Kolodziejczyk wrote:
On 14.02.2012 17:42, curt wrote:

$ lua require_test.lua
with tuna.so "findable" works fine on my box (tm)
Works great on my box (archlinux 32 bit) with plain lua.

With luajit 1.1.7 I get:
$ luajit require_test.lua
into test
about to sleep
done sleeping
spam..
spam..
spam..
spam..
spam..
Segmentation fault

With luajit 2.0.0-beta9 I get:

$ luajit2 require_test.lua
into test
Segmentation fault

Would it be possible to get it working with luajit also?
Anyways, looking forward to using tuna as a module!

Regards,
miko