News for hackers. Stuff that matters.
Re:Show HN: Rill – Composable concurrency toolkit for Go by lyxell on Monday November 25, 2024 @11:19AM (#42237474)
The API looks really nice and intuitive! What motivated you to build this?
Re:Show HN: Rill – Composable concurrency toolkit for Go by destel on Monday November 25, 2024 @03:51PM (#42240056)
Thank you! There are two pieces of motivation here. The first one is removing boilerplate of spawning goroutines that read from one channel and write to another. Such code also needs wait/err group to properly close the output channel. I wanted to abstract this away as "channel transformation" with user controlled concurrency.

Another part is to provide solutions for some real problems I had. Most notably batching, error handling (in multi stage pipelines) and order preservation. I thought that they are generic enough to be the part of general purpose library.