News for hackers. Stuff that matters.
Re:Must be this tall to write multi-threaded code (2015) by new_stranger on Friday June 10, 2022 @03:42PM (#31698565)
Assuming you don't need bare-level performance and Go is okay, I love how easy and approachable parallel code is with Go. Locks and channels each offer trade offs you can easily benchmark using the built in go test.

I've written so many different concurrent approaches to workers, pipelines, and multi-stage processing systems and found it always easy to reason through ways to limit the number of workers, prevent duplicate work, and implement backoffs.

Re:Must be this tall to write multi-threaded code (2015) by masklinn on Saturday June 11, 2022 @02:15AM (#31702392)
Go is full of concurrency pitfalls: https://eng.uber.com/data-race-patterns-in-go/

It makes concurrency easy, it doesn’t make concurrency correct easily.