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.

-2

u/revscat Apr 13 '14

But not JRuby. I'd be curious to know what made them decide to go with Closure rather than JRuby, especially given that Puppet is primarily a Ruby shop.

17

u/TJSomething Apr 13 '14

1

u/[deleted] Apr 14 '14

Which points to some issue in the Ruby object/dispatch model that causes this slowness. Can't blame JRuby's performance on GC or threads in the case of JRuby.

4

u/lynxbat Apr 13 '14

They do use JRuby for their Razor project via Torquebox