r/programming • • Apr 13 '14

Puppet Labs move to Clojure

http://puppetlabs.com/blog/new-era-application-services-puppet-labs
101 Upvotes

30 comments sorted by

View all comments

16

u/strattonbrazil Apr 13 '14

I wish they mentioned performance a bit more. From my personal experiences and almost every benchmark I've ever seen clojure struggles and seems laborious to optimize unless you have a lot of experience with it. I guess it might be comparable to ruby, so it didn't affect them. In my brief use of clojure, the language was very simple and the docs were very easy to use.

21

u/Plorkyeran Apr 13 '14

Even if Clojure was consistently half the speed of the equivalent code in Java, it'd still be a huge step up in performance from Ruby.

3

u/lacosaes1 Apr 13 '14

If they're going to rewrite something for performance, why don't pick a language with a very good performance on the JVM like Scala?

12

u/grim_radical Apr 13 '14

We'd already written PuppetDB in Clojure a while ago, and thus have several years' experience with the language. It's been fast enough and practical enough for our needs, and a pleasure to use. This is not a knock against Scala, which is also a great language.

7

u/lacosaes1 Apr 13 '14

... and thus have several years' experience with the language.

Fair enough. That's a big reason.