Hacker News new | ask | show | jobs
by pjlegato 1867 days ago
Clojure famously makes extensive use of a software transactional memory (STM) to provide painless multithreading:

* https://clojure.org/reference/refs * https://sw1nn.com/blog/2012/04/11/clojure-stm-what-why-how/

1 comments

It kind of came and went in Clojure, not much code uses it today.

In your second link, the linked followup post is also interesting as it captures some misunderstandings one might have when starting out with STM code.