Feeds

Dart 1.1 bullseyes JavaScript performance in latest benchmarks

Compiled apps now match or beat handwritten JavaScript

3 Big data security analytics techniques

Just two months after shipping the first production-ready version of Dart, its JavaScript competitor, Google has offered up a new version that it claims can output code that runs as fast or faster than the equivalent routines written in JavaScript.

Dart has always been fast when running in a native VM. In fact, Dart benchmarks running in Dart VM have consistently outperformed the equivalent JavaScript running in Google's own V8 JavaScript engine. But almost nobody runs client-side Dart applications this way in the real world, because no mainstream browser currently ships with Dart VM. Instead, production Dart web apps are typically "compiled" into JavaScript using dart2js, the Dart SDK's code translator.

That hasn't always worked out so well. Past versions of dart2js have generally produced code that runs slower than it would if the same routines had been hand-written in JavaScript. But according to a blog post by Google developer advocate Seth Ladd, Dart 1.1, which Google released on Thursday, has all but closed that gap.

"Dart2js now generates JavaScript that performs as well as, if not better than, the idiomatic JavaScript equivalent," Ladd wrote.

When compiled to JavaScript, Dart 1.1's performance on the Richards benchmark – a torture test designed to compare the efficiency of systems programming languages – is up 25 per cent when compared to Dart 1.0. Its performance on the more recent FluidMotion benchmark has doubled. You can see the full results of Google's benchmark tests on the Dart project's performance page, here.

Improving client-side performance wasn't the only focus of the new release, either. Ladd said there is growing interest in using Dart for server-side applications – presumably, because it's easy to run Dart VM on a server, among other reasons – and Dart 1.1 includes a number of new features designed to accommodate this.

The new release now supports large files, file copying, process signal handlers, accessing output terminal information, and the UDP networking protocol – the latter of which should make it easier to write streaming media applications in Dart.

In addition, Dart's HTTP stack has been optimized since the last release, latency has been decreased for many I/O operations, and performance of asynchronous operations has been improved.

Dart 1.1 also bundles a souped-up Dart Editor that improves debugging and code completion and offers more descriptive tooltips, in addition to various performance enhancements.

Google has updated the Dart language spec to coincide with this release and it has also published new developer how-tos on writing command-line applications, Dart-JavaScript interoperability, and using data streams.

If you're the type who prefers to just dive right in, however, you can download all of the updated tools, including dart2js and the improved Dart Editor, from the Dart homepage, here. ®

SANS - Survey on application security programs

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
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
Ditch the sync, paddle in the Streem: Upstart offers syncless sharing
Upload, delete and carry on sharing afterwards?
New Facebook phone app allows you to stalk your mates
Nearby Friends feature goes live in a few weeks
Microsoft TIER SMEAR changes app prices whether devs ask or not
Some go up, some go down, Redmond goes silent
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
prev story

Whitepapers

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