Re: LuaRocks and LuaJIT (was Re: ffi.cdef() for module writers)

  • From: "Pierre Chapuis" <catwell@xxxxxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sun, 14 Oct 2012 13:28:39 +0200

> * Does code written for luaffi run unmodified on LuaJIT?
> * If the answer is "no", is it be possible to use a subset of both
> without "unacceptable" slowdowns for LuaJIT users or at least keep the
> ifdef'fing for a minimum? (For 5.1 vs 5.2, for example, I have very
> little code in LuaRocks to ifdef around setfenv vs. _ENV; I wonder if
> the situation is similar.)
> * Do FFI module authors have interest to be friendly to luaffi?

My POV on this:
https://github.com/catwell/luajit-msgpack-pure/commit/f7144eb75bf748e912207cfe15f1260e88cab4f6

Regarding how to handle LuaJIT in LuaRocks, I do not really have an idea,
but I do hope it gets done someday.

Long term, I would also like to see something like Python's VirtualEnv
that isolates an application's dependencies from the system. It also makes
deployment to PaaS platforms (think Heroku) easier.

-- 
Pierre Chapuis


Other related posts: