Feeds

Google unleashes internal JavaScript tools

Channel the power of Gmail

3 Big data security analytics techniques

Google's critical mass online, combined with recent years' Web 2.0 fever, have helped consolidate 14-year-old JavaScript in the field of web development.

Now Google has released some of the tools it used to build Gmail, Google Docs, and Google Maps that helped in that process of establishing JavaScript as a central player in the line-up that is AJAX.

The giant Thursday released a compiler, library, and set of templates it calls Closure Tools. The tools have been released under an open-source license, although Google did not say what license.

Google did say, though, that the Closure Tools have grown to be a key part of the JavaScript infrastructure behind its web applications.

"We're particularly excited (and humbled) to open source them to encourage and support web development outside Google," Google said on its blog. "We want to hear what you think, but more importantly, we want to see what you make."

The tools are designed to make the task of building and maintaining the notoriously complex JavaScript faster and more simply.

This is Google's second such offering, following development and maintenance of JavaScript in different browsers with Google Web Toolkit (GWT). The difference is that GWT lets you build JavaScript applications in Java while Closure Tools are for JavaScript.

The Compiler removes dead code and rewrites and minimizes what's left to run fast on browsers' JavaScript engines. "The compiler also checks syntax, variable references, and types, and warns about other common JavaScript pitfalls," Google said. You can compile code through a text box or a RESTful API.

The Closure Library provides something akin to a standard JavaScript library - generally lacking in JavaScript - to build large, complex web applications. The library is server-agnostic and designed to be used with the Closure Compiler. Google said the library: "Provides clean utilities for common tasks so that you spend your time writing your app rather than writing utilities and browser abstractions."

Closure Templates can be used in JavaScript or Java for the client or server and have been precompiled to produce what Google called "efficient" JavaScript. The Closure Templates use a simple syntax that Google said is "natural for programmers." ®

Top three mobile application threats

More from The Register

next story
This time it's 'Personal': new Office 365 sub covers just two devices
Redmond also brings Office into Google's back yard
Inside the Hekaton: SQL Server 2014's database engine deconstructed
Nadella's database sqares the circle of cheap memory vs speed
Oh no, Joe: WinPhone users already griping over 8.1 mega-update
Hang on. Which bit of Developer Preview don't you understand?
Microsoft lobs pre-release Windows Phone 8.1 at devs who dare
App makers can load it before anyone else, but if they do they're stuck with it
Half of Twitter's 'active users' are SILENT STALKERS
Nearly 50% have NEVER tweeted a word
Internet-of-stuff startup dumps NoSQL for ... SQL?
NoSQL taste great at first but lacks proper nutrients, says startup cloud whiz
Batten down the hatches, Ubuntu 14.04 LTS due in TWO DAYS
Admins dab straining server brows in advance of Trusty Tahr's long-term support landing
IRS boss on XP migration: 'Classic fix the airplane while you're flying it attempt'
Plus: Condoleezza Rice at Dropbox 'maybe she can find ... weapons of mass destruction'
OpenSSL Heartbleed: Bloody nose for open-source bleeding hearts
Bloke behind the cockup says not enough people are helping crucial crypto project
prev story

Whitepapers

Top three mobile application threats
Learn about three of the top mobile application security threats facing businesses today and recommendations on how to mitigate the risk.
Combat fraud and increase customer satisfaction
Based on their experience using HP ArcSight Enterprise Security Manager for IT security operations, Finansbank moved to HP ArcSight ESM for fraud management.
The benefits of software based PBX
Why you should break free from your proprietary PBX and how to leverage your existing server hardware.
Five 3D headsets to be won!
We were so impressed by the Durovis Dive headset we’ve asked the company to give some away to Reg readers.
SANS - Survey on application security programs
In this whitepaper learn about the state of application security programs and practices of 488 surveyed respondents, and discover how mature and effective these programs are.