Live data from Hacker News

Dart 1.5

news.dartlang.org

41–50 of 167 posts

Re: Dart 1.5

#41

Hi! I'm on the Dart team. If you'd like, I'll try to answer any questions you have.

Hi, I have two questions:

1. One big issue with JavaScript applications is that they are single threaded. Does Dart/Web Component platform provide any solution to this?

2. Will we see another UI rendering layer other than DOM for Dart?

Re: Dart 1.5

#42

Hi! I'm on the Dart team. If you'd like, I'll try to answer any questions you have.

Has there been much internal dogfooding, such that some external-facing thing I use is really powered by JavaScript that came out of dart2js?

If I'm using GWT, should I be thinking about using Dart instead?

Re: Dart 1.5

#43
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…

> 2.- The generated JavaScript will be huge, and I mean huge, mine is like 460k per file and I'm not using polymer, when I used polymer the generated JavaScript was over one megabyte, just insane in the cloud.

If you include all of your 'standard' libraries in a JS app, it can be pretty big. I basically pull everything together for an Ember app I work on, and all-told it's ~3MB prior to minification. Minification takes it down to ~1.5MB, and Gzip-compression on the server takes it sub-1MB (can't recall the number off-hand). It's not that far off from what you might have in a JS-heavy app.

Re: Dart 1.5

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

As mentioned already, there is AngularDart, but we also have a full port of Polymer to Dart, so you can write web components in Dart.

https://www.dartlang.org/polymer-dart/

We also have Dart packages for the Polymer project's core-elements and paper-elements (Material Design, nee Quantum Paper) that were announced at I/O.

http://pub.dartlang.org/packages/paper_elements

Web components and Dart is a really powerful combination for apps.

Re: Dart 1.5

#45
post #5

Earlier quoted context omitted.

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.

Google Maps was almost certainly started before Dart was released.

Re: Dart 1.5

#46

Hi! I'm on the Dart team. If you'd like, I'll try to answer any questions you have.

How well does Dart interact with JavaScript, especially libraries that are asynchronously loaded? I know that the Dart compiler is a whole-program optimizer, and I get the impression that Dart wants to own all the code on the page.

In my line of work (web analytics), I have to use third-party JavaScript libraries in order to integrate tools onto my page, like Adobe Analytics (formerly Omniture SiteCatalyst) or IBM CoreMetrics or WebTrends. Fully instrumenting a page generally involves wiring up other JavaScript on the page with event handlers for web analytics functions (e.g. video play/pause/progress, with video name & length as parameters).

Most analytics tools are also moving towards asychronously-loaded script-injection techniques, like Adobe DTM or Ensighten. These usually include the ability to selectively load relevant libraries, like only having video tracking on video pages.

What's Dart's story for interacting with tools like that?

Re: Dart 1.5

#47

Hi! I'm on the Dart team. If you'd like, I'll try to answer any questions you have.

Dart in Chrome?

Dart on Android?

Will the Dart IDE look correctly on Windows 8 high-dpi devices? (I know that's partially an Eclipse problem)

In fact, what is the future of Dart? Is it just a complement to browser-based JavaScript?

Re: Dart 1.5

#48
post #43

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…

> 2.- The generated JavaScript will be huge, and I mean huge, mine is like 460k per file and I'm not using polymer, when I used polymer the generated JavaScript was over one megabyte, just insane in the cloud. If you include all of your 'standard' libraries in a JS app, it can be pretty big. I basically pull everything together for an Ember app I work on, and all-told it's ~3MB prior to minification. Minification tak…

Tree shaking is what you lack (yes I know Dart has tree shaking but its cross compilation has a big result)! I love the closure compiler in advanced mode for this reason.

Re: Dart 1.5

#49
post #6
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 think Blossom [1] switched to it. They had some articles on their blog about the switch [2]. [1] https://www.blossom.io/ [2] http://www.ramen.io/post/46936028144/we-are-switching-to-dar...

Thanks for the mention (CEO here).

We're super happy with Dart & really excited about polymer. Love the language & platform in general.

We'll put out some essays, code snippets & lessons learned in the next few days :)

Stay tuned.

Re: Dart 1.5

#50

Hi! I'm on the Dart team. If you'd like, I'll try to answer any questions you have.

Thanks for coming to answer questions. How this 1.5 release is related with the work in progress in the Ecma TC52 for Dart Standardization?
Post reply on HN