[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua that generates executables?
- From: Ivan Kolev <ikolev@...>
- Date: Wed, 17 Nov 2004 00:14:33 +0200
Andre Carregal wrote:
We are aiming on an easy deployable format for Kepler applications, but LAR
could be used anywhere that needs to make things more compact.
Basically it allows someone to transparently access files (with require,
loadfile and io.open) inside the .lar archive. For example:
would work for any of
/a/b.lar (with c.lua zipped)
/a.lar (with b/c.lua zipped)
Exactly! I forgot to mention in my previous post that in this case Zip is used not as much for the compression, as for the virtual file system that it creates inside the .zip file.
Another common option for virtual file systems (as used in games, for example) is encryption. So it would be wise to have an option to add some sort of filter to the .LAR reader/creator...
BTW, I talk about Zip because it is a common tool. It could be tar as well (though it's not so common on Windows). But it's not a good idea to have a completely new archive format, because we'll lose the easy archive creation/browsing/modification that a tool like Zip provides. I suppose Java picked Zip for the same reason. (It's a pity that Zip rules the archiving world when there are much better solutions like Rar, but that's a completely different topic).
Just tossing ideas around ;)