Feeds

Google unleashes internal JavaScript tools

Channel the power of Gmail

Providing a secure and efficient Helpdesk

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." ®

Internet Security Threat Report 2014

More from The Register

next story
Microsoft on the Threshold of a new name for Windows next week
Rebranded OS reportedly set to be flung open by Redmond
'In... 15 feet... you will be HIT BY A TRAIN' Google patents the SPLAT-NAV
Alert system tips oblivious phone junkies to oncoming traffic
Apple: SO sorry for the iOS 8.0.1 UPDATE BUNGLE HORROR
Apple kills 'upgrade'. Hey, Microsoft. You sure you want to be like these guys?
SMASH the Bash bug! Red Hat, Apple scramble for patch batches
'Applying multiple security updates is extremely difficult'
'Google is NOT the gatekeeper to the web, as some claim'
Plus: 'Pretty sure iOS 8.0.2 will just turn the iPhone into a fax machine'
ARM gives Internet of Things a piece of its mind – the Cortex-M7
32-bit core packs some DSP for VIP IoT CPU LOL
'People have forgotten just how late the first iPhone arrived ...'
Plus: 'Google's IDEALISM is an injudicious justification for inappropriate biz practices'
prev story

Whitepapers

Providing a secure and efficient Helpdesk
A single remote control platform for user support is be key to providing an efficient helpdesk. Retain full control over the way in which screen and keystroke data is transmitted.
Intelligent flash storage arrays
Tegile Intelligent Storage Arrays with IntelliFlash helps IT boost storage utilization and effciency while delivering unmatched storage savings and performance.
Beginner's guide to SSL certificates
De-mystify the technology involved and give you the information you need to make the best decision when considering your online security options.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.
Secure remote control for conventional and virtual desktops
Balancing user privacy and privileged access, in accordance with compliance frameworks and legislation. Evaluating any potential remote control choice.