News for hackers. Stuff that matters.
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by pnt on Friday March 22, 2013 @02:48PM (#5424811)
I feel like Dart's emphasis on a fast but chrome-only vm has hindered it's adoption. I understand their goal, unlike most compile-to-js languages, was a language more amenable to fast implementation. However, I think the initial community reaction would have been more positive if Dart was positioned first as a language that compiled to js, with the added benefit that it runs significantly faster on Chrome.
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by dragonwriter on Friday March 22, 2013 @03:02PM (#5424903)
> I feel like Dart's emphasis on a fast but chrome-only vm has hindered it's adoption.

Dart's VM isn't Chrome-only, its open source, and available both standalone and bundled into Chromium.

> However, I think the initial community reaction would have been more positive if Dart was positioned first as a language that compiled to js, with the added benefit that it runs significantly faster on Chrome.

Reaction might have been more positive in the short run if it was sold as a on-top-of-JS language rather than part of a long-term plan to build something to replace (or complement) JS as a language for which browsers would have a a built-in, language-specific VM. However, I think that even if initial reaction might have been better with such a response, Google clearly did the right thing by being up front about their vision.

Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by pnt on Friday March 22, 2013 @03:15PM (#5424995)
> Dart's VM isn't Chrome-only

I meant that dart is chrome-only in practice. I don't know of any other browser vendor that bundles the dart vm, including the few browsers based on chromium like rockmelt or 360.

> However, I think that even if initial reaction might have been better with such a response, Google clearly did the right thing by being up front about their vision.

I can appreciate Google's directness regarding Dart's intention. However, from a web developer's perspective, Dart's multiple backends is very unappealing. I hesitate to adopt even a language like clojurescript or coffeescript because of debugging barriers and potential bugs in the language's crevices (though these problems are diminishing with things like source map support).

Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by dragonwriter on Friday March 22, 2013 @04:26PM (#5425455)
> I meant that dart is chrome-only in practice. I don't know of any other browser vendor that bundles the dart vm, including the few browsers based on chromium like rockmelt or 360.

I didn't think even Chrome bundles Dart, yet, either; for native Dart (as opposed to compiled-to-JS Dart), Google distributes (both separately and with the Dart SDK) a special Chromium-based browser with the Dart VM integrated called "Dartium".

For all practical short-term purposes, Dart is another compiled-to-JavaScript language, and is no more plagued by multiple backends than JavaScript (which, after all, runs on multiple different engines from different vendors) is.

And I don't see how having an optimized VM in development makes it less attractive than compiled-to-JS languages that don't have that.

> However, from a web developer's perspective, Dart's multiple backends is very unappealing. I hesitate to adopt even a language like clojurescript or coffeescript because of debugging barriers and potential bugs in the language's crevices (though these problems are diminishing with things like source map support).

I would think the fact that Dart is -- rather overtly -- immature and rapidly changing would be a much bigger barrier to adoption by relatively conservative, need-something-that-works-now, web developers. I don't see how having an experimental optimized VM available-but-not-widely-available-to-end-users factors in to making it less attractive to web developers.

Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by stesch on Friday March 22, 2013 @05:05PM (#5425756)
Dart has special data types for the VM. They clearly want to target the VM for fast applications that aren't very usable compiled to JavaScript.
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by dragonwriter on Friday March 22, 2013 @05:52PM (#5426040)
> Dart has special data types for the VM.

It has optional types, like many compiled-to-JS languages (as lack of declared types is one of the motivations for such languages.) I don't know what you mean by "special data types for the VM". Can you provide some examples?

> They clearly want to target the VM for fast applications that aren't very usable compiled to JavaScript.

Obviously, they think that the VM will provide some benefit over compiling to JS or they wouldn't make the effort of building the VM. But, unless you can give a reason to believe that they are crippling the performance of Dart-to-JS code to push the VM, I can't see why that would be a problem.

Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by stesch on Friday March 22, 2013 @08:37PM (#5426727)
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by dragonwriter on Friday March 22, 2013 @09:39PM (#5426890)
Okay, so you are talking about exposing integer vs. double distinction (because CPUs are better at int math) and the SIMD support in the Dart VM.

All of those are using explicit typing to do better at mapping from what the developer does to what the native hardware supports than is possible without explicit types in JS, sure. I don't see why this is a bad thing -- its not sacrificing performance in Dart-to-JS implementations that would be attainable, its just taking advantage of not being stuck with JavaScript's lack of types to further optimize the performance of Dart-on-its-own-VM.

Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by stesch on Saturday March 23, 2013 @10:25AM (#5428225)
The Dart VM being faster than JavaScript can be a problem in itself. But with SIMD you'll get a lot of "Only usable in Dart VM" for a lot of apps (mainly games) written in Dart, because then the necessary speed for many game operations gets possible.

I don't want back to the "Best viewed in IE 5.5 and 1024x768 Pixels" times.

Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by dragonwriter on Sunday March 24, 2013 @07:16PM (#5434286)
> The Dart VM being faster than JavaScript can be a problem in itself. But with SIMD you'll get a lot of "Only usable in Dart VM" for a lot of apps (mainly games) written in Dart, because then the necessary speed for many game operations gets possible.

Yes, building performance improvements into the Dart VM that go beyond something that is found in most JS engines means that there is the possibility that (given equivalent hardware) some things that peform acceptably on the Dart VM won't perform acceptably when relying on Dart-2-JS.

Which would be a problem if there was a barrier to other browser vendors incorporating the Dart VM, or adapting it to platforms that Google doesn't support. But there's not, and the whole point of Dart -- and why there is a Dart VM -- is because Dart is an effort to provide an alternative to JavaScript, with dart2js as a mechanism to make development in Dart useful even before Dart VM adoption takes off.

But dart2js isn't the long-term goal, its a tool to get passed the problem that without runtime deployment, no one will develop, and without development, no one will deploy the runtime.

> I don't want back to the "Best viewed in IE 5.5 and 1024x768 Pixels" times.

And I don't want the web to stagnate because we can't do anything that might work better than what exist now.

Good thing about new efforts being open is that they avoid both problems.

Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by spankalee on Saturday March 23, 2013 @02:26PM (#5429120)
You're complaining about more speed? Why don't we see the same complaints with asm.js?

If SIMD on Dart works out well, you can bet JS will get SIMD support too, and then dart2js will use that. It's this type of competition that pushes things forward.

Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by michaelwww on Saturday March 23, 2013 @08:30PM (#5430478)
Games often require special platforms. They're not web pages in the strict sense.
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by stesch on Friday March 22, 2013 @08:40PM (#5426739)
Interesting. I need Google Chrome to view these slides. (Doesn't work in Firefox 20 Beta.)
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by michaelwww on Friday March 22, 2013 @07:51PM (#5426539)
I doubt they are expecting Apple and Microsoft to incorporate the Dart VM, so they are putting a lot of effort into the JavaScript output. The Dart VM really comes into play in the near future for Chrome Packaged Apps. They interesting thing is loading snap shots of the virtual machine state quickly. http://www.infoq.com/articles/google-dart
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by stesch on Friday March 22, 2013 @08:38PM (#5426730)
Date of the article: Oct 24, 2011
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by michaelwww on Friday March 22, 2013 @09:40PM (#5426892)
Thanks for catching that. Snapshots are still being worked on. Here's Feb 2013 info. http://www.dartlang.org/articles/snapshots/
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by ttrreeww on Friday March 22, 2013 @03:37PM (#5425129)
Dart is Google's Silverlight.
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by sethladd on Sunday March 31, 2013 @05:48PM (#5470313)
A couple of clarifications:

* Dart compiles to JavaScript, Silverlight did not. * Dart is actively being developed, Silverlight is not. * Dart does not require any plugins, Silverlight did. * Dart natively supports the DOM, Silverlight did not.

[disclaimer: I work on the Dart team]

Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by michaelwww on Saturday March 23, 2013 @10:36AM (#5428279)
ActionScript/Flash and .NET/SilverLight require a plugin, with Dart the "plugin" is optional.
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by ttrreeww on Monday March 25, 2013 @05:12PM (#5439717)
It's called the Dart Runtime which is not included in non Google browsers.
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by dragonwriter on Monday March 25, 2013 @05:24PM (#5439794)
Except: 1. The Dart VM isn't included in Google's generally-released browsers, either (it's included in Dartium, the special version of Chromium bundled with the Dart SDK). 2. The Dart VM isn't a plug-in. 3. As Dart compiles to JS, you don't need the Dart VM to run code developed with Dart, you just need a browser that supports JS.
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by mtgx on Friday March 22, 2013 @04:01PM (#5425285)
Anything really new would be like that. WebGL was also Firefox-only for a while, until Chrome decided to adopt it. To make them a standard across browsers you either need to make them very popular, and make the others have no choice but adopting it, or collaborating. But the last one seems to happen less and less lately, with all companies.
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by michaelwww on Friday March 22, 2013 @08:14PM (#5426648)
I disagree. There's more cooperation because things are getting more complicated and it's necessary.

http://www.webplatform.org/stewards/

Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by michaelwww on Friday March 22, 2013 @02:55PM (#5424850)
I agree. They stumbled initially because the "hello world" JavaScript output was something huge (17,000 LOC if I remember correctly.) But I think they are recovering nicely and people will notice.
Re:Anders Hejlsberg and Lars Bak: TypeScript, JavaScript, an... by tyleregeto on Friday March 22, 2013 @03:59PM (#5425269)
That was unfortunate, mostly because a single compiler flag brought the code base way down, smaller the JQuery. If I recall correctly, that mistake was from a blogger, not Google, but it caught the bad publicity winds. Somebody was more eager to tear it apart than learn the tools.