Live data from Hacker News

Dart 1.5

news.dartlang.org

31–40 of 167 posts

Re: Dart 1.5

#31
post #27

Earlier quoted context omitted.

I use Dart in production, it has its advatages like: 1.- It is better than JavaScript, is like using C# with a litle mix of Java. 2.- It comes with its own libraries, no more underscore.js or other patch libraries that JS needs, it is already in the toolkit. 3.- It comes with the Dart Editor, where you can debug your code easily, for scalable projects I find this to be invaluable. 4.- It will run in all your browsers…

Does it have anything like AngularJS?

You mean like https://angulardart.org/

Re: Dart 1.5

#32
post #27

Earlier quoted context omitted.

I use Dart in production, it has its advatages like: 1.- It is better than JavaScript, is like using C# with a litle mix of Java. 2.- It comes with its own libraries, no more underscore.js or other patch libraries that JS needs, it is already in the toolkit. 3.- It comes with the Dart Editor, where you can debug your code easily, for scalable projects I find this to be invaluable. 4.- It will run in all your browsers…

Does it have anything like AngularJS?

It has AngularDart, an official port of AngularJS to Dart. Seems promising, will try it if and only if Dart gets native support in Chrome.

Re: Dart 1.5

#33
post #9

Earlier quoted context omitted.

Why do you want it to be supported in Chrome? Any performance improvements seen by your users won't apply to those using any other browser.

Because then his userbase goes from being an extremely small niche(chromium is probably less than 1%) to a much larger niche(chrome is more than 30%).

Dart -- without being in Chrome -- has the same userbase as CoffeeScript, ClojureScript, or any other language that also compiles to JavaScript.

There are some real potential wins with being in Chrome, many of which are political, but there are no technical reasons for not being in Chrome to block Dart's adoption.

Re: Dart 1.5

#36
post #27

Earlier quoted context omitted.

I use Dart in production, it has its advatages like: 1.- It is better than JavaScript, is like using C# with a litle mix of Java. 2.- It comes with its own libraries, no more underscore.js or other patch libraries that JS needs, it is already in the toolkit. 3.- It comes with the Dart Editor, where you can debug your code easily, for scalable projects I find this to be invaluable. 4.- It will run in all your browsers…

Does it have anything like AngularJS?

[deleted]

Re: Dart 1.5

#37
post #12

This may be a noob question on my part, but my understanding is Dart and Rust are 2 separate efforts to come up with something to supplant javascript?

No. Rust is a systems language meant to displace c and c++. Dart is Google's me-too attempt at creating something which compiles to JavaScript. It borrows heavily from java and generates equally bloated code. OK, so maybe last sentence is a bit over the top critical, but last I checked, hello world in dart rendered in at 100kb [1] of js and dependencies. [1] http://lostechies.com/jimmybogard/2011/10/12/the-dart-hello…

The aim of Dart was really to provide a second VM in browser with a compatibility dart2js compilation mode. It was never intended to always be used with dart2js.

Dart 1.5.1 produces nowhere near that much for the same input, producing just 14KB (see [1]). Yes, arguably still too verbose, but note that much of the overhead is essentially a Dart-compatibility support library, so remains constant as the amount of Dart increases.

[1]: https://gist.github.com/gsnedders/ab101d73bc91d2782e0a

Re: Dart 1.5

#38
post #5
post #2

Is anybody using Dart for significant production code outside of Google? (Not mocking, genuinely curious to hear whats being done with it)

https://www.dartlang.org/community/who-uses-dart.html

Surprisingly few Google properties on there, I must say. Yes, many most certainly have large existing code-bases, but that it doesn't include things like the new Google Maps (which, AIUI, has relatively little in common with the old version) seems… interesting.

Re: Dart 1.5

#39

Earlier quoted context omitted.

Because then his userbase goes from being an extremely small niche(chromium is probably less than 1%) to a much larger niche(chrome is more than 30%).

Do you mean that Chromium now has a Dart VM? The last time I checked it didn't, there was a buggy thing called Dartium.

Dartium is still separate to Chromium.

Re: Dart 1.5

#40
post #12

This may be a noob question on my part, but my understanding is Dart and Rust are 2 separate efforts to come up with something to supplant javascript?

You might be confusing Rust with Typescript, which is Microsoft's attempt to "improve" javascript.

http://en.wikipedia.org/wiki/TypeScript

Post reply on HN