Introducing Closure Tools
googlecode.blogspot.com
Introducing Closure Tools
1–10 of 71 posts
Re: Introducing Closure Tools
#2Re: Introducing Closure Tools
#3What an unfortunate name. Perhaps, in the confusion, it will help to actually promote Rich Hickey's wonderful work.
Re: Introducing Closure Tools
#4What an unfortunate name. Perhaps, in the confusion, it will help to actually promote Rich Hickey's wonderful work.
Re: Introducing Closure Tools
#5Original: 459220
YUI: 241920
Google: 209929 -- 13% improvement
YUI + gz: 66164
Google + gz: 61297 -- 7% improvement
Caught a few non-fatal syntax errors too. We serve hundreds of thousands of those a day, so that's already committed to our tree and on the way to testing.
Re: Introducing Closure Tools
#6If that is accurate, it's a JavaScript compiler that supports a way of partially compiling to allow very tight integration with an IDE (or editor). Yegge's point was that an IDE or editor should not have to re-invent the wheel and a compiler should be able to provide sophisticated feedback about syntax, objects, variables, scope, etc.
Cool to see it out in the wild.
Re: Introducing Closure Tools
#7What an unfortunate name. Perhaps, in the confusion, it will help to actually promote Rich Hickey's wonderful work.
Re: Introducing Closure Tools
#8For one of our JS bundles it's a substantial improvement over YUI's Compressor. Original: 459220 YUI: 241920 Google: 209929 -- 13% improvement YUI + gz: 66164 Google + gz: 61297 -- 7% improvement Caught a few non-fatal syntax errors too. We serve hundreds of thousands of those a day, so that's already committed to our tree and on the way to testing.
I downloaded jquery-1.3.2.js and jquery-1.3.2.min.js from http://docs.jquery.com/Downloading_jQuery#Current_Release
> wc -c jquery-1.3.2.js
120763
> wc -c jquery-1.3.2.min.js
57254
> java -jar compiler.jar --js jquery-1.3.2.js | wc -c
55340
Using Google's compiler saves an additional 4% over the existing minified version
(disclosure: I used to work for Google)
Re: Introducing Closure Tools
#9Latest full release of yuicompressor vs closure at SIMPLE_OPTIMIZATIONS level:
----- TOTALS -----
base: yui-compressor-2.4.2
('abs diff:', '768050', 'gz: ', '184071')
('% change: ', -0.56976157623774126, 'gz: ', -0.51009685330672982)
challenger: closure-compiler
('abs diff:', '814830', 'gz: ', '193817')
('% change: ', -0.60446432545511197, 'gz: ', -0.53710493134361448)Re: Introducing Closure Tools
#10What an unfortunate name. Perhaps, in the confusion, it will help to actually promote Rich Hickey's wonderful work.
It was called Closure before Rich announced Clojure to the world.