lua-users home
lua-l archive

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

On a similar vein. In Win32 we build Lua binary code into resource file format
data (using a Lua script). The resources are then added to a DLL (possiibly only
containing resources). The loading is done with a single function
(named rcload())
this is a rough equivalent to loadfile() except for loading Lua code from DLLs
instead of the file system. We have found that there is little advantage of  
compressing the script in the DLL (although we sometimes do it). Loading
scripts from DLL resources is dynamite quick. It offers enormous advantages
in packaging, the package IS the DLL. It has advantages for deployment
it has more user and admin. resilience. There must be a rough equivalent to this
approach on Unix?

PS if anyone wants the binary to resource code and assocaited loader, let
me know and I can put it on the web.

On Tue, 16 Nov 2004 20:43:00 -0300, Daniel Quintela <> wrote:
> Luiz Henrique de Figueiredo escribió:
> >I had in mind to use the cpio format, which is as simple as it gets. It's even
> >simpler than tar... But like I said, I don't really have time for this right
> >now plus srlua can be easily modified to handle any kind of file.
> >--lhf
> >
> >
> Zip, Tar, CPIO... I think any proposal has to include support of dynamic
> module loading.
> Do you agree ?
> Daniel