Live data from Hacker News

Dart language

dartlang.org

11–20 of 504 posts

Re: Dart language

#11
I am most excited about the concurrency model!

"Concurrency is supported via actor-like entities called isolates. An isolate is a unit of concurrency. It has its own memory and its own thread of control. Isolates communicate by message passing (10.14.4). No state is ever shared between isolates. Isolates are created by spawning (10.11)"

http://www.dartlang.org/docs/spec/dartLangSpec.pdf

I wonder how they compile this down to Javascript?

Re: Dart language

#12
post #6

Can anyone explain why I should use this instead of other web programming languages?

You shouldn't. This has no practical use right now. Google's basically just showing us what they think JavaScript should look like.

Re: Dart language

#13
post #9
post #3

The "hello world" example is incredibly uninformative. What does that have to do with "structured web programming"? Where is this printed out on a web page? Does the console output there correspond to the html output? Or some other console?

It's actually runnable if you click the "play"-icon in the top-left of the code sample. The "Hello, Dart!" is written to a console emerging from underneath the code sample. https://code.google.com/p/dart/source/browse/branches/bleedi... is a more DOM-oriented version of the same program.

Yeah, there are more links to code samples here: http://www.dartlang.org/samples/index.html

Re: Dart language

#14
post #11

I am most excited about the concurrency model! "Concurrency is supported via actor-like entities called isolates. An isolate is a unit of concurrency. It has its own memory and its own thread of control. Isolates communicate by message passing (10.14.4). No state is ever shared between isolates. Isolates are created by spawning (10.11)" http://www.dartlang.org/docs/spec/dartLangSpec.pdf I wonder how they compile this…

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

Re: Dart language

#16

Hmm. A little underwhelmed so far.

Yeppp... its like getting a birthday present. You get a moment of excitement and intrigue. You unwrap it, and .. socks.

You know I'll probably use those socks someday, but its not what I was really hoping for.

Re: Dart language

#17
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.

Re: Dart language

#19
post #14
post #11

I am most excited about the concurrency model! "Concurrency is supported via actor-like entities called isolates. An isolate is a unit of concurrency. It has its own memory and its own thread of control. Isolates communicate by message passing (10.14.4). No state is ever shared between isolates. Isolates are created by spawning (10.11)" http://www.dartlang.org/docs/spec/dartLangSpec.pdf I wonder how they compile this…

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?

Re: Dart language

#20
post #14
post #11

I am most excited about the concurrency model! "Concurrency is supported via actor-like entities called isolates. An isolate is a unit of concurrency. It has its own memory and its own thread of control. Isolates communicate by message passing (10.14.4). No state is ever shared between isolates. Isolates are created by spawning (10.11)" http://www.dartlang.org/docs/spec/dartLangSpec.pdf I wonder how they compile this…

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

Agree, it would be more interesting to know if it has some kind of built-in parallel support.
Post reply on HN