1 Dec 01:31
Re: Lua bytecode doesn't compress well (with LZMA)
Matthew Wild <mwild1 <at> gmail.com>
2009-12-01 00:31:12 GMT
2009-12-01 00:31:12 GMT
2009/11/30 David Given <dg <at> cowlark.com>: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Luiz Henrique de Figueiredo wrote: >>> Shameless promotion: http://matthewwild.co.uk/projects/squish >> >> Another shameless plug: http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lstrip > > Just because one can never have too many types of wheel, there's also > Kein-Hong Man's luasrcdiet, which I'm using very successfully in Prime > Mover: > > http://luaforge.net/projects/luasrcdiet/ > Squish actually uses this as its main output filter, (there's more than one, such as the one that replaces Lua keywords with single bytes >128) - and it works really well. I went a step further because I wanted to bundle multiple libraries as well as other files (non-code) into a nice compact file. Matthew
As a consequence, g becomes totally referentially
"opaque", or do I misinterpret? (Maybe I miss a basic point, but for me this smells strong like naughty
bugs. Even more since x is a global.) Do you have use cases for such an idiom (that could hardly be refactored
into harmless expression)?
>
> About implementation, it seems to indicate Lua embebs symbolic references (*) to outer _variables_ in
reachable scopes, when creating a closure for g0. Not pointer references (**) to _values_; otherwise the
replacement of x would not be seen by the closure. Before trying, I thought the outcome would be 3, meaning
RSS Feed