News for hackers. Stuff that matters.
Re:Dart vs Java — the DeltaBlue Benchmark by ahoge on Thursday May 23, 2013 @06:37AM (#5756108)
> That said Dart isn't that JS2.

To me, it is. Dart fixed everything which was wrong with JavaScript. There is proper lexical scoping, a lexically scoped `this`, no type coercion, build-in classes/inheritance, built-in dependency handling, built-in annotations/doc-comments, and good tooling is also possible.

It really does scale and it's very nice to work with. Plus, there are a bunch of nice features like lambdas, mixins, and named arguments.

> Javascript as web bytecode just doesn't sound right to me.

Yea, it's kinda icky, but there doesn't really seem to be a way around it. Fortunately, dart2js' output is reasonable in terms of size and performance. Unfortunately, it doesn't work in IE8.

Re:Dart vs Java — the DeltaBlue Benchmark by Ygg2 on Thursday May 23, 2013 @10:01AM (#5756823)
To each his own I guess. I guess for me Dart doesn't capture a lot of JavaScripts good sides I guess (the homoiconity of JSON and JS). Also Google being the main sponsor just makes me slightly wary of it, thought its probably just my own paranoia.
Re:Dart vs Java — the DeltaBlue Benchmark by ahoge on Thursday May 23, 2013 @12:44PM (#5757831)
> the homoiconi[ci]ty of JSON and JS

There is a package for making interacting with JSON more seamless and JavaScript-like:

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

> Google being the main sponsor just makes me slightly wary of it

In that regard, I clearly prefer Google over Oracle or Microsoft. I was also happy with Sun back in the days.