News for hackers. Stuff that matters.
Re:A new breed of Chrome Apps by mythz on Thursday September 05, 2013 @04:12PM (#6336622)
I like Dart, it's the most productive language/environment I've ever used and if it's unable to gain any traction on its core objective building of client-side complex web apps, it will still have a compelling server-side story ala (node.js) after v1.0 is released and the ecosystem catches up with it.
Re:A new breed of Chrome Apps by pjmlp on Thursday September 05, 2013 @04:28PM (#6336713)
Server side is already too crowded, there is nothing that Dart brings to the table.

The only way Dart will have any future is if Google makes a requirement to use it somewhere.

Re:A new breed of Chrome Apps by mythz on Thursday September 05, 2013 @04:49PM (#6336859)
Having developed several server-side projects in Dart, the language/environment brings a hell of a lot to the table optimized for reducing complexity and improving productivity which:

  - Provides a familiar language with clean semantics and low ceremony
  - Provides the fastest dev iteration times (there's no compile step, 
      just edit + run in Dart VM/Dartium)
  - Provides ~10x faster start-up times than JS with snapshots (Dart VM)
  - Provides faster run-time performance, that's predictable and can take 
     advantage of real integers and SIMD instructions (VM Only) 
  - Provides a unified object model so all classes from all libraries are interoperable
  - Providing a rich, well-defined, consistent API, real collections, removing JS WATs, 
      smoothing over browser quirks
  - Provides a unified and composable IO model: Futures and Streams (repeating events)
  - Provides a new powerful way to develop client apps with Web UI (Polymer/WebComponents) 
      offering unprecedented levels of encapsulation and reusability 
  - Provides optimal dev and deployment options, you never have to worry about choosing 
      the smallest libs as tree-shaking ensures only code used is compiled and minified 
  - Providing "full-stack" dev environment, e.g. same language on client and server
The one thing it's notably lacking is a large ecosystem which I'm hoping will improve after v1.0's release.
Re:A new breed of Chrome Apps by pjmlp on Thursday September 05, 2013 @05:18PM (#6337083)
Most of your points were already covered by Smaltalk, and we all know where it is nowadays.

Sorry, but I lost count of the languages I have used since 1986 and just don't believe in Dart ever taking off unless Google makes it so.

Re:A new breed of Chrome Apps by coldtea on Thursday September 05, 2013 @09:56PM (#6338264)
>Most of your points were already covered by Smaltalk, and we all know where it is nowadays.

And less points were covered by Java, and still it got to the top of the language pile.

Re:A new breed of Chrome Apps by pjmlp on Friday September 06, 2013 @03:14AM (#6339110)
Sun did promote Java as much as they could, Google is not doing anything like that.
Re:A new breed of Chrome Apps by mythz on Thursday September 05, 2013 @07:43PM (#6337886)
Smalltalk? meets very few of those points, whilst it has inspired a number of languages it's not a real-world choice itself for developing complex web apps. Dart's closest language is JavaScript (which it also transpiles to) of which it presents a compelling option and holds a number of advantages over - esp. for maintaining large web apps.

I've also used a number of languages in the last 15 years, and I've personally found Dart to be overall be the most productive which has become my go-to language whenever I need to something quick done. It's missing an ecosystem of mature libs which popularity helps most with - but Google has a ton of investment behind Dart which is developing the entire platform (language/libs/toolchain) giving it its best chance to succeed - if it fails to gain any traction it wont be for technical reasons. It looks like it will take over and be the preferred to succeed GWT and Closure Library, with internal usage it should see continued investment for years to come.

Re:A new breed of Chrome Apps by pjmlp on Friday September 06, 2013 @03:20AM (#6339122)
> - Provides a familiar language with clean semantics and low ceremony

Smaltalk had it.

> - Provides the fastest dev iteration times (there's no compile step, just edit + run in Dart VM/Dartium)

Smaltalk had it.

> - Provides ~10x faster start-up times than JS with snapshots (Dart VM)

Smaltalk VMs, actually Self, were where the first usuable JIT compilers were developed.

> - Provides faster run-time performance, that's predictable and can take advantage of real integers and SIMD instructions (VM Only)

Self and StrongTalk were quite performant. SIMD was not available back then.

> - Provides a unified object model so all classes from all libraries are interoperable

Smaltalk had it.

> - Providing a rich, well-defined, consistent API, real collections, removing JS WATs, smoothing over browser quirks

Smaltalk had real collections.

> - Provides a unified and composable IO model: Futures and Streams (repeating events)

Smalltalk has streams.

> - Provides a new powerful way to develop client apps with Web UI (Polymer/WebComponents) offering unprecedented levels of encapsulation and reusability

Fare enough regarding WebUI, as the web did not exist back then. However Smaltalk is responsible for the MVC concept.

> - Provides optimal dev and deployment options, you never have to worry about choosing the smallest libs as tree-shaking ensures only code used is compiled and minified

VM pruning in Smaltalk environments for deployment.

> - Providing "full-stack" dev environment, e.g. same language on client and server

This is only true when using Dartium. Transpiling to JavaScript does not count.

Re:A new breed of Chrome Apps by mythz on Friday September 06, 2013 @11:07AM (#6340797)
Provides a familiar language with clean semantics and low ceremony > Smaltalk had it.

Smalltalk's syntax is anything but familiar, which for programming languages means C-inspired syntax.

> Smaltalk VMs, actually Self, were where the first usuable JIT compilers were developed. > Smaltalk had it. > Self and StrongTalk were quite performant. SIMD was not available back then.

Where are the benchmarks? Alan Kay wanted to kill Smalltalk in the 70's because the way they done things like reflection was done and performed poorly. The computer language shootout shows Dart outperforming Smalltalk by several factors for most things and their still working hard on improving performance with v1.0 of Dart not even released yet: http://benchmarksgame.alioth.debian.org/u64/benchmark.php?te... Note: many of the VM team that were originally on the StrongTalk VM team are working on the Dart VM now who have a heavy influenced on how Dart is designed to ensure it retains a great balance of productivity and performance.

> - Provides a unified object model so all classes from all libraries are interoperable > Smaltalk had it.

Not a coincidence either, Dart's object model was inspired from Smalltalk as many of Dart engineers were from Smalltalk heritage.

> - Providing a rich, well-defined, consistent API, real collections, removing JS WATs, smoothing over browser quirks > Smaltalk had real collections.

But does nothing to simplify web programming, which was the point of this.

> - Provides a unified and composable IO model: Futures and Streams (repeating events) > Smalltalk has streams.

Dart is single-threaded and uses Future's for composing async operations for all non-blocking operations which is the default. Like most languages Smalltalk IO is mostly blocking and multi-threading and has poor support for non-blocking operations.

> Fare enough regarding WebUI, as the web did not exist back then. However Smaltalk is responsible for the MVC concept.

Right, but because its effectively non-existent for web programming we'll never see proper support for web technology like Web Components or tooling like TreeShaking, bundling.

> VM pruning in Smaltalk environments for deployment.

Which means nothing for web deployment and is less useful on the server where size is less of a factor.

> This is only true when using Dartium. Transpiling to JavaScript does not count.

Transpiling to JS does count, Dart has great source-maps support letting you debug Dart code from inside browsers running Dart2JS. But in terms of Native VM not running any JS, then yes Dartium now, Chrome in future and possibly Opera by virtue of Blink.

Re:A new breed of Chrome Apps by bluepill on Friday September 13, 2013 @10:13AM (#6380571)
amen
Re:A new breed of Chrome Apps by lucian1900 on Friday September 06, 2013 @04:47AM (#6339345)
There are several languages that intersect most of those traits. Clojure is possibly the closest and it also has many other things Dart can never hope to get.
Re:A new breed of Chrome Apps by coldtea on Thursday September 05, 2013 @09:53PM (#6338256)
>Server side is already too crowded, there is nothing that Dart brings to the table.

People could have said the same thing about Go, and yet it's catching up quite nicely.

It doesn't have to bring something "new", just a coherent offer, and that it does.

Re:A new breed of Chrome Apps by pjmlp on Friday September 06, 2013 @03:13AM (#6339105)
> People could have said the same thing about Go, and yet it's catching up quite nicely.

Yes, in a few places that get lots of up-votes in HN.

In the real Fortune 500 world, it is all about JVM and .NET languages.