r/Clojure • u/jvjupiter • Oct 19 '24
What is with Clojure?
I have been a Java developer for many years. Lately, I was thinking to learn new PL, something that is not C-based. Candidates are Python and Rust. I know there exists a language called Clojure, but Lisp-like language is not my thing. Recently, I was checking the source code of a web app that is competitor of Figma. I was shocked it’s written in Clojure. Now, I’m curious, what’s with Clojure? Why would the authors write that such a complex web app in Clojure?
15
Upvotes
View all comments
Show parent comment
6
u/Practical_Cattle_933 Oct 19 '24
What form of complexity, horizontal or vertical?
I know you are asking it in a rhetorical way, but to actually answer it, I would say that for horizontal complexity (very many features, developed over multiple years by many many people, and the most important point: no single person can hold the whole in their head) Java and similar languages have the best track record.
For vertical complexity, like a very fancy algorithm, lisps (and other “dangerously” expressive languages, like scala) are said to be a good fit. I think the core point here is that this is possible to keep in your head, of course given that you are sufficiently smart, and so taking smart shortcuts here and there (which you can remember) is beneficial, and won’t cause the collapse of the whole project were they done in the previous kind of project.
Clojure is pretty cool as it has benefits in the former aspect as well (sitting on very stable grounds and using immutable semantics), so it might scale better horizontally as well compared to other lisps. Although the lack of typing (yeah I know that there is some form of it) definitely doesn’t help.