by phren0logy · 16y ago · 0 comments
I ran into a few issues that nudged me toward Clojure:
1. Although Python has a richness of libraries, there were still some niche, domain-specific libraries available only in Java that look really appealing.
2. I looked at learning Java a few times, and I had a hard time justifying spending a lot of time learning it. The gains didn't seem that big for the tedium I was feeling doing the reading/exercises.
3. Lisp syntax is quick and easy to learn.
4. Functional programming makes more sense to me. For example my Python style involves an unreasonable amount of list comprehensions.
5. For scientific/numeric computing, baked in parallelism/concurrency is extremely appealing.
6. I was also considering learning R, but when I saw Incanter have been hoping I could learn Clojure and make use of this excellent library. That way I con't have to move between a general purpose language and a data analysis language.
I suspect I'm not alone.
Personally I spent a long time in the Java world and then migrated to Python and Ruby. I was shocked at how easy to use many libraries are in the Python world. Libraries like Feedzirra, Mechanize, Python Twitter Tools and so on don't really have equivalents with respect to ease of use in the Java world.
Except these are exactly the kinds of libraries that are easy to write in Clojure. Yes, it's important to have these excellent utility libraries, but having those is just a function of time and the size of the growing community - nothing inherent to Python itself.
But then you start looking at these really, really powerful mature Java libraries like Joda, Lucene, Neo4j, Netty, Colt, LWJGL - and you realize that creating or adopting a simple idiomatic Clojure wrapper for your use case is going to be downright exciting and fun!
That plus clojures inherent concurrency support seems like a pretty awesome mix to me.
[1] I've used lots of python and some clojure but never done heavy numeric computation in either
Yep. This is what a beginner friend told me when we compared it to Java.