Feeds

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

New Dart SDK brings speed boost, language revamp

Internet Security Threat Report 2014

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

Security for virtualized datacentres

More from The Register

next story
Microsoft WINDOWS 10: Seven ATE Nine. Or Eight did really
Windows NEIN skipped, tech preview due out on Wednesday
Business is back, baby! Hasta la VISTA, Win 8... Oh, yeah, Windows 9
Forget touchscreen millennials, Microsoft goes for mouse crowd
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?
ARM gives Internet of Things a piece of its mind – the Cortex-M7
32-bit core packs some DSP for VIP IoT CPU LOL
Microsoft on the Threshold of a new name for Windows next week
Rebranded OS reportedly set to be flung open by Redmond
Lotus Notes inventor Ozzie invents app to talk to people on your phone
Imagine that. Startup floats with voice collab app for Win iPhone
'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'
prev story

Whitepapers

Forging a new future with identity relationship management
Learn about ForgeRock's next generation IRM platform and how it is designed to empower CEOS's and enterprises to engage with consumers.
Storage capacity and performance optimization at Mizuno USA
Mizuno USA turn to Tegile storage technology to solve both their SAN and backup issues.
The next step in data security
With recent increased privacy concerns and computers becoming more powerful, the chance of hackers being able to crack smaller-sized RSA keys increases.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.
A strategic approach to identity relationship management
ForgeRock commissioned Forrester to evaluate companies’ IAM practices and requirements when it comes to customer-facing scenarios versus employee-facing ones.