News for hackers. Stuff that matters.
Re:Google releases Closure, the tools behind the JS geniuses by nym on Monday November 09, 2009 @05:56PM (#931949)
The Closure Compiler is the big news. As the article says, it turns your regular JavaScript code into compact, high-performance JavaScript code. This is some of the magic behind Google Maps, Gmail, and I assume Wave.

This is a very big deal for JavaScript developers because it is like having JSLint, YUI Compressor, and Chuck Norris rolled into one.

Re:Google releases Closure, the tools behind the JS geniuses by enneff on Monday November 09, 2009 @10:04PM (#932328)
"it turns your regular JavaScript code into compact, high-performance JavaScript code."

It won't actually make your JavaScript much faster, if it does at all. The major benefits are the exclusion of unused code, and code in-lining where possible. This helps a lot in terms of cutting down loading times, but your code is still only really going to be about as efficient as it was before.

Re:Google releases Closure, the tools behind the JS geniuses by swolchok on Tuesday November 10, 2009 @12:00AM (#932472)
Not true if you use objects as namespaces -- it is capable of reducing a.b.c.d to one access, particularly with inlining, and this construct has a runtime cost in JS.
Re:Google releases Closure, the tools behind the JS geniuses by enneff on Tuesday November 10, 2009 @01:20AM (#932566)
Interesting. I stand amended.
Re:Google releases Closure, the tools behind the JS geniuses by jollojou on Tuesday November 10, 2009 @02:52AM (#932652)
Wave is built with GWT (http://www.techworld.com.au/article/305043/aussie_devs_make_...), which has its own JavaScript compiler.

But do GWT and Closure use the same technology, that I don't know.