Live data from Hacker News

Introducing Closure Tools

googlecode.blogspot.com

1–10 of 71 posts

Re: Introducing Closure Tools

#5
For 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.

Re: Introducing Closure Tools

#6
I'm pretty sure this is what Steve Yegge was talking about on the most recent StackOverflow podcast he was in.

If 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

#7
post #2

What an unfortunate name. Perhaps, in the confusion, it will help to actually promote Rich Hickey's wonderful work.

I'm getting disillusioned with software naming. Everyone wants a cool name that's fun to say, but all the names mean other things too, and quite a few don't describe the project very well.

Re: Introducing Closure Tools

#8
post #5

For 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.

Here's another data point:

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

#9
Using this code on the code here (except for processing.js): http://github.com/cburroughs/minification-compare/tree/maste...

Latest 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

#10
post #2

What 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.

"Closure" being a general concept in programming, I always disliked the name "Clojure". Same thing as Google Chrome, everyone is now confused when you talk about browser chrome as a general thing.
Post reply on HN