News for hackers. Stuff that matters.
Re:Lock-Free Rust: Crossbeam in 2019 by bpicolo on Wednesday January 30, 2019 @10:12AM (#19035635)
The one thing I would love to see a good story in chan/go concurrency in general for still is 1-to-n fanout. Right now a lock and a loop seems to be the answer, which is a bit of a blunt tool. Possible I'm missing an option, though!
Re:Lock-Free Rust: Crossbeam in 2019 by maximente on Wednesday January 30, 2019 @01:02PM (#19037502)
1 producer to many consumers?

just spawn goroutines that select on the (optionally buffered) channel

if you need to fan out even further, repeat this on the spawned routines

Re:Lock-Free Rust: Crossbeam in 2019 by bpicolo on Thursday January 31, 2019 @04:07PM (#19048876)
Not quite. Produce one message, have arbitrary <n> consumers all read that exact message.