You are previewing The Joy of Clojure.

The Joy of Clojure

Cover of The Joy of Clojure by Chris Houser... Published by Manning Publications

Chapter 11. Mutation



Clojure’s main tenet isn’t the facilitation of concurrency. Instead, Clojure at its core is concerned with the sane management of state, and facilitating concurrent programming naturally falls out of that. The JVM operates on a shared-state concurrency model built around juggling fine-grained locks that protect access to shared data. Even if you can keep all of your locks in order, rarely does such a strategy scale well, and even less frequently does it foster ...

The best content for your career. Discover unlimited learning on demand for around $1/day.