lua-users home
lua-l archive

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


It was thus said that the Great Paige DePol once stated:
> 
> For embedded systems the parser/lexer could just be left out, obviously this
> would require all necessary Lua code be pre-compiled (another good reason
> for adding cross-platform bytecode genereration to 'luac' in my opinion). I
> was also wondering if people who embed Lua precompile the source or not?

  For work, an application I wrote [1] embedded Lua plus a large number of
modules required for it to work.  The modules written in Lua are
pre-compiled; in some cases they are smaller than the source files; other
times not so.  In any case, these are further compressed using zlib before
being embedded in the executable.  I have writen about this before on the
list [2] but briefly, the compressed pre-compiled Lua modules are larger
than the compressed source code [3].  I haven't modified my build because
the larger size isn't that much of a concern for us (compariatively
speaking, my program is smaller that most projects around here).

  -spc

]1]	Network server.

[2]	No time right now to find references, sadly.

[3]	I want to say this is more so for 64-bit builds than 32-bit builds,
	but again, I don't have time today to do an actual test.