Closure Compiler – JavaScript compiler from Google Labs
April 11, 2010 in Tools by admin
The Closure Compiler is a tool for making JavaScript download and run faster. It is a true compiler for JavaScript. Instead of compiling from a source language to machine code, it compiles from JavaScript to better JavaScript. It parses your JavaScript, analyzes it, removes dead code and rewrites and minimizes what’s left. It also checks syntax, variable references, and types, and warns about common JavaScript pitfalls. More

closure compilers session was interseting for me the most
I have seen someother minifiers, but this optimizer + minifier make me excited. I could make more faster apps
Thanks for introducing this
I think closure is a javascript optimizer more than a compiler. right?
Closure is a JavaScript Optimizer.. i had blogged about it shortly after the event…@
http://praseedp.blogspot.com/2010/04/closure-compiler.html
I think the name (closure) might have originated from the computer science/mathematics term closure which is derived from mathematical notion of closure ( + is a closed operation for +ve integers ..). By Analyzing Javascript source code , the tool can rewrite the Abstract Syntax Tree to produce running code. The generated source code is “closed” (as variable reference are validated ) after transformation. ( The Compiler transforms code into working javascript…which is similar to the notion of closure )