Back to browse
GitHub Repository

Simple parallelism in Go

4 starsGo

Toil, a go library for simple parallelism

by indrora·Feb 13, 2026·4 points·2 comments

AI Analysis

MidShip It

Python's map/reduce in Go, but channels and worker pools already exist.

Strengths
  • Preserves order in parallel map, useful for deterministic results
  • Sensible defaults using runtime.NumCPU() and flexible error modes
  • Clean API with builder pattern for options configuration
Weaknesses
  • Solves a problem already handled by native Go primitives (goroutines, sync)
  • No benchmarks or performance data vs. manual channel implementations
Target Audience

Go developers building concurrent applications

Similar To

sync.Pool · iter.Batch patterns in stdlib

Post Description

I was tired of having to write the same basic primitive over and over again: A channel, some control logic, etc.

So I wrote toil -- A port of two of my favorite Python functions over into the Go world. It's very simple. There's optimizations to be made for sure, but this is the result of a couple of hours of wanting something that felt Go-Like in the right way.

Similar Projects

Developer Tools●●Solid

Speedy-Claude

Replaces Claude's sequential file ops with parallel CLI pipelines for 1400x speedup.

Big BrainNiche Gem
bythreads
212mo ago