[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: module & 5.2
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 2 Apr 2012 08:32:21 +0200
On Mon, Apr 2, 2012 at 2:17 AM, Jay Carlson <nop@nop.com> wrote:
> http://place.org/~nop/soar-0.0.tar.gz
Exactly what I was going to say, we have tools to make correct
amalgamations of multi-file projects that aren't sensitive to Lua
version differences.
Combine that with lhf's srlua, and you get self-contained Lua
executables. That's always been a bit of a bitch with dynamic
languages; to extend the idea further, it would be cool if such a tool
could package the common C extensions as well. It would be smart
'static linking', so that if a person only used the TCP/IP core of
LuaSocket, they would not get the MIME core or the HTTP modules, etc.
A nice project for the proverbial rainy day...
As for moving beyond module(), I can totally recommend Egil's global.lua tool:
http://lua-users.org/lists/lua-l/2012-03/msg00890.html
An earlier version cleared up the accidental globals which happened
when I moved Penlight away from using
steve d.
PS (As for Microlight, only ml.lua is official Jay/Steve/Dirk
'executable proposal', and 'mlx.lua' contains evil/experimental Steve
extensions.)