Linked by Thom Holwerda on Mon 10th Oct 2011 20:14 UTC, submitted by twitterfire
General Development "Google has released an early version of Dart, a new programming language designed to take some of the pain out of developing applications for the Web. But while it's an evolutionary improvement on JavaScript, Dart faces a hard uphill battle for acceptance."
Thread beginning with comment 492566
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE[2]: js
by vivainio on Tue 11th Oct 2011 18:45 UTC in reply to "RE: js"
Member since:

If I understand correctly it is possible to translate Dart into Javascript. Please look at Point 3. in this file

Check out what Dart "Hello World" looks like when compiled to Javascript:

No kidding.

CoffeeSctipt, OTOH, maps to JS quite directly.

Reply Parent Score: 2

RE[3]: js
by adinas on Wed 12th Oct 2011 12:33 in reply to "RE[2]: js"
adinas Member since:

Only 17,259 lines of code. I can write that in less than a week. :-O

Reply Parent Score: 1

RE[3]: js
by benhonghu on Wed 12th Oct 2011 23:14 in reply to "RE[2]: js"
benhonghu Member since:

Well Dart really is not supposed to be translated to Javascript to begin with. Once it's got its own VM on chrome I'd expect it to be lighter and faster than JS.

Reply Parent Score: 1

RE[3]: js
by tbcpp on Thu 13th Oct 2011 12:44 in reply to "RE[2]: js"
tbcpp Member since:

I think the point is that you will then run the output of Dart through the Google Closure compiler. In that way all the extra cruft is stripped out.

ClojureScript does the same thing. A stock "unoptimzied" "Hello World" is pages and pages of standard library functions, but it is also designed to run through the Google Closure (no j in this case) compiler and have all the dead code removed. After that, you're left with a very compact optimized file.

Reply Parent Score: 1