Live data from Hacker News

Dart language

dartlang.org

21–30 of 504 posts

Re: Dart language

#21
post #19
post #14

Earlier quoted context omitted.

That doesn't sound so different from WebWorkers, which you can already use from javascript in newer browsers. https://developer.mozilla.org/en/Using_web_workers

The model seems slightly different - don't WebWorkers share state?

No, just message passing (notionally via JSON).

Re: Dart language

#22
post #10

I don't get it. What's the runtime for this? The interpreter seems to be running on App Engine, so it's probably JVM based, right?

Though I saw no direct mention of this in any of the writeups thus far (they are just announcing it now at GOTO), it appears you can download code for the the VM, compiler, etc from here:

https://code.google.com/p/dart/

(Look in the bleeding_edge branch)

Currently doing a repo pull here so I haven't had much time to look around at it yet. I'm cautiously optimistic though, it looks quite a bit like I was hoping Dart would look (a bit of the ECMA4/ActionScript feel on top of JavaScript).

Re: Dart language

#24
post #4
post #2

Creating an object: Greeter greeter = new Greeter() or var greeter = new Greeter() Defining a constant: static final myConst = 1 Plus there are classes, interfaces... It's just Java?

Looks a lot more like James Gosling, actually ....

I had a comment above saying something to the effect of "not everyone can be Ken Thompsons" and then edited it out, sorry.

Re: Dart language

#25

New MIME type "application/dart"... I suspect that Google Chrome will embed a Dart Runtime when it gets stable, that will be very interesting; I'm not sure if it's a good or a bad thing though.

OTOH it's not that uncommon these days, especially when these transpiled-to-js languages want to run without being translated ahead of time (though usually in production you would want to do that offline)...text/coffeescript, text/traceur, text/es-harmony, etc etc

Re: Dart language

#26
A face-washed JavaScript with classes, interfaces and such stuff. I was expecting something more syntactically close to Go, or at least to Python.

Re: Dart language

#27
The thing I was really hoping for from the dart site was an "about" section, or a "why" section, explaining about the language and their goals, instead of just jumping to code examples...

Re: Dart language

#28

Aaaarghhh! It is full of semicolons. Is it really necessary in the 21st century to create a language that terminates lines with semicolons? I am sure I have seen some other languages in the past that get by just fine without them.

This was my first thought, as well. Looks like I will still go with another layer on top like CoffeeScript to actually write my scripts. Curly braces for blocks are something I don't see the need for anymore, either.

Re: Dart language

#29
post #27

The thing I was really hoping for from the dart site was an "about" section, or a "why" section, explaining about the language and their goals, instead of just jumping to code examples...

http://www.dartlang.org/docs/technical-overview/index.html has some information on the design goals.

Re: Dart language

#30

New MIME type "application/dart"... I suspect that Google Chrome will embed a Dart Runtime when it gets stable, that will be very interesting; I'm not sure if it's a good or a bad thing though.

OTOH it's not that uncommon these days, especially when these transpiled-to-js languages want to run without being translated ahead of time (though usually in production you would want to do that offline)...text/coffeescript, text/traceur, text/es-harmony, etc etc

on the other other hand, the live tweeting is saying "not yet in chrome" is listed on the "still not done" list, so maybe you're right :)
Post reply on HN