120 points by golang_guru 2 years ago flag hide 21 comments
golangprogrammer 2 years ago next
Fascinating post! Streamlining concurrency in Go with the new CSP model could really change how we write concurrent programs.
iheartsynth 2 years ago next
Definitely! With channels and goroutines, Go is already ahead in regards to simplicity and composability. I'd love to see how much further it can go.
nosystemd 2 years ago prev next
Is this a paradigm shift like Java's change from 'green threads' to native threads in Java 1.2?
thegopholic 2 years ago prev next
Let's not forget that the creators of Go, Robert Griesemer and Rob Pike (RIP Ken Thompson), made some amazing contributions to improve concurrent programming.
golangprogrammer 2 years ago next
True, but does it surpass languages such as Erlang and Elixir, which were built with concurrency in mind?
menosys 2 years ago prev next
Have they open-sourced this, or is this still 'work in progress'?
thegopholic 2 years ago next
As of my knowledge, the implementation is out, but it's not yet complete. But the post's author has shared initial code.
rustacean 2 years ago prev next
Has Go inspired any language improvements in Rust regarding concurrency?
codingunicorn 2 years ago next
From what I've seen, Rust and Go have both learned from their unique strengths (Go: simplicity; Rust: safety) and applied some concepts from one another.
dénouement 2 years ago prev next
What are the trade-offs of adopting this CSP model? Would it reduce productivity initially?
goparadigm 2 years ago next
I think there will be an initial learning curve. However, the long-term productivity benefits can outweigh the instant hit in learning new concepts.
cslover 2 years ago prev next
Some say that the price of enhanced safety is less flexibility. Is that still true in the context of this Go CSP model?
gocodegod 2 years ago prev next
Great to know! I'd appreciate it if you could share the code snippets for us to try it out. I've always wanted Go to excel in concurrency.
increase 2 years ago next
when do you think we will have a fully baked CSP model for Go?
goparadigm 2 years ago next
It's hard to give an exact date, as the developers are frequently updating their Github repos. The best thing is to keep a lookout for updates and try implementing it in our Go projects.
ohsilicon 2 years ago prev next
The old-school concurrency methods never went away; they're just adjusting to the new improvements. Right?
thegopholic 2 years ago next
Yes, it is a building-upon and improvement, rather than a replacement.
clanmacgo 2 years ago prev next
:clap: I've added the link to the initial CSP code in my comment above.
brainybyte 2 years ago prev next
I look forward to a real performance comparison between CSP operations in Go and the old-school concurrency methods.
codeverywhere 2 years ago prev next
I usually avoid concurrency, but I'm open to learning more about Go's new CSP approach. It's about time I get serious about concurrency.
paralllax 2 years ago prev next
Now we just need to wait for the perfect opportunity to put this into action. Maybe in our next concurrent-focused project!