by cletus · 13y ago · 0 comments
Whoever thinks this is part of some grand plan to force Dart down our throats clearly has no clue whatsoever about how Google works.
Standard disclaimer: I'm a Google engineer and these opinions are my own and don't reflect those of my employer.
Google is a really large company with >10,000 engineers. A lot of what we do starts as grassroots efforts. Honestly, getting 10,000 engineers to act in a coordinated fashion is probably like trying to herd 10,000 cats.
AngularJS started as a side project that became Google-sponsored and it grew organically. Being Google-sponsored simply means some team somewhere has dedicated some engineers to working on it. That's it.
Likewise a group of engineers separately started Dart due to dissatisfaction with JavaScript being the lingua franca of the Web. The idea was that Dart can be implemented as a VM within a browser and get faster performance that way. Likewise, it should compile to JavaScript for browsers that don't support Dart in the browser (which is all of them except Chrome). Also, Dart shares a lot of the philosophies of GWT in sharing code between client and server.
Now my personal view is that I honestly don't see the point of Dart. I mean no disrespect to the team or their efforts but I don't agree with the premise or the design philosophy of Dart.
Optional typing seems to me to combine the worst of both worlds. If typing is useful (as the static typers will argue) then be statically typed. If it's not be dynamically typed. Dart's type system is basically just the Closure JsDoc system used by the Closure compiler. That's it. To me, there's no real innovation there.
Dart is really just another Coffeescript and I don't see the point of Coffeescript either.
One of the benefits of development in JavaScript is you can simply refresh your browser and it just works. I'm a huge fan of this fast iteration cycle in development. It's the same reason I'm a fan of Python, Ruby and even PHP.
Additionally, as soon as you add a translation step from something to JavaScript, you introduce potential bugs in that translation (eg I've seen bugs with the Closure compiler incorrectly removed code it thought was dead and that was JS to JS let alone the issues with, say, GWT's Java to JS). Even if there aren't bugs, tracing issues back to the source becomes more difficult.
Rob Pike through Go seems to believe this too (not that I claim to speak for him) because he's repeatedly mentioned that the simple syntax of Go and fast compilation is a deliberate feature, a philosophy I agree with 100%. It's also one reason I detest C++: slow compilation kills productivity (IMHO).
So AngularDart is nothing more than another group of engineers (perhaps there's a crossover with the Dart folks) wants a modern Web framework for client-side Dart so they created one.
The idea that this is part of some grand strategy is quite frankly ludicrous.
Google puts their effort behind a lot of experimental projects. Some work out, many don't. Will Dart succeed? I don't presume to know. But while I don't agree with the premise/philosophy it makes me happy that the company I work for is still prepared to experiment with such efforts and devote resources to them.
If you work at Google you'll often see three teams working on roughly the same thing, typically without knowing about the existence of the others. They may consolidate or compete (if they have incompatible philosophies that the teams feel strongly about) or something in between.
This happens because so many efforts just start out as a single engineer or a small group of engineers just trying something out or they want to solve a problem they see (and in an organization this large it's rare you're the only one who sees a particular problem and wants to do something about it).
So, please, can we discuss this on its merits rather than the new norm of seeing vast conspiracies or simply seeing things as some collusion with the NSA. It's really tiresome.
EDIT: added a paragraph about the issues of bugs and translating something to javaScript.
Much like android dart is controlled by a small group of engineers in Google. Where's the source code to the current HEAD of dart? I'm pretty sure it's not on GitHub. What features are planned for the next release? I'm fairly sure dart-discuss doesn't exist publicly.
Dark doesn't belong to the web developer community. No conspiracy theory needed, dart is built to suit googles purposes, which is fine. The only thing is expecting people to use it and think its a successor to JS, which, for all the flaws of JS, it is not.
Google know what a community developed successor to JS looks like. Optional strong typing in even MS typescript is more popular than dart. Get together with the community or dart will be he next GWT.
Most of the work is done completely in the open. See some of the language discussion writeups: https://groups.google.com/a/dartlang.org/forum/#!searchin/mi...
We went public two years ago when the language was still in its infancy so that developers could provide their feedback.
Edit: contrary to your claim we did get feedback and acted on it. Some changes were rejected (like putting the types behind the variables), but it's normal that not every request can be accepted.
If you have suggestions on how we can make Dart even more open-source I would be genuinely interested in hearing them.
The most popular feedback from HN https://news.ycombinator.com/item?id=3092558 and Twitter was was less verbose syntax. AFAICT dart remains as chatty as the day it was announced.
Syntax is almost like a religion. You can't make everyone happy. So yes: although we changed the syntax in some areas, we kept the C-like syntax.
Fwiw you can't satisfy every feedback. There are always people that want to make Dart look and behave like their favorite language (be it Java, C#, JS, CS, Python or Ruby), then there are others that just want to boycott Dart, and finally there are simply conflicting views.
While we listened to every feedback we got, we found that feedback from people that had actually tried and used Dart to be the most helpful. They weren't always the loudest, but helped to make Dart a better language.
This is simply not true! I've been following the language for a long time and they have made a lot of changes, they have listened to feedback. Just search 'BREAKING CHANGE' on the mailing lists. During the first year there were tons of changes to the language and libraries. Now they trying to stabilize the APIs
The designers have also made it very clear that the types next to a variable are basically useless at runtime (unless you turn on strict mode, which kills performance). Types are for tooling only, which seems silly.
But this is HN, it is easier to rant about how evil Dart Wader will destroy the beautiful Javascriptalderaan.
All but Dartium. Even Chrome doesn't support it natively yet.
> Dart's type system is basically just the Closure JsDoc system used by the Closure compiler.
Yes, it's basically something like that. The difference is that it's terser and far more convenient to use. Since it's baked into the language, it's standardized and properly supported by all tools.
Another difference is that you immediately benefit from putting those annotations at the boundaries. You get the checks and call-tips right off the bat.
> Dart is really just another Coffeescript
No, Dart and TypeScript offer proper tooling. CS doesn't.
Dart also offers much nicer semantics.
> One of the benefits of development in JavaScript is you can simply refresh your browser and it just works.
Same with Dart. You just use Dartium during development.
It did not happen BECAUSE of Microsoft (Adobe pushed FOR it, Mozilla got cold feet).
Not only that, implement it right away in the JS engines..
Javascript must move faster, because even that people are being forced to like it(because they dont have anywhere to hide); everything has limits.. everybody knows that we cant go on with the javascript the way it is right know and pretends everything its just fine and its all roses and unicorns..
Im trying to create something new here that will need an embedded VM, and deciding between JS, Lua or Dart is just killing me.. if that was an option, and the next javascript was just something like typescript.. this would be a easy decision
To the much more important point, the development of important features stalled for AngularJS as the team was busy working on Dart version. This is the main problem.
Not true. Google grew the team. Take a look at the activity on Github. The velocity has been consistently high throughout the development of the Dart fork: https://github.com/angular/angular.js/pulse
If there was some important feature you wanted, you are always able to submit a PR yourself. That's how open source works.
It's being designed as a javascript replacement. Google's overbearing intention is obvious.
You're right: Dart is, functionally, another CoffeeScript, but that's despite Google's plan--ok, 'experiment'--not by design.
>So, please, can we discuss this on its merits
Your criticisms are shared. That's what causes the friction: resentment that a pretty flawed language is being pushed. Dart does take time away from other more worthwhile projects.
None of the cynicism is over wishing that Google would stop experimenting with technology, it's over Google's waste of time.
Edit: Actually, apparently there might be a formalized 'grand plan,' reading nateabele.
Open? Dart has been open-sourced for 2 years now - only having its proof-of-concept done in-house before the announcement.
Cheerful? Not sure how one language that compiles to JS is more "cheerful" than an other, but we're really a cheerful bunch in person. I'm sure you could have a beer with us if you'd like :)
As to the your and the OP's point about Dart being another CoffeeScript, this is really far from reality. CoffeeScript is just syntax changes, and that's not sufficient for fixing JavaScript major problems - which come form its semantics, not it's syntax.
Dart and CoffeeScript are actually quite far apart on the spectrum of compile-to-JS languages: Dart tries to keep a similar syntax and fix the semantics, CoffeeScript tries to keep the semantics and "fix" the syntax (I personally find CoffeeScript very hard to read). Claiming that Dart is another CoffeeScript, to me, shows a real lack of knowledge about one or both of the languages.
So, people are naturally suspicious. CoffeeScript doesn't have this vibe, to me at least. It's made by a team of people across companies (although I think it is sponsored partially by The New York Times Company?) and there is a lot of community which lives outside a specific company's ecosystem.
That said, it could just be my own personal bias, having used coffee script extensively and not used Dart much at all.
[1] http://arstechnica.com/gadgets/2013/11/google-just-pulled-a-...
Yet, CoffeeScript is not just a different syntax - for one, it changes declarations and scoping rules. That's a pretty big semantic change (comparison operators etc. follow).
You might not be involved enough in the politics of programmer mindshare, but plainly: Dart is attempting a takeover.
Takeovers can be smiles and open source, but they're still takeovers, and this one is doomed to fail.
If you don't see that, you're focused on the work in front of you and (again) not on the politics of technology. Which is fine. I'm sure it would be lovely to have a beer with you, and talk languages and compiler design well into the next day's hangover.
But if you're going to get involved with a conversation on politics, you should think about Google's goals with Dart and whether they're reasonable or beneficial.
General sentiment here? They're neither.
I joined the Dart team because I thought is was a worthy and important project that could beneficially impact a very large number of people. I _do_ think about these things, they're quite important to me. The goals of more sane semantics, more optimizable structure, and better toolability and tools are to me, and a lot of other engineers, incredibly reasonable and beneficial. That's actually the entire point of the project is to be more reasonable and beneficial than the alternatives :)
If fact, I think I'll use that as my informal Dart tagline: "Dart, reasonable and beneficial!"
More seriously, Dart is created by people who think that JS is broken and we need an alternative. I hope you're not claiming that that's really an unreasonable opinion, and that the only reasonable point of view is that JavaScript should always be the only language used to develop web applications. I'm sure reasonable people can disagree about the degree of brokenness of JavaScript, and about different solutions to the problems.
Yes, it is. But I'm not sure why you're viewing that as something negative.
It addresses the kind of problems everyone encounters when they try to write bigger applications in JavaScript.
GWT and the Closure Compiler also did this kind of thing. Dart does the same, but in a far more elegant manner. It's terser and the workflow is far more streamlined.
Having proper tooling is really great. Also, thanks to the type annotations you'll need fewer tests, you get better documentation, and it also acts as a safety net for refactoring/maintenance work.
It will enable more people (myself included) to write larger high-quality web applications.
Please.
> That's what causes the friction: resentment that a pretty flawed language is being pushed.
"flawed language" you mean [] + [] doesn't equal '' ?
Oh look it throws a "TypeError: Object #<JSArray> has no method '$add'", yes please bring more such flawed languages around Google, I love them!