Tag Archives: concurrency

Clojure’s Concurrency: easy atoms

Clojure’s atoms let one transactionally and atomically store values. When one uses an atom, Clojure manages the mutation of the value and guarantees atomicity. Such a feature is very useful in a highly concurrent application. Much like Java’s Atomic* classes, … Continue reading

Posted in Clojure, Concurrency, Hacking, Java, Lisp, Programming | Tagged , , , , , , , , , | Leave a comment

Clojure’s Concurrency: Futures and Agents in Harmony

I’ve previously written on the wonders of Clojure’s agents, giving the programmer a wonderfully easy way of writing asynchronous code with very little effort. Here’s a slightly more complex example for those wanting more context. Combining Futures and Agents We’ll … Continue reading

Posted in Clojure, Concurrency, Hacking, Lisp, Programming | Tagged , , , , , , , | Leave a comment