Live data from Hacker News

Dart 1.5

news.dartlang.org

21–30 of 167 posts

Re: Dart 1.5

#21
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-...

Re: Dart 1.5

#22
I tried dart just last week with dart IDE (1.4.3). It was good, much better than javascript.

My observations: Installing dependencies was easy. Types help a lot. The IDE is good but sometimes can not show the correct type or just shows dynamic, the autocomplete is usable if you write `this.` . Usable for a modify-refresh cycle but the attached chromium seems to be a little buggy (on xubuntu the window is not correctly drawn). In-browser exceptions are a little cryptic to read. Very similar syntax to java/c#. Good stdlib (I tried async/browser/math). Little cumbersome calling JS but it works. Bult-in factory pattern, setters/getters.

I think they could let users create multiline functions with the => operator (currently only one line). :)

I tried to pub my code, but it did not work for some reasons. I haven't tried since then so I don't know what kind of js it generates.

Re: Dart 1.5

#23
post #2

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

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…

Given the size of the generated JS file, do you find it is an issue?

Re: Dart 1.5

#24

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…

Given the size of the generated JS file, do you find it is an issue?

When you host your Project in the cloud and you pay for the bandwidth quota then you learn the value of small generated JavaScript, but if it is a Project where bandwidth does not generate a cost like an intranet or VPN, then it doesn't really matter.

Re: Dart 1.5

#25
post #3

I was at last year's Google IO and a lot of people were asking the Dart representatives about whether Dart was going to be supported in Chrome (not just Chromium). We were told the team was holding off because of performance considerations. It has been ONE WHOLE YEAR since then.

I'd much rather they keep holding off. We've had more than enough of big companies fragmenting the ecosystem by making their own languages, file formats etc. because they can. As things currently stand, Dart compiles to JavaScript, which is exactly the right way to do it; that way it's a tool that's available if you want to use it, but it doesn't screw up interoperability.

Re: Dart 1.5

#26
post #9
post #3

I was at last year's Google IO and a lot of people were asking the Dart representatives about whether Dart was going to be supported in Chrome (not just Chromium). We were told the team was holding off because of performance considerations. It has been ONE WHOLE YEAR since then.

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.

I will say that you won't need to rely on JavaScript, .dart files size are a lot smaller and the code starts and execute faster.

Re: Dart 1.5

#27
post #2

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

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?

Re: Dart 1.5

#28
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%).

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.

Re: Dart 1.5

#29
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?

Yes, it has AngulartDart.

Re: Dart 1.5

#30
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]
Post reply on HN