4 ms·
Clojure is much more concise than java, but ironically high performance clojure is not more concise, nor as fast, as java. But that said, high performance java
by tensor 12y ago
Clojure is much more concise than java, but ironically high performance clojure is not more concise, nor as fast, as java.
But that said, high performance java is both slower and less concise than C by the same metrics. So if you think this is just fashion, then nearly every language outside of C is also just fashion.
In my view, languages as a whole have been moving more and more towards the functional space over time. Newer languages, or versions of existing languages, typically have more functional features. Languages are trending towards higher order. As a result of this, the existing higher order languages, the functional languages, are suddenly much closer to mainstream and so have become more popular as the majority become aware of their benefits.
- weavejester 12y agoIf you stick to primitive operations like loop, if, let and data primitives, the bytecode generated by Clojure is the same as the bytecode generated by Java. Clojure's syntax isn't optimal for low-level in-place mutability, but macros can go some way to resolving that. The few times I've worked on high-performance Clojure code, it hasn't been too difficult to get performance comparable to an equivalent Java library. Java is somewhat slower than C, but it's generally within an order of magnitude if you stick to primitives.
- stonemetal 12y agoI would say choosing C is just fashion too. For any software development project technical merit limits language selection to a very broad category of languages. After you get to that broad selection of languages all narrowing is non technical (fashion) driven.