Hacker News new | ask | show | jobs
by mullr 2065 days ago
It certainly seems to be rarely used. It's interesting to look at the concurrency stuff in Clojure and its uptake:

- Atoms: very popular. Usually what people reach for, perhaps overly so.

- STM / refs: Not commonly used, but I wonder if this is because we aren't used to really considering them as an option?

- Agents: I think everybody agrees that you shouldn't use these

- core.async: What many people think you should use instead

- Reducers: I've never seen these used in the wild.

2 comments

> Atoms: very popular. Usually what people reach for, perhaps overly so.

Having written Clojure professionally, and then moved on to Java (not intentionally, just kinda happened), I find myself using the same pattern in Java. AtomicReference + pcollections, along with Lombok's @Value is enough to get some pretty Clojurey concurrency patterns in Java.

There's also pmap which is amazing, manifold & it's little deferred/event-ish universe..

Both have their place!