On 29/02/2012 09:18, Robert Clipsham wrote:
On 29/02/2012 03:11, Adam D. Ruppe wrote:
On Wednesday, 29 February 2012 at 02:42:38 UTC, Piotr Szturmaj wrote:
44 KB - that's not bad!
It actually gets better: 9kb if you trim the mangled names
down to size (I've written a mangle name trimmer and an
unused function cutter; hello world is about 200 bytes.).
You could probably still beat that if you ran it through Google's
closure compiler (on advanced!):
http://closure-compiler.appspot.com/home
I actually just tried this with:
http://arsdnet.net/dtojs/microd.js
Original Size: 20.14KB (2.61KB gzipped)
Compiled Size: 3.05KB (1015 bytes gzipped)
Pretty impressive! It did spit out 86 warnings though...
Mostly:
* JSC_WRONG_ARGUMENT_COUNT
* JSC_USED_GLOBAL_THIS
* JSC_REDECLARED_VARIABLE
* JSC_NOT_A_CONSTRUCTOR (iirc to get around that you have to drop in a
/** @constructor */ comment before anything you want to use as a
constructor for that)
Good work at getting std.algorithm (mostly) working! :D
--
Robert
http://octarineparrot.com/