3 ms·
Clojure runs on the Java virtual machine, so you can run (mostly) anywhere and take advantage of the huge amount of libraries. It also has built-in support for
by jefffoster 17y ago
Clojure runs on the Java virtual machine, so you can run (mostly) anywhere and take advantage of the huge amount of libraries. It also has built-in support for concurrency with software transactional memory.
See http://clojure.org/rationale http://clojure.org/rationale for more information
- krakensden 17y agoAlso, its common data types (lists, vectors, maps, sets) are immutable and use pointer sharing to make changes extremely cheap. This makes reads always safe and lock free, but performance guarantees are slightly worse- O(log32N) for vectors instead of O(1)- but still good enough that you probably won't care. To me that's just as impressive and important as the STM, but I rarely see it mentioned.