• On The Insider: Britney's Bikini-Clad Top 10

Webware

Read all 'GWT' posts in Webware
November 5, 2009 10:30 AM PST

Google offers JavaScript programming tools

by Stephen Shankland
  • 7 comments

With a project called Closure Tools, Google plans on Thursday to start helping developers who aspire to match the company's proficiency in creating Web sites and Web applications.

Google is a strong proponent of using JavaScript to write Web-based programs, part of its Web-centric ethos. Indeed, the company has pushed the language to its limits with services such as Gmail and Google Docs, and it developed its Chrome browser in part to enable JavaScript programs to run faster.

But writing, debugging, and optimizing heavy-duty JavaScript can be difficult--in part because a given JavaScript program sometimes works differently on different browsers. Google's open-source Closure Tools project is an attempt to help with some of these challenges.

The first in the suite of tools is the Closure Compiler, a software package designed to boil down a JavaScript program so it's smaller and runs faster. For example, a function named DisplayAddress() could be replaced with just a().

Along with the compiler come some extra tools that run in the Firefox browser. One, Closure Inspector, is an extension for Firefox's Firebug add-on designed to help programmers understand and debug the rewritten JavaScript--linking a() back to DisplayAddress(), for example. Another add-on for the Google Page Speed extension lets programmers see how much the compiler helped.

Google also plans to make the compiler available as a Web application hosted on its Google App Engine service.

The second element is called the Closure Library, a collection of prebuilt JavaScript code that lets programmers handle relatively sophisticated technology--arrays and string manipulation, for example.

Last are Closure Templates, more prewritten code to ease creation of JavaScript and HTML user interfaces.

In an earlier era, programming tools were expensive packages bought by a select few, but open-source software, new marketing strategies, and new business methods have made that approach the exception rather than the rule these days. Now programming tools are often a means to another end--encouraging programmers to produce the software that will make Windows or the Palm Pre useful and therefore popular, for example.

In Google's case, the objective is often to make the Web more popular because it sees more activity on the Web as corresponding directly with more activity on its revenue-generating search site. Among the high-profile projects to this end are Chrome, Chrome OS, and Android, all subsidized by Google's powerful search-advertising business.

One interesting contrast to Closure is another Google project called Google Web Toolkit. It's designed to accomplish some of the same goals as Closure, including paving over browser incompatibilities and producing high-performance JavaScript. But with GWT, coders write programs in Java that gets translated into JavaScript.

So one last question: why the name?

Google's reply: "Being a functional language, the concept of a function closure is fundamental to the JavaScript language."

Originally posted at Deep Tech
April 8, 2009 8:37 AM PDT

Java makes Google App Engine more mainstream

by Stephen Shankland
  • 13 comments

Corrected at 11:53 a.m. PDT. See below for details.

MOUNTAIN VIEW, Calif.--In a case of converging technologies, Google App Engine took several steps toward the mainstream on its first birthday Tuesday at the same time that the concept of cloud computing in general is becoming more accepted.

Cloud computing presents applications as Internet-accessible services rather than software that runs on corporate servers or people's own PCs. It can mean anything from raw computing services that can be bolted together, as in the case of Amazon Web Services, to finished products such as the Picnik photo-editing site or SalesForce.com customer-management service. Google App Engine is an intermediate level, offering a general-purpose foundation.

Thus far, App Engine had been limited to Web applications written in the Python programming language favored internally at Google but not as much elsewhere. But on Tuesday, the top-requested App Engine feature, support for Java programs, arrived--albeit only in a preview form initially available only to the first 10,000 developers who sign up.

"It's the language of the enterprise," said Ryan Nichols, leader of product management and marketing at Appirio, a 140-person start-up that builds software for clients who want cloud computing applications. "It allows us to have a different level of conversation with our customers."

Graham Spencer, a Google engineering director, announces new features of Google App Engine at a Campfire One event Tuesday.

Graham Spencer, a Google engineering director, announces new features of Google App Engine at a Campfire One event Tuesday.

(Credit: Stephen Shankland/CNET)

Google announced the Java support and a handful of other new App Engine features on its blog and at a Campfire One event for developers at its headquarters here. As with the regular App Engine service, use within certain limits is free, but developers must pay for heavy-duty App Engine use.

... Read more

May 27, 2008 4:50 PM PDT

Google modernizes Web software tool

by Stephen Shankland
  • 2 comments

Google plans to release later this week a near-final version of the Google Web Toolkit 1.5, software designed to ease the onerous parts of writing sophisticated Web-based software.

GWT 1.5 includes support for Java 5, a version of the Sun Microsystems programming language released in 2006, and produces software that runs about 1.2 to 2 times faster for complex Web applications, said Bruce Johnson, Google's engineering manager for GWT.

The new software fuels Google's ambition to make the Web a much richer software environment--an ambition on display Wednesday and Thursday at the Google I/O conference in San Francisco. Johnson believes the Web is already "really close" to the abilities of personal computers as a software foundation.

"We've observed that there's no question anymore whether you're going to target the browser or a desktop app. For almost any new exciting app, you're going to target the browser," Johnson said. "For the right set of applications, it's already better than what you can do on the desktop. For extremely low-latency applications, like video editing, I think we're still a couple years out."

Google is trying to shift people toward the Web, hoping to profit indirectly by spurring more Internet searches, its main source of revenue. It's also got some direct but much smaller businesses, including subscription fees for corporate use of online Google Apps such as its spreadsheet and calendar. Also at Google I/O, the company is revealing the fees for heavy users of its new Google App Engine service to host Web applications.

App Engine, which was unveiled in April and now has about 60,000 approved users, is free for starter applications requiring 500MB of storage and network bandwidth to support about 5 million page views a month, Google said. On Wednesday, the service will be open to the 150,000 who've signed up so far and to any others who want to join.

Beyond that, Google will charge 10 to 12 cents per hour of processor core work, plus 15 to 18 cents per gigabyte of storage per month, plus 11 to 13 cents per gigabyte of data transferred out, plus 9 to 11 cents per gigabyte of data transferred in. The fees are similar in broad structure to that of a competing service from Amazon.

GWT: Doing the grunt work
GWT lets programmers write their code in Java, but then converts that raw material into the JavaScript language that's built into Web browsers. One advantage of GWT is that it can handle the significant differences in how different browsers handle JavaScript, Google argues.

"Not all the JavaScript standards are interpreted in different ways," Johnson said. "The truth is it's a minefield."

GWT supports most modern browsers, including recent versions of Internet Explorer, Firefox, Safari (and other Webkit-based browsers such as that of the iPhone and Google Android), and Opera.

Sun introduced more changes to Java with the current Java 6, but it was Java 5 that introduced several changes to the language. Among them (brace yourself if you're not a coder): generics, enumerated types, annotations, enhanced for/loop syntax, and autoboxing.

Supporting those newer features makes GWT less different from other Java programming environments, cuts down on opportunities for programmer mistakes, and can help GWT produce faster JavaScript, Johnson said.

GWT uses the Eclipse project's JDT to understand people's Java code, then adds a Google-engineered component that translates it into JavaScript, Johnson said.

It's open-source software, and "We get dozens and dozens of patches" from outside contributors. Among those in the current release is support for right-to-left languages such as Arabic.

Originally posted at News Blog
May 27, 2008 8:30 AM PDT

Google to update Web toolkit?

by Stephen Shankland
  • 1 comment

Google is expected to update its Google Web Toolkit (GWT) this week at its new developer conference, according to eWeek.

GWT is designed to help programmers write richer Internet applications using a beefed-up JavaScript programming technique called Ajax; the project was released as open-source software in 2006 with version 1.3, and the current version is 1.4. There are several GWT talks at the Google I/O conference.

Google has been working on improving GWT's performance, Java compatibility, and developer tools, eWeek said.

Originally posted at News Blog
  • prev
  • 1
  • next
advertisement

About Webware

Say No to boxed software! The future of applications is online delivery and access. Software is passé. Webware is the new way to get things done.

Add this feed to your online news reader

Webware topics

The browser battles go on and on

roundup From Firefox to IE and from Chrome to Opera and Safari, there's no sitting still for browser makers looking to keep their products fresh and competitive.

3G wireless still holds promise

The next generation of 4G wireless may get all the headlines, but advanced 3G technology will likely dominate services for the next few years.

Most Discussed

Inside CNET News

Scroll Left Scroll Right