News for hackers. Stuff that matters.
Re:Concurrency in Go (or, Erlang done right) by metabrew on Thursday December 22, 2011 @03:11PM (#3383055)
I like go and erlang, but the title is a troll.. Nowhere in the presentation does it compare the pros and cons of the go approach to how erlang does things.

Sometimes selective receive with erlang's pattern matching is really useful. How about erlang's supervision hierarchies and recovering from errors? Erlang's hot code upgrades on long-running systems to avoid any downtime?

Since go has/needs mutexes, it's laughable to say it's "erlang done right". It's nothing like erlang in that sense.

Re:Concurrency in Go (or, Erlang done right) by mdwrigh2 on Thursday December 22, 2011 @04:23PM (#3383333)
I agree the title is misleading (I should also point out that this isn't my slide deck, but one done by Dmitry Vyukov).

> Since go has/needs mutexes

I'm not sure it's really fair to say Go needs mutexes, just that they are available for you if you need the performance.

Re:Concurrency in Go (or, Erlang done right) by jlouis on Thursday December 22, 2011 @04:27PM (#3383347)
One funny thing is that the counting example has a really simple and very fast solution in Erlang. Shove the counter into an ETS table and use ets:update_counter as the call to manipulate it.
Re:Concurrency in Go (or, Erlang done right) by gordonguthrie on Thursday December 22, 2011 @03:06PM (#3383032)
So suddenly I need to worry about mutexs and two processes accessing the same data.

As an Erlang programmer that smacks of Erlang done wrong to me. I don't want shared access. With no shared access I can 'let it crash' and know that I have process isolation. This also means that OTP and my restart libraries will 'just work' Erlang For The Win! Go For The Gone!

Re:Concurrency in Go (or, Erlang done right) by adgar on Thursday December 22, 2011 @04:08PM (#3383257)
> So suddenly I need to worry about mutexs and two processes accessing the same data.

Only if you're implementing higher-level concurrency primitives and want to maximize performance.

Did you completely ignore the context in which mutexes were mentioned in those slides?

Re:Concurrency in Go (or, Erlang done right) by rdtsc on Thursday December 22, 2011 @06:12PM (#3383766)
To be fair the slides never really makes any comparisons with Erlang instead just used an inflammatory title, so it is understandable if responses are a little hand-wavy. It just goes along given the level of discussion.
Re:Concurrency in Go (or, Erlang done right) by adgar on Thursday December 22, 2011 @10:39PM (#3384515)
> To be fair the slides never really makes any comparisons with Erlang instead just used an inflammatory title, so it is understandable if responses are a little hand-wavy.

Totally true - the Erlang too-dumb-to-be-a-cheap-shot was unwarranted. There are responses already posted in this thread along the lines of "This doesn't have anything to do with erlang at all" and they're completely justified.

The comment I responded to was calling out specific details out of context and making silly comparisons from there. That's all.

Re:Concurrency in Go (or, Erlang done right) by jlouis on Thursday December 22, 2011 @04:24PM (#3383338)
Erlang takes another approach to many of these problems of concurrency. But I don't think you can argue that one is right while the other is wrong. Rather, right and wrong depends on your perspective and view on things.

Also, I am not sure there is one solution that fits all problems. It depends on your problem what is easiest to use. I mostly program Erlang, but I am following along on the Go-path since it is an interesting language - a modern C is my view of the language.

Re:Concurrency in Go (or, Erlang done right) by rdtsc on Thursday December 22, 2011 @06:17PM (#3383783)
I actually prefer an actor-centric model vs a channel-centeric model. Don't know why, just makes more sense to me, and Go way might make more sense to others.
Re:Concurrency in Go (or, Erlang done right) by vseloved on Thursday December 22, 2011 @04:16PM (#3383288)
Erlang is actually done right for its use case. Hard to tell about Go yet...
Re:Concurrency in Go (or, Erlang done right) by justincormack on Thursday December 22, 2011 @03:13PM (#3383063)
Not logged in to Google so cant read. Why do public google docs links still need login?
Re:Concurrency in Go (or, Erlang done right) by dchest on Thursday December 22, 2011 @03:33PM (#3383132)
Re:Concurrency in Go (or, Erlang done right) by Xurinos on Thursday December 22, 2011 @03:17PM (#3383078)
That's weird. I am not logged into anything related to Google, but I can read the document at this link.
Re:Concurrency in Go (or, Erlang done right) by eis on Thursday December 22, 2011 @03:21PM (#3383085)
There seems to be a weird policy in Google Docs of asking you to log in if it knows you were logged into a Google account before.

Turn on the incognito mode of your browser or clear the cookies and try again, it should not prompt you to log in.

Re:Concurrency in Go (or, Erlang done right) by hasmoo on Thursday December 22, 2011 @04:34PM (#3383377)
You only think that you are not logged in. But Google doesn't forget you and tracks your footprints everywhere.