ALAlberto Lerdainkeepcoding.hashnode.dev·Aug 14, 2023 · 2 min readYou HAVE to do benchmarksAssume that we have a piece of code in which we have to compute the reciprocal of each element of a big vector, in Clojure we can use the map function (def v (vec (range 1 1000000))) (def result (doall (map #(/ 1.0 %) v))) The doall just guarantee t...00
ALAlberto Lerdainkeepcoding.hashnode.dev·Jun 4, 2023 · 2 min readWhy you will love Clojure for concurrent programmingJava has one of the best libraries for cross-platform concurrent programming. Java Concurrency in Practice is a must-read for those who are really interested in the topic. The problem is that concurrency is hard, even for experienced programmers. Two...00