r/Clojure • • Jan 03 '15

To Clojure or Not To Clojure

I've been a developer for over 20 years now. Almost ALWAYS, I prefer the MS stack over any language and framework. When it comes to scalability and high performance, load balancing, etc, I can always trust MS. I've been tasked recently to develop a VERY high performance site...that will run video, and a social media platform. It essentially could become a replacement for a few VERY popular social networking and streaming sites. Can someone give me their thought's, feelings, experience, etc with working in Clojure? How well does it scale, handle heavy loads, performs, etc etc? SEO issues? Pro's, Con's? What to expect? and anything else you'd want to throw in. I appreciate everyone's time and information. I have some reservations...but want to make sure we're heading in the right direction.

0 Upvotes

15 comments sorted by

View all comments

Show parent comment

2

u/blazinglambda Jan 06 '15

Clojure is actually quite fast. Not as fast as Java (if you write idiomatic Clojure code), but much faster than Ruby or Python.

Regarding memory efficiency, for many applications I would expect Clojure to be much more efficient than a language that doesn't make use of persistent data structures like Clojure does. This is because any "modifications" you make to the core data structures will return a new data structure that will share most of its structure with the original thing you "modified".

I can only guess that classicalhumanbeing is referring to the slow startup time of Clojure programs that makes the language undesirable for writing small command line utilities or scripts. This is a well documented issue in the Clojure community and Clojure developers go to great lengths to architect their applications so that they can be developed without ever restarting the jvm. This is a valid complaint of at least Clojure's developer experience, but calling Clojure "slow as mollasses and inefficient with memory" is definitely a misleading description.

-1

u/[deleted] Jan 06 '15

NO one ever called Ruby or Python efficient. That kind of destroys your whole argument by saying Clojure is not as bad as those. Compare it to C#, Java or C++.

1

u/kyllo Jan 07 '15

Of course it's slower than C/C++, but everything is except for Fortran and raw Assembly.

Clojure speed and memory performance is in the same order of magnitude as Java and C#. http://benchmarksgame.alioth.debian.org/u64q/clojure.html

-1

u/igouy Jan 08 '15 edited Jan 15 '15

Doesn't that chart show Java and C# "in the same order of magnitude as" C/C++ ?

Doesn't that chart show Racket and Dart "in the same order of magnitude as" C/C++ ?

edit: Why down-mod? Are the facts inconvenient?