Goroutines and Cells: Lessons in Goal-Directed Systems
summary
Built a Go library called emerge library that uses goroutines and a Kuramoto-based synchronization algorithm to coordinate independent agents without a scheduler. Simulation shows it improves batching efficiency by increasing batch sizes when agents reach target coherence 90% (examples use scales like 200, 2,000, 20,000). Presets map workloads to agents for either tight synchronization (efficient API batching) or spreading (distributed load), it measures coherence gaps, and the simulation demonstrates the approach working end to end.
AI-written summary · about
chapters (9)
- 0:00Goal-directed biological systems
- 3:26Introduction
- 5:54Emerge library overview
- 9:50Emerge agents and goroutines
- 14:37Live simulation and visualization
- 21:30API batching simulation
- 25:10Load balancing simulation
- 27:43Emerge package and future work
- 30:15Q&A
related talks
24mMastering Concurrency in Go: From Patterns to Production
16mIn the land of Gophers from age 3
46mSimplifying Scalable Cloud Application Development with Go
46mGoing Loopy: Iteration in Go
35mGoroutines: the dark side of the runtime
16mIn the Land of Gophers (from Age 3)
35m"Rush Tactics: Writing Go Code You Won’t Regret Later"
18mApplied concurrency in Go
