Live data from Hacker News

Angular Announces AngularDart

news.dartlang.org

51–60 of 177 posts

Re: Angular Announces AngularDart

#52

When I look at Dart vs JS (JavaScript), I see a lot of parallels to Java/C#. The Java language stagnated for a long time under Sun. The language was usable only through the heroic efforts of tool vendors (Eclipse, IntelliJ, etc.) Even with these tools, Java is just barely good enough. C# is technically a superior language to Java. Combined with an excellent IDE (VS), the .NET platform is probably technically superior…

If Google is able to get browsers provide the UX capability same as or even better than Androd/iOS does, things will be different. I'm a layman of web development. But I think this is something worth noticing. The current UX capability in browsers is definitely not a strong point compared with native apps. Google's strategy seems to take territories of internet through browsers. In the mid/long term, making the gap between web app and native app smaller or close to zero in different aspects(such as UX, product development) will probably be one of its high level focuses.

Re: Angular Announces AngularDart

#53

Sigh ... I knew this was going to happen. :-/ This is part of Google's strategy to push Dart in the browser. Soon they're going to start developing Angular primarily in Dart, and 'back-porting' features to JavaScript. Sadly, this is the nature of so-called "Open Source" at Google.

I work at Google and on Dart, and I have worked with the Angular team on their Dart port. This is not part of any strategy to push Dart. This port exists because teams at Google want to use both Angular and Dart, and the Angular team decided to make it happen.

Re: Angular Announces AngularDart

#54

Earlier quoted context omitted.

Just because it can't be forced down our throat doesn't mean it's not uncomfortable that Google's trying.

Like I said, "You have a right to be revolted by it." But, I think it would probably be a better use of your time to be uncomfortable over things like hunger and disease than a company trying to promote a new programming language to further its self interest - that's what companies do.

You have a right to be revolted by peoples' revulsion, which you are presently executing quite well.

I don't have a problem with that, I just think you're loudly complaining about how loud everyone is. ;)

Re: Angular Announces AngularDart

#55
post #9

I'm using AngularJS. But this Dart news is a dark cloud. I will never use Dart, or anything that locks me into Google's walled garden. I view Dart as a major negative. Hello Ember.

What walled garden, could you elaborate?

Dart is an open-source project and compiles to JS. Not unlike CoffeeScript or TypeScript. The cool thing that makes me excited about dart2js is that Dart is a much better language than JS itself (not a high bar, but still) and that dart2js as of late is producing more efficient code than hand-coded JS because they leverage Dart's more ubiquitous typing as well as other tricks.

Re: Angular Announces AngularDart

#56
post #38

Earlier quoted context omitted.

It doesn't matter - Dart can compile to JavaScript. When it might matter is if there are apps (like games) that run faster in a Dart VM than in javascript. Anyway though, even Chrome doesn't include a Dart VM yet by default, so no big deal yet.

To piles of JavaScript, you mean. As well as, forcing developers to infer the way Dart compiler generates JavaScript code, in the absence of source maps. I rather use JavaScript, thank you.

dart2js generates source maps

Re: Angular Announces AngularDart

#57
post #29
post #22

Earlier quoted context omitted.

> Secondly, Google is a big company and some teams within it wanted to use Dart, whereas otheres want to use vanila javascript and Angular, so now you have both. Specifically who?

A number of the members of the Chrome team. If you watch the announcement from when Blink hit, they did some developer talks. When asked about the integration of Dart into Chrome, it was fairly obvious that some of the guys didn't want Dart in there [0]. But at the same time, a high-level direction is being set to try and get Dart added. Google employs a LOT of developers. A lot of those developers feel the same way…

Google can have Dart if Microsoft can have VBScript back.

j/k. I doubt even Microsoft would want to bring that abomination back.

Or would they??

Re: Angular Announces AngularDart

#58

I like both Angular and Dart, so that's good news. One thing I noticed though: transpiling a .dart file with just the import statement for AngularDart (import 'package:angular/angular.dart') generates a non-minified 5MB .js file with almost 150 kloc. Every code change will create a new version of it, invalidating previously cached versions. :/

There's still a lot of work to be done on code size when using reflection, and teams at Google are definitely interested in incremental updates to cached apps, so that will be worked on too. It's still very early in Dart's lifetime.

Re: Angular Announces AngularDart

#59

I like both Angular and Dart, so that's good news. One thing I noticed though: transpiling a .dart file with just the import statement for AngularDart (import 'package:angular/angular.dart') generates a non-minified 5MB .js file with almost 150 kloc. Every code change will create a new version of it, invalidating previously cached versions. :/

Are you sure you are using the latest version? Angular was an early user of mirrors (reflection) which (more or less) disabled the tree-shaking of dart2js. This was recently improved. Tracking the size of AngularDart: https://github.com/jbdeboer/angular-dart-js-size

Maybe I'm missing something, but yes, I think so. Dart version 0.8.10.3_r29803.

pubspec.yaml:

name: test1 dependencies: browser: any angular: git: https://github.com/angular/angular.dart.git

test1.dart:

import 'package:angular/angular.dart'; main() => ngBootstrap();

dart2js launch => builds test1.dart.js, about 5MB, 142,749 loc.

Re: Angular Announces AngularDart

#60
post #9

I'm using AngularJS. But this Dart news is a dark cloud. I will never use Dart, or anything that locks me into Google's walled garden. I view Dart as a major negative. Hello Ember.

This is the nature of using any third party software or API. If you're not going to write it yourself, then you have to be willing to play by someone else's rules. Words I learned to live by years ago.

Coincidentally, this is how I feel about AngularJS. By using it, you're developing apps the way Google wants you (or it's own developers) to. It could be good, it could be bad. it depends on the app, but you still have to do it their way.

You don't want to be locked into Google's walled garden, but, by using Angular, you're already inside...

Post reply on HN