News for hackers. Stuff that matters.
Re:The Reliability of Go by TheAnimus on Tuesday May 14, 2013 @08:50AM (#5704495)
>I assume he used Go's concurrency features, although he could have articulated on that.

I've yet to find a good explanation of what is so special about them, why I'd choose it over F# or C# Async/Await.

In the case of pinging servers, I would have prefered to use a 'cheaper' to develop language, which has a boatload of libraries that are widely used.

Anyone got any links or stories about why you would want to use Go for something like that? I don't find this blog story remotely useful in the whole 'why Go' thing.

Re:The Reliability of Go by kenkam on Tuesday May 14, 2013 @09:10AM (#5704570)
I think async/await is semantically similar to the promises pattern [1] but different to the Go concurrent models using channels. What the compiler does with await/async is quite interesting [2]. Essentially it takes your await/async code and turns the related code into a state machine which keeps track of how control should be switched between the callee and the await keyword (and uses Task for the async bit).

[1] http://blog.parse.com/2013/01/29/whats-so-great-about-javasc...

[2] http://www.codeproject.com/Articles/535635/Async-Await-and-t...

Re:The Reliability of Go by TheAnimus on Tuesday May 14, 2013 @10:50AM (#5705206)
Thanks for replying.

But I'm not trying to say that async/await are superior to the actor paradigm (which is what my understanding Go subroutine, don't call em threads things are).

Just that I would have hazarded a guess for pinging a bunch of servers, the TPL stuff is a better choice, than actor?

I feel there is a lot of buzz around Go, though I'm not seeing why. I guess my only option is to find something suitable enough for it, and give it whirl. But of course I am lazy, so trying to find someone elses suitable experiences would be great.

Re:The Reliability of Go by threeseed on Tuesday May 14, 2013 @09:01AM (#5704537)
This is a good overview of Go concurrency:

http://www.slideshare.net/jgrahamc/go-oncurrency

As a Java developer I personally don't find it that impressive compared to something like the LMAX Disruptor or even Vert.x but I can appreciate that it is simple and that always counts for a lot.

Re:The Reliability of Go by randomsearch on Tuesday May 14, 2013 @09:49AM (#5704768)
As an Ada 95 developer, I like that Go seems to have an Adalite concurrency-related syntax.
Re:The Reliability of Go by tptacek on Tuesday May 14, 2013 @09:54AM (#5704795)
Both systems have a CSP design, right? Golang is pretty up front about having lifted its design from Hoare.
Re:The Reliability of Go by randomsearch on Monday May 20, 2013 @07:03AM (#5736943)
Yes, you're right - the design comes from CSP. The syntax looks nicely Adalike.