Feeds

JavaScript shogun deflects Google's mid-air Dart attack

Wirfs-Brock preaches Harmony

Choosing a cloud hosting partner with confidence

Sweet harmony

That's where Wirfs-Brock reckons ECMAScript Harmony could come in. Harmony is an over-used and somewhat lazy codename for technology projects; in this context, however, it denotes the permanently "next" version of the ECMAScript standard that underpins JavaScript.

Harmony's goals include making the language better for writing complex applications and libraries, including - it seems - writing the Document Object Model (DOM) code (which manages the elements on a web page) in native JavaScript. "There were things done in the DOM that were important to do in JavaScript, so you couldn't implement the DOM as a JavaScript library. We are making sure the language is able to support the DOM," Wirfs-Brock said.

A Mozilla research project has already tried re-implement the HTML5 DOM in JavaScript, but it seems to have slowed down or been stopped. Project member David Flanagan recently told The Reg by email he'd become involved in another project that was taking his time and called Dom.js "incomplete". However, he reckoned Dom.js would "become much more robust" as Mozilla's larger Servo Project for a "parallel browser engine" develops.

Wirfs-Brock was sanguine about the project, suggesting that "these things start and stop", but stressed native DOM would be a major step forwards for performance. "The more we can implement in JavaScript the less interoperability overhead and more flexible and extensible the environment is," he said.

Broad goals for Harmony are modularity and better abstraction capabilities. There's a discussion about whether JavaScript should be a functional or Object-Oriented language and also a debate about how permissive the language should remain and about security.

When it comes down to actual features in Harmony, these will include: sandboxes and module loaders, array comprehensions, binary data objects, built-in hash maps and sets, and super-method calls. Some of these, such as block scoping, array comprehension, maps and proxy, have already made it into browsers, specifically Firefox and Chrome between 2006 and 2008. Elsewhere "some of these details aren't really pinned down yet," Wirfs-Brock says.

In the meantime, there's no date for Harmony, although you can expect to be using Harmony's features in five to six years from now. Ahead of that, ECMAScript 6 is expected to be formalised by the end of 2013 when Wirfs-Brock also expects most browsers will be running ECMAScript 5.

Meanwhile, Google marches on with Dart.

The future meets JavaScript

Speaking at QCon last week, Wirfs-Brock reckoned that if there's a danger to JavaScript it'll be from the ECMAScript standards process, which could make JavaScript irrelevant to the needs of developers or chuck in the wrong things. ECMAScript 4 was considered a bit of a disaster and version 5 a success because it got everybody on track again.

And while Google pushes the Dart VM performance factor, Wirfs-Brock believes the performance problem for the language Google wants to replace has been solved, thanks in part to the break-neck work of JavaScript engine makers, who turned out with V8, Webkit, Spidermonkey and Chakra a few years back.

"People heard a lot about JavaScript performance - it's been a big area of emphasis for JavaScript engine implementers in last couple of years. For the moment, the JavaScript performance issues have been solved," Wirfs-Brock said.

Maybe JavaScript has done enough to hold onto its kingdom and to keep Dart at arm's length. And maybe not. ®

Intelligent flash storage arrays

More from The Register

next story
UNIX greybeards threaten Debian fork over systemd plan
'Veteran Unix Admins' fear desktop emphasis is betraying open source
Netscape Navigator - the browser that started it all - turns 20
It was 20 years ago today, Marc Andreeesen taught the band to play
Redmond top man Satya Nadella: 'Microsoft LOVES Linux'
Open-source 'love' fairly runneth over at cloud event
Return of the Jedi – Apache reclaims web server crown
.london, .hamburg and .公司 - that's .com in Chinese - storm the web server charts
Chrome 38's new HTML tag support makes fatties FIT and SKINNIER
First browser to protect networks' bandwith using official spec
Admins! Never mind POODLE, there're NEW OpenSSL bugs to splat
Four new patches for open-source crypto libraries
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.
Cloud and hybrid-cloud data protection for VMware
Learn how quick and easy it is to configure backups and perform restores for VMware environments.
Three 1TB solid state scorchers up for grabs
Big SSDs can be expensive but think big and think free because you could be the lucky winner of one of three 1TB Samsung SSD 840 EVO drives that we’re giving away worth over £300 apiece.
Reg Reader Research: SaaS based Email and Office Productivity Tools
Read this Reg reader report which provides advice and guidance for SMBs towards the use of SaaS based email and Office productivity tools.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.