by throwawaywlabs · 7y ago · 0 comments
Less state or immutability means concurrency is easy. Easy concurrency means we can scale[2] applications with ease. I mean ease of development. It takes less work, less mental effort to take something that works for a single thread and make it work in a multithreaded and/or distributed manner over hundreds of thousands of cores. Debugging is easy too. P1 incidents for a microservices written in Clojure takes less time to debug compared to those written in other languages. So no wonder most of our mission critical services are written in Clojure.
For a complex environment where thousands of microservices are deployed on hundreds of thousands of computes, Clojure has been super successful.[3]
[1]: https://github.com/walmartlabs?language=clojure
[2]: http://blog.cognitect.com/blog/2015/6/30/walmart-runs-clojur...
We use Clojure at my work as well, and ya, everything else you said afterwards is true as well. Clojure is a great productive language. It can scale, is very comparable to Java in performance, simple to maintain, has a complete ecosystem, is batteries included, etc.
But most convincing! It's just so much fun!!
Being fun is an undervalued quality of a language in my opinion. That joy you get from using it actually translates in the quality of the work you do. So it's not an intractable thing, the fun is good for you and for the product!
Day job is great but spending more than half of programming time modernising some of the worst PHP I've ever seen gets old after a while.
Kotlin is actually a pleasure to use so I look forwards to using it.
That said, Clojure has to be seen as the sum of its parts. It's the coming together of Lisp, FP and the JVM which truly gives it its strengths.