ie8 fix
Click Here

Googling Google

Christopher Dawson

Introducing Dart, Google's answer to JavaScript

By | October 11, 2011, 2:01pm PDT

Summary: Google has revealed Dart, a web programming language that offers developers a class-based, optionally-typed alternative to JavaScript.

Dart logo

Google has taken the lid off an early preview of Dart, a new web programming language aimed at helping developers address what the search giant sees as the shortcomings of JavaScript, with a focus on developing apps that scale from tiny to huge.

In his Google Code blog entry, Dart software engineer Lars Bak lists the following as the new language’s design goals:

  • Create a structured yet flexible language for web programming.
  • Make Dart feel familiar and natural to programmers and thus easy to learn.
  • Ensure that Dart delivers high performance on all modern web browsers and environments ranging from small handheld devices to server-side execution.

Seems pretty straightforward. And, as Bak goes on to say, Dart is facilitating scenarios from a one-man development project all the way up to bigger applications that require teams of programmers by enabling you to start coding without types and add them in later.

Dart comes with its own native virtual machine, but there’s also a compiler that translates Dart to JavaScript. Between those two options, Google says that applications written in Dart can run in any modern browser. The Dart VM isn’t yet integrated with the Google Chrome browser, but Bak indicates that they’re looking into it.

The first wave of basic libraries and Dart tools are available as open source on their own site, and Bak says that Google is soliciting feedback from developers as the platform matures.

On a final note, if you’re interested in a deeper dive into Dart, our colleagues at CNET got to talk to Bak, and there was plenty of interesting tidbits to come out of their conversation, including the roadmap to making Dart a common standard and the fact that Dart isn’t designed to make JavaScript obsolete.

Kick off your day with ZDNet's daily e-mail newsletter. It's the freshest tech news and opinion, served hot. Get it.

Matthew has written about consumer and personal technology for The New York Daily News and comic book culture for ComicMix.com.

Disclosure

Matt Weinberger

Matt Weinberger has no financial investments in the companies he covers.

Biography

Matt Weinberger

Matthew also covers software as a service (SaaS), cloud computing and recurring revenue models for the IT channel at TalkinCloud.com and MSPmentor.net. He has written about consumer and personal technology for The New York Daily News and comic book culture for ComicMix.com. Matthew is a graduate of the Stony Brook University School of Journalism.
49
Comments

Join the conversation!

Just In

RE: Introducing Dart, Google's answer to JavaScript
dcarvajal7 4th Jan
www.DartExperience.com An independent view on Google Dart
0 Votes
+ -
I wonder who they stole this off of?
William Farrell 11th Oct
just wondering.
0 Votes
+ -
The language is designed like junk. Its code reads like junk and executes like junk. It ends up junky enough now even Google is looking for better alternatives.
0 Votes
+ -
@LBiege If you look through the dart code examples, it's not much more elegant than JavaScript. Its like they copied C# in aspects of bring language integrated query expressions to JavaScript and strongly type elements to a dynamic language.
While I agree JavaScript has its flaws, Dart isnt the answer. Google took the wrong approach here. They shouldnt have gone after a particular language replacement but a rich multilingual platform which many new scripting languages can sit on top of. There will never be one language to rule them all, as each language has flaws. The best way to resolve this is use the best language for the particular job. Too bad the folks at Google are too short sided in their approach to see the big picture.
Given that Lars Bak's name is on one of the patents Oracle is suing Google over, one can only guess happy
@Scrabbler
I don't get it. Did he work for Sun before? How else would he have gotten his name on the patent?
@anono
Yes, he did work for Sun
0 Votes
+ -
All of you people who mention sun
Michael Alan Goff 12th Oct
obviously know nothing about JavaScript.

Hint: Its actually has very little to do with Java (hence the name ECMAScript).
@Michael Alan Goff
We are talking about Dart here not JavaScript...
0 Votes
+ -
@Michael Alan Goff
Considering Scrabbler is talking about a patent Oracle is suing Google for, it's reasonable to assume it was initially a Sun patent. I didn't bother doing any background research on the subject myself.
0 Votes
+ -
@anono

Nope, it was the brainchild of Brendan Eich. At the time of its creation, he was working for Netscape.
0 Votes
+ -
@William Farrell
"I wonder who they stole this off of?"
Watch what you say. MS has a patent on baseless allegations (it's probably more original than most of their other patents I've read about). You wouldn't want the lawyers that make up their R&D department knocking on your door. Given all the data they buy off facebook, they probably know where you are too.
@anono
Why are you so fearful of the question Mr. Farrell asked that you felt the need to resort to such tatics, a misdirection as it is called?

Google was accussed (and evidence is heavy in Oracle's favor) of stealing Java code for use in their Android operating system.

It is logical to look at other applications released by Google with skepticism, as as you have pointed out on numerous occasions that a "leopard does not change it's spots".
plain
0 Votes
+ -
@Mister Spock
The issue with your whole argument is that your comment "and evidence is heavy in Oracle's favor" is your opinion. Besides, I can point out lawsuits for willful patent infringements on every major tech company. MS and Sun, i4i. Apple and Nokia. So even if it turns out you are right (and that hasn't been decided it yet), it would only put Google in the same league as MS and Apple.

So based on your logic, I should spam every articles about every Apple and MS products by asking who they've stolen it from after all a "leopard does not change it's spots".
0 Votes
+ -
@Spock

So once a person steals once, everything they do is suspect? That is poor logic.
0 Votes
+ -
@William Farrell

I'm guessing nobody.
0 Votes
+ -
another nail in M$ coffin!
The Linux Geek 11th Oct
one more reason to dump .nyet and other M$ 'tools'
0 Votes
+ -
@The Linux Geek

This has nothing to do with .Net >_>
0 Votes
+ -
I don't know
statuskwo5 11th Oct
@The Linux Geek Sadly, I took a look at Dart on their website and it is not even close to being a .NET replacement.
@statuskwo5

Since JavaScript is currently in the pipeline to replace .Net and Silverlight as the world moves more on to the WWW, a much better question would be 'Is Dart close to being a good JavaScript replacement?'
@YetAnotherBob, JavaScript isn't replacing .Net and Silverlight, it is being added as a light weight option. To build full blown apps will still require C# and .Net (or WinRT) or Silverlight for medium apps. JavaScript as a language is farily flexible and versatile, but not exactly great for building apps that require actual processing.
0 Votes
+ -
Were I selling nails
Mister Spock 11th Oct
@The Linux Geek
I would have a fortune in gold pressed latinum from you for everytime you purchased one to "nail into Microsoft's coffin".

plain
0 Votes
+ -
@The Linux Geek and yet another break from the Fry-Cook station at McD's so you can place a bone head comment. Thank for the micro entertainment - please don't stop we love the smoke breaks...
0 Votes
+ -
@The Linux Geek Although personally I think that C#/.NET is pretty terrible, what exactly does that have to do with the topic at hand? I don't see any place in the article where it's suggested that Dart replace C#.
javascript was a question?

Is coffescript a treatise?
Interesting. From the examples I've seen so far, it looks very much like C#.

The question now is whether other browsers will adopt it.

If it does become popular, than it's about time. I've been avoiding web programming a lot these days because of the quirkiness I've heard about JavaScript.

I might try it if it finds its way to Firefox and IE.

If it doesn't find its way to Firefox and IE, forget it. If they don't adopt it, it's not taking off.
@CobraA1 I doubt there will be any serious movement to Dart by anyone other than Google.
0 Votes
+ -
This is what we need
gbouchard99@... 11th Oct
Another language!... Gosh Jscript is not even 100% equaly on all browsers, another scripting language will not fix things. By the way, Jscript isn't broken. Until it is suported by IE, forget it.
@gbouchard99@... @CobraA1 - if it compiles to JS, then compatibility isn't a concern. We've seen this happening in other areas, such as CSS (SASS, Compass, HAML, etc. - these compile to CSS with output options, etc.). It's a way of moving forward the way the web is built without losing legacy compatibility.
0 Votes
+ -
XKCD sums it up
alan_r_cam 11th Oct
Currently there are N web programming languages.
Google are merely suggesting (N+1)...

http://xkcd.com/927/
It'd be great if this made coding much easier - Javascript isn't that bad but it certainly has its' quirks! Hopefully this new tech will deal with security issues too.
@Imrhien

"Javascript isn't that bad"

Women who are abused by their husbands say "he isn't that bad." I hate to break it to you, but you're an abused programmer. Javascript is a horrific piece of ****. It makes Linux Geek look good.
@jackbond
'tis a poor artisan who blames his tools. .NET may be easier for the novice programmer, but serious business apps tend to use Java (even more so now that Oracle owns Sun).

Of course that's just my opinion, I could be wrong.
@914four

And serious programmers know the difference between JavaScript and Java X(.

They are different languages.
0 Votes
+ -
@jackbond Javascript is fine. It's just that most programmers think anything that is not procedural or OO is junk, and Javascript is neither. All Dart really does is convert Javascript to a more procedural/OO style language, something a lot of people have been pushing for for years and failing at.
I'm not looking forward to this. I use Google Maps API, and their libraries. Now I'm betting to continue using it, at some point I'll have to learn Dart. At least javascript is a marketable skill, and is pervasive. Do we really need a vendor-specific language?
@rberman
If you are a programmer with only slightly above average skills, learning a new language like this should not take more than a couple of days. I looked at the specs and the syntax is very close to Java (or Java Script) so learning this is not a problem. Fully object oriented, can be embedded in HTML, contains powerful libraries - just what the doctor ordered...
How close does it compare with Flex Actionscript?
0 Votes
+ -
No multiple inheritance?
Federico Churca Torrusio 11th Oct
Nooooooo!
(flamewar on pros vs cons of multiple inheritance ensues:P )
0 Votes
+ -
I can only say it's about time someone wipes JavaScript clean out of it's misery.

My only question is why is it that it's always Google who create good AND open things these days?
@Jeach what have they created that is both good and open?
0 Votes
+ -
A political stunt
Tim Acheson 12th Oct
Google has well-and-truly lost its way.
I don't know any developers that are even considering giving it a try.
If it's as good as the car I owned then this will be a winner!
Oh no, just when I thought web programming was starting to be standardized across browsers, another language comes along sad
@wholeness, exactly. We were finally getting html5, css 3, and javascript down to a pretty good cross browser experience. Add Dart and it'll compile to a Chrome biased javascript and create more incompatibility.
0 Votes
+ -
@grayknight Nah, this ain't Microsoft.
0 Votes
+ -
The Sun also sets
Robert Hahn 12th Oct
Google needs to stop hiring people from Sun, because it is making them turn into Sun. Sun spent entirely too much time creating "new industry standards." Some of them, like Java, did reasonably well. But most of them (like NeWS... Sun's attempt to derail X Windows) fell on their butts. It seemed like every time Sun invented some new proprietary technology, they would run around screaming that it was the next industry standard. In the course of doing this they managed to create a lot of enemies, which did not help them in growing their business.
Ha Ha Ha

still writing code? My goodness we've got COMPUTERS. How about creating a 'drag and drop' wysiwyg language, that compiles the code in the background??
Too difficult? Don't make me laugh ...
www.DartExperience.com An independent view on Google Dart

Join the conversation!

Formatting +
BB Codes - Note: HTML is not supported in forums
  • [b] Bold [/b]
  • [i] Italic [/i]
  • [u] Underline [/u]
  • [s] Strikethrough [/s]
  • [q] "Quote" [/q]
  • [ol][*] 1. Ordered List [/ol]
  • [ul][*] · Unordered List [/ul]
  • [pre] Preformat [/pre]
  • [quote] "Blockquote" [/quote]
ie8 fix

The best of ZDNet, delivered

ZDNet Newsletters

Get the best of ZDNet delivered straight to your inbox

Facebook Activity

White Papers, Webcasts, & Resources
ie8 fix
ie8 fix