Live data from Hacker News

Dart 1.0 Is Out

news.dartlang.org

111–120 of 162 posts

Re: Dart 1.0 Is Out

#111
post #108

Earlier quoted context omitted.

"The Dart VM is not part of any web standard, nor part of a spec that has interest from multiple vendors" Which is... exactly the same situation JavaScript was in when Netscape introduced it.

Which is exactly the same situation that Javascript is in now . The Javascript VM in Firefox has features that are not part of any web standard, nor part of a spec that has interest from multiple vendors.

What specifically do you refer to?

Re: Dart 1.0 Is Out

#112
post #68

Earlier quoted context omitted.

In C it is almost customary to use `goto` as poor man's exception handler: you do `goto cleanup` from inside of nested ifs and loops if a fatal error happens and all you need is to clean up what needs cleaning and return an error code. The problem is that `goto` is easy to abuse, and, worse, easy to abuse inadvertently , e.g. you might produce a `goto` into a loop or something like that during refactoring. JavaScript…

It's important to remember that the "goto" Dijkstra is talking about is very different from the "goto" that C programmers use. He's talk about unstructured goto: jumping from the middle of one function to another, or across scopes . "Goto" as another local flow control construct is relatively innocuous.

Yes: structured `goto`, in form of `break` and `continue` is widely used and usually not frowned upon.

Re: Dart 1.0 Is Out

#113
post #108

Earlier quoted context omitted.

"The Dart VM is not part of any web standard, nor part of a spec that has interest from multiple vendors" Which is... exactly the same situation JavaScript was in when Netscape introduced it.

Which is exactly the same situation that Javascript is in now . The Javascript VM in Firefox has features that are not part of any web standard, nor part of a spec that has interest from multiple vendors.

Yea, Firefox 2.0+ is shipped with support for generators/iterators, array comprehension, let, and destructuring assignment:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_...

Firefox 3.0+ added support for expression closures and generator expressions:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_...

Firefox 22+ supports fat arrow functions. Just open the console and try it yourself:

  >>> let z = x => x * x;
  undefined
  >>> z(5);
  25
  >>> let y = (a, b) => a * b;
  undefined
  >>> y(2, 3)
  6
None of these features are standardized yet.

Re: Dart 1.0 Is Out

#114
post #113
post #108

Earlier quoted context omitted.

Which is exactly the same situation that Javascript is in now . The Javascript VM in Firefox has features that are not part of any web standard, nor part of a spec that has interest from multiple vendors.

Yea, Firefox 2.0+ is shipped with support for generators/iterators, array comprehension, let, and destructuring assignment: https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_... Firefox 3.0+ added support for expression closures and generator expressions: https://developer.mozilla.org/en-US/docs/Web/JavaScript/New_... Firefox 22+ supports fat arrow functions. Just open the console and try it yourself: >>> l…

There is a spec and discussion in the standards bodies for all of those AFAIK. For example for let,

http://wiki.ecmascript.org/doku.php?id=harmony:let

Arrow functions are being standardized as well,

http://wiki.ecmascript.org/doku.php?id=harmony:arrow_functio...

and for generators, the standards discussion led to a change in the spec, with the new version replacing the old implementation in SpiderMonkey (v8 recently implemented the new one as well).

In general see

http://kangax.github.io/es5-compat-table/es6/

where it lists compatibility for various new JS features. As it says there, let is supported not just in Firefox but also IE11 and Chrome 30.

It is true that Firefox shipped some of these several years back. I am not sure of the best way to find out exactly what the standards-track status was at those times.

But in general: Talking about the far past is counterproductive. We can probably find stuff that wasn't done properly by any browser if we look back far enough. But in recent years, there is growing consensus on the importance of not shipping non-standard things. That is the important thing I think.

Re: Dart 1.0 Is Out

#115

Dart seems interesting, but its sponsorship by Google creates a major problem - what incentive does Microsoft, Mozilla, or Apple have to implement Dart support in their browsers? What about JavaScript devs who choose not to support Dart (especially since many still have to support even as far back as IE8 due to enterprise/companies/organizations/schools that opt for long-term support solutions for software)? I don't…

Dart also compiles to JavaScript, and was designed to do so from the very beginning.

Re: Dart 1.0 Is Out

#116
post #96
post #78

Earlier quoted context omitted.

Only until there is enough adoption for them to stop caring.

If there is that much adoption then the onus will be on Mozilla, Apple and Microsoft etc to step up and accept the will of web developers. Edit: and push for standardization.

Then get left in the dust as Chrome takes advantage of undocumented features.

We've seen that game before, played by microsoft.

Other browser vendors know this: Dart is never gonna fly outside of Google's walled garden.

Re: Dart 1.0 Is Out

#117

Dart seems interesting, but its sponsorship by Google creates a major problem - what incentive does Microsoft, Mozilla, or Apple have to implement Dart support in their browsers? What about JavaScript devs who choose not to support Dart (especially since many still have to support even as far back as IE8 due to enterprise/companies/organizations/schools that opt for long-term support solutions for software)? I don't…

Dart also compiles to JavaScript, and was designed to do so from the very beginning.

It adds complexity to the dev process, and I'm not sure of the benefits of said complexity. The devs still at the core need to understand JavaScript it seems like.

Re: Dart 1.0 Is Out

#118
post #17

This is really awesome! Congrats to the team! We have a ton of JavaScript/CoffeeScript code and I really wish we could use something like Dart. JavaScript is great for smaller projects, but once you get a ton of code it really becomes a unmanageable mess. I think tho' it would be amazing if Dart could run on the server side as well. This way you could just have one language on both the client and the server.

Dart definitely runs on the server side. We had plain Dart and two of its initial web frameworks, Start and Stream, in Round 7 of our benchmarks project [1]. It performs modestly well, and I suspect there room to optimize further.

[1] http://www.techempower.com/benchmarks/#section=data-r7&hw=i7...

Re: Dart 1.0 Is Out

#119
post #116
post #96

Earlier quoted context omitted.

If there is that much adoption then the onus will be on Mozilla, Apple and Microsoft etc to step up and accept the will of web developers. Edit: and push for standardization.

Then get left in the dust as Chrome takes advantage of undocumented features. We've seen that game before, played by microsoft. Other browser vendors know this: Dart is never gonna fly outside of Google's walled garden.

It may not have to if Google can get (or has already) enough Chrome penetration.

Re: Dart 1.0 Is Out

#120
post #89

Sad to throw away the brilliance of prototypes to go back to single-inheritance classes. uck

My thoughts exactly. Dart is representative of 90's language design and as such is a step backward. That's not to say JS doesn't have its issues, but Dart isn't the solution.
Post reply on HN