Feeds

Google's 'JavaScript killer' marks first birthday with update

New Dart SDK brings speed boost, language revamp

Combat fraud and increase customer satisfaction

Just over a year after it first unveiled the Dart language for large-scale web programming, Google has announced that its purported "JavaScript killer" has hit its first major milestone.

"Today, after plowing through thousands of bug reports and feature requests from the web community, a new, more stable and comprehensive version of Dart is now available and ready to use," wrote Lars Bak, co-developer of the language, in a blog post on Tuesday.

The new release, which Google is calling "M1," is hardly version 1.0. In fact, the Chocolate Factory is referring to it as version 0.1 internally, to indicate that the language and its associated libraries are still likely to undergo significant changes before they reach their finished form.

"M1 is our first release milestone. It's a signal to developers that things are stabilizing, that now's a good time to start building your app in Dart," said Google's JJ Behrens in a video chat on Tuesday. "We're going to try really hard to not make backwards incompatible changes, but rather we're going to be polishing the language, adding to it, and then working a lot on performance."

Much has already changed since Dart's initial public release a year ago. An article on the Dart language website lists 24 significant language changes in the M1 release, not to mention "minor changes and clean-ups."

The Dart team has also been working to improve performance, mostly by enhancing the Dart VM (virtual machine). A new feature called "snapshots" can capture the state of an application right before it starts executing, allowing it to start up as much as ten times faster in subsequent launches. And Behrens says the Dart VM actually now outperforms Google's V8 JavaScript VM on key benchmarks.

Unfortunately, neither improvement will do much to speed up most Dart applications, at least for now. That's because the Dart VM isn't included in any mainstream browser. The primary method for deploying Dart applications today is to compile them to JavaScript – which is one reason why the notion that Dart is a "JavaScript killer" still irks its development team.

"Dart is not out to replace JavaScript," Google's Gilad Bracha insisted during Tuesday's video chat. "This is something that, I guess, various commentators jumped to that conclusion, and once that happens, no amount of denials will help."

Even though most users will run Dart apps as JavaScript, however, the Dart VM can be used to run server-side applications in Node.js fashion, and the Dart SDK ships with a development version of Google's Chrome browser that has the Dart VM built-in, to enable faster debugging. (It has been widely speculated that Google may include a Dart VM in future mainstream Chrome releases, but the search giant has announced nothing officially.)

The M1 release also includes an improved version of the Dart source code editor, which uses static code analysis to enable intelligent refactoring and code completion, as well as introducing a package-management system called Pub, which allows Dart developers to share their packages on Google's servers.

In addition, the new SDK introduces a few new libraries, including an HTML library that works transparently on modern browsers and a library that makes it easier for Dart code to interoperate with code written in JavaScript.

For all the changes introduced in the M1 release, however, there are many more to come. There will definitely be an M2 release before the language approaches its final form, and future updates may even break Dart code written today.

"When we say that the language is stable, you have to take that with a grain of salt, in the sense that we have no intention of making any more breaking changes," Bracha said, before adding, "unless we've really screwed up." ®

Combat fraud and increase customer satisfaction

More from The Register

next story
OpenBSD founder wants to bin buggy OpenSSL library, launches fork
One Heartbleed vuln was too many for Theo de Raadt
This time it's 'Personal': new Office 365 sub covers just two devices
Redmond also brings Office into Google's back yard
Ubuntu 14.04 LTS: Great changes, but sssh don't mention the...
Why HELLO Amazon! You weren't here last time
Got Windows 8.1 Update yet? Get ready for YET ANOTHER ONE – rumor
Leaker claims big release due this fall as Microsoft herds us into the CLOUD
Patch iOS, OS X now: PDFs, JPEGs, URLs, web pages can pwn your kit
Plus: iThings and desktops at risk of NEW SSL attack flaw
Next Windows obsolescence panic is 450 days from … NOW!
The clock is ticking louder for Windows Server 2003 R2 users
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
Red Hat to ship RHEL 7 release candidate with a taste of container tech
Grab 'near-final' version of next Enterprise Linux next week
Apple inaugurates free OS X beta program for world+dog
Prerelease software now open to anyone, not just developers – as long as you keep quiet
prev story

Whitepapers

Mobile application security study
Download this report to see the alarming realities regarding the sheer number of applications vulnerable to attack, as well as the most common and easily addressable vulnerability errors.
3 Big data security analytics techniques
Applying these Big Data security analytics techniques can help you make your business safer by detecting attacks early, before significant damage is done.
The benefits of software based PBX
Why you should break free from your proprietary PBX and how to leverage your existing server hardware.
Securing web applications made simple and scalable
In this whitepaper learn how automated security testing can provide a simple and scalable way to protect your web applications.
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.