News for hackers. Stuff that matters.
Re:Microsoft Edge gets native ECMAScript 7 async/await suppo... by pjmlp on Friday October 02, 2015 @04:02AM (#10317277)
Because the only thing Go did was bake CSP into the language, it is nice, but not a solution for every concurrency problem.

While async/await allows for an abstraction over the lower level tasks, that are still exposed, in case one needs more control over the threading runtime.

For example, in JS's case you can still dig into the Promise world if needed.

Similarly in C#, Tasks / Dataflow and SignalR can also be used.

Whereas in Go, correct me if I am wrong, outside CSP one needs to reach out to threads/mutex/semaphore directly.

Re:Microsoft Edge gets native ECMAScript 7 async/await suppo... by aikah on Friday October 02, 2015 @04:53AM (#10317397)
> Because the only thing Go did was bake CSP into the language, it is nice, but not a solution for every concurrency problem.

I'm not sure I understand your sentence. Are you saying that communicating sequential process only works because it is first class in Go or that CSP is not a solution to every concurrency problem ?

Re:Microsoft Edge gets native ECMAScript 7 async/await suppo... by pjmlp on Friday October 02, 2015 @05:15AM (#10317468)
It is not a solution to every concurrency problem.

I tend to use languages that give library writers (almost) the same control as the language itself has.

EDIT: To expand a little more into what I mean. In most languages that offer async/await, that is mostly syntactic sugar (with some compiler help) to the blessed task pool library.

A good way to explore that is to see the parallel libraries available in C++, JVM, .NET, Haskell and OCaml worlds.