lua-users home
lua-l archive

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


On Sun, Apr 8, 2012 at 9:59 PM, Marc Balmer <marc@msys.ch> wrote:
> And what about Lua modules that are written on other languages than Lua,
> like e.g. C bindings?

I should be able to release a (limited) solution to this soon, using
soar to package as one script and srlua to bind this archive to an
executable that has the C extensions statically linked. Limited,
because initially it will only do the usual suspects, lfs, lpeg,
luasocket and luaposix (as required), but for many standalone scripts
that's plenty.

Zipping the source archive strikes me as an optimization, ditto for
Dead Code Elimination[1]. The main thing is that you can distribute
these executables and they will only depend on the C runtime (which
could be very useful for deploying web apps)

(I _suspect_ that such srlua-executables can be compressed with the UPX loader)

steve d.

[1] that is, let's not bother until it's an obvious need