[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] LuaJIT-2.0.0-beta1
- From: Graham Wakefield <wakefield@...>
- Date: Sun, 1 Nov 2009 00:23:26 -0700
So, another question: Am I right in thinking that it would be feasible
to run multiple independent lua_States in different threads (along the
lines of LuaRings)?
That is, can the JIT engine itself be instantiated multiple times,
with each instance fully encapsulated within a global lua_State (i.e.
Thanks in advance!
On Oct 31, 2009, at 11:02 PM, Graham Wakefield wrote:
Great that works perfectly thanks.
On Oct 31, 2009, at 9:13 PM, Mike Pall wrote:
Graham Wakefield wrote:
At the risk of looking stupid ~ currently the makefile installs
into /usr/local/include, but no static library libluajit.a (or
it should be called); is embedding LJ2 problematic?
Errm, yes, I knew I forgot to mention something in the TODO list.
Thank you for reminding me.
The plan is to switch to generating a shared library on all
platforms (currently only done on Windows). But I haven't gotten
around to this, yet. That's why it currently builds everything
into the executable.
Or do you really want to embed a static library?
In this case, simply do this:
ar rcu libluajit-2.0.0-beta1.a lj_*.o lib_*.o
Embedding it is actually trivial. Just link against it, like you'd
link with liblua.a. No extra setup required. If you've replaced
luaL_openlibs(), remember to add the "jit" and "bit" libraries, too.