The Register® — Biting the hand that feeds IT

Feeds

JavaScript shogun deflects Google's mid-air Dart attack

Wirfs-Brock preaches Harmony

Agentless Backup is Not a Myth

QCon 2012 Google might be pressing on solo with JavaScript-killer Dart, but those backing JS reckon their language - while not perfect - will thrive for another 25 years.

Allen Wirfs-Brock, editor of the ECMAScript 5 standard, thinks JavaScript will expand beyond its web stronghold, thanks to the use of browsers to run apps in a dawning post-PC era.

"Look at the role JavaScript has in the web application platform: it's far from perfect, but it's getting the job done, and think about what it would take to replace JavaScript?" Wirfs-Brock said at QCon London 2012. "JavaScript is there; it's not clear how anything else can take its place."

There is, of course, the small matter of Google's Dart, a blended combination of JavaScript and Scala unveiled by the ads'n'search giant in October 2011. Dart is supposedly a language for the web that's capable of overcoming the limitations and shortcomings of JavaScript and building a better internet.

Unlike many new languages that are born and quickly die or fade into obscurity, Dart is alive. Test versions of Chromium, the open-source browser that feeds into Google's Chrome, appeared in February featuring a Dart Virtual Machine capable of running programs built using the language.

Until now, Dart had converted code to JavaScript to run in existing Javascript VMs in the browser. Not anymore. "Over time, these programs will take advantage of the VM's faster performance and lower startup latency," the Chromium blog said here.

Google has come up with Dart because it thinks JavaScript suffers from "fundamental flaws"; its goal is to make Dart the lingua franca of web development. Google's got a particular problem with the lack of clear and consistent tools, libraries and frameworks for JavaScript, things that tend to hinder the construction of large-scale apps beloved of Google.

When it comes to selling Dart, Google's working both sides of the street. As a member of Brock's ECMA technical committee TC39, Google is playing the good citizen by helping to develop JavaScript, but it also wants to convince fellow browser makers that they should stick Dart in.

"What browser manufacturers have you heard show interest in Dart," Wirfs-Brock asked The Reg slipping in to rhetorical-question mode at QCon. Er, nobody.

Darts thrown

In fact, Dart in Internet Explorer, Firefox and Safari would be a major technology coup; Chrome is the biggest and arguably strongest growing rival to browsers from Microsoft, Mozilla and Apple both on terms of project roadmap. Such an inclusion would show technology leadership by Google in an important and sensitive area of web development and performance. Microsoft's only just come around to full HTML.

"What would it take to motivate all the major browser implementations to implement Dart in timely enough manor to have any impact," Wirfs-Brock continued.

Google does have scale on its size. It has a browser that's at least growing, unlike others, and it's the owner of influential web real estate from ads and search to email, docs and video. Arguably, all Google needs to do is sit still and let the web come to it.

Regcast training : Hyper-V 3.0, VM high availability and disaster recovery

Next page: Sweet harmony

Shades of VBScript

Microsoft used to be at the receiving end of a good kicking for pulling this crap with Internet Explorer. They'd shove in extensions into HTML and CSS as well as new tech VBScript, ActiveX, VML etc. in order to pollute the web and tie it to their own browser.

And now we see Google doing the same with the likes of Dart, PNacl, WebM and so on. They should be receiving an equally large kicking for what they are up to.

The excuse that some of the tech is open source doesn't really cut it either since it will still result in Chrome being the reference implementation and other browsers playing continual catchup. There are perfectly good standards bodies that Google can submit to if they want to see their tech adopted without shoving out some half baked standard and expecting others to jump when they say so.

11
0

Re: Reinventing the wheel

Java - because Sun and then Oracle really messed up by locking the language down to the extent that no-one can really leverage it for a client platform well. If you think MS were alone on this, witness Dalvik and android.

C# - because its from MS, basically. Not that I have an inherent bias against MS technology and certainly C# is what Java would be if Sun had bothered to continue developing it, but because the rest of the planet doesn't necessarily hold this view.

2
0

Re: Shades of VBScript

Except that Dart cross-compiles to JS. So, you don't really have to implement everything twice. If the Dart VM does end up being significantly faster than JS, then, there might be a significant win in getting the performance benefit where Dart is available.

No ripping of JS out of Chrome required. Either JS VMs catch up in performance, or eventually other browsers adopt Dart because it really is faster and then don't want web apps to suck on their browser compared to chrome.

2
0

More from The Register

SCO vs. IBM battle resumes over ownership of Unix
Zombie lawsuit back and wants to suck the brains out of Linux
Bjarne Again: Hallelujah for C++
Plus: Now officially OK to admit you never used STL algorithms
Interwebs taunt Sir Jony over Apple eye candy makeover
Hey Ive, Ive... add more unicorns, willya?
Apple: iOS7 dayglo Barbie makeover is UNFINISHED - report
Plus: You don't like the icons? Blame marketing
Red Hat to ditch MySQL for MariaDB in RHEL 7
So long, Oracle! Don't let the door hit you on the way out
Shy? Socially inadequate? Fiddling with your phone could help
App 'tells the brutal truth' about social inadequates' chatup lines
Java EE 7 melds HTML5 with enterprise apps
New release arrives with GlassFish, NetBeans support
 breaking news
'Office Facebook' firm Tibbr wants you to PAY for mobe-meetings app
Great idea. Punters won't cough for it though
 breaking news
The only Waze is Google: Ad giant tipped to gobble map app 'for $1.3bn'
Pac-Man-satnav-ish upstart in bidding war with Apple, Facebook
 breaking news
PM Cameron calls for modern, programmable computers! (We think)
IT education musings to G8 chiefs to mystify IT industry