Re:Go Concurrency Patterns ported to Clojure
by icebraining on Monday September 16, 2013 @01:46PM
(#6394570)
In golang you can just do LockOSThread() to reserve the OS thread for your current goroutine. What's the advantage of having two separate models and APIs?
Simplicity doesn't always mean "one" it means decoupling related ideas. Sometimes simpler means more things that each do one thing.
Notice how Clojure has refs, atoms, vars, and agents. Each does something completely different, each with its own tradeoffs and bonuses. Coupling reduces flexibility by throwing all the tradeoffs (often with additional issues) into one large pile.
So I see core.async as being inline with the Clojure ideals. Pull things apart and offer only simple primitives that can be combined to create larger systems.