Chapter 7STM in Clojure, Groovy, Java, JRuby, and Scala

A language that doesn’t have everything is actually easier to program in than some that do.

Dennis Ritchie

The JVM languages integrate fairly well for the most part. There are some rough edges, however, that we’ll run into on occasions as we cross the language boundaries. We consciously pick a particular language for its strengths and capabilities, with the hopes it will make us more productive. So, we certainly don’t want the little annoyances to ruin the efforts.

If STM is the right choice for an application, the language we’re using on the JVM shouldn’t stop us from putting it to good use. Whether STM really is the right choice is decided by the data access patterns of the application ...

Get Programming Concurrency on the JVM now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.