lua-users home
lua-l archive

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


Hi all,

LuaSrcDiet reduces the size of Lua 5.1.x source files by aggressively removing all unnecessary whitespace and comments, optimizing constant tokens, and renaming local variables to shorter names.

Location: http://code.google.com/p/luasrcdiet/

Version 0.12.1 changes:

* BUG FIX: Long comment adds an extra 2 characters when using --keep option. (Thanks to Jeff) * Faster function call syntax sugar optimization using a one-pass token deletion loop.

Notes on future plans, Lua 5.2 plans:

'local' keyword removal isn't looking good -- gets very awkward attempting a general optimizer using the ad hoc data structures LuaSrcDiet currently has. Better to do it for the Lua 5.2 version.

That said, I'm not in a hurry to do LuaSrcDiet for Lua 5.2. There was a recent sale at a toy store (Farnell/Newark) so LuaSrcDiet is currently on the back burner...

If there are serious users who want LuaSrcDiet for Lua 5.2 in 2012, please ping or reply on the list so that the level of interest can be gauged and plans adjusted. It is after all, an obscure tool and one cannot expend unlimited manpower on it. This would be relevant for lstrip and squish too.

Thanks,
--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia