Looks interesting. Anyone working on a code obfuscator to further
reduce the size?
Something I've done for an application where small size was important
but speed was not was to gzip-compress the lua code and make a
specific file reader (for lua_load) that expanded the file. An extra
feature is that the same loader can be used for loading uncompressed
files as well, thanks to how zlib is implemented.
The source code looks as follows (well, error handling is missing, but
it's easy to add):
> I've updated my lstrip program, which compresses Lua programs by
> removing comments and whitespace:
> http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/5.1/lstrip.tar.gz >
> lstrip may be useful for embedding Lua code as a string (after running the
> output through bin2c or 'xxd -i').