4 ms·
Having recently made use of Clojure to make a simple, multithreaded image processing program[0], I can say the advantages over Python and Ruby are significant.
by Zak 18y ago
Having recently made use of Clojure to make a simple, multithreaded image processing program[0], I can say the advantages over Python and Ruby are significant. Here's what I got, essentially free by using Clojure:
Processing a directory full of flies using as many threads as there are cores.
No UI-hanging due to long-running callbacks.
Automatic queuing of actions started from the UI
Fast, statically typed primitive operations, but only when I ask for them
Friction-free access to Java's rather sizable collection of libraries
I didn't write any macros, so all of this would have been possible in a language with Clojure's features and a non-Lisp syntax. That said, I have no doubt that if I write a longer program involving Swing, there will be macros involved, and they will save a significant amount of pain.
[0] http://github.com/zakwilson/imagesieve/tree/master http://github.com/zakwilson/imagesieve/tree/master