3 ms·
> [Go] gives a new breed of concurrency you won't find in other languages, including Erlang. And this comes from goroutines. Goroutines aren't threads or lightw
by jamii 15y ago
> [Go] gives a new breed of concurrency you won't find in other languages, including Erlang. And this comes from goroutines. Goroutines aren't threads or lightweight threads. They aren't callbacks. They're processes within a single address space that can communicate with each other.
> Grasping the concurrency may take a little longer, even if you're experience with something like Erlang – "the concept's a bit difficult to grasp if you've never been exposed to message-passing inside of a program before,"
There are many interesting differences between erlang and go (eg single mailbox vs channels, process separation vs shared heap) but the above is misleading at best. Goroutines are very much like erlang processes and both languages make heavy use of message-passing inside programs.
Journalists: get your interviewees (ie the people who know what they are talking about) to proof-read articles!