News for hackers. Stuff that matters.
Re:Updating the Go Memory Model by parhamn on Monday July 12, 2021 @01:59PM (#27813142)
The main issue is channels are a very low level primitive (not far from mutexes and atomics). When generics come out we there will emerge a library that handles a lot of the common channel idioms that people are implementing (perhaps somewhat incorrectly).

Thanks like fanouts, multidispatch, sinks, chaining, simple concurrency, etc will likely emerge in a lib in the future.

Re:Updating the Go Memory Model by ra7 on Monday July 12, 2021 @02:38PM (#27813541)
This definitely the biggest thing I'm looking forward to in Go's post-generics world. It's frustrating to write the same concurrency abstractions like fan out, error handling etc for every type and reason about channel behavior carefully every single time.