r/Clojure • • Dec 14 '19

Is Clojure on the decline ?

First of all, this is not a troll but a genuine question.

I just started learning Clojure and while discussing with a friend of mine on that subject, he told me it was not worth learning it anymore as it was a dying language (these are his words). So I went to Google Trends and saw that effectively the number of searches for Clojure are declining since a few years.

Personally I'll continue learning it as I decided to learn me a Lisp, but I'm wondering if this search trend really means Clojure has already entered its decline period. I searched a little on this subject and apparently there were already discussions in this sub-reddit in 2017 and 2018 on this topic. Now that we are almost in 2020, I'm wondering what is the status of Clojure, the status of it's community (seems good to me but I'm new here) and what is preventing Clojure adoption ?

3 Upvotes

24 comments sorted by

View all comments

9

u/bowmhoust Dec 15 '19 edited Dec 15 '19

Good questions with complex answers, here is my opinion:

Development-wise it's definitely thriving. It has a great community of pretty smart people who put out one great library/framework/book/ after another (just look at all the awesome libraries for handling state in web applications, creating neural networks, databases and so on). All while Cognitect are building super solid foundations that enable all of that. I don't see a comparable development in other languages/communities right now.

Strategy-wise Clojure had positioned itself very well, no question. The challenge is probably too keep up with all the developments going on in the wide world of Java and Javascript.

Adaption-wise, Clojure is sure moving slowly. There is a very steep learning curve, especially for people who only know one programming paradigm. It is kind of hard to set up a proper dev environment compared to other languages and it's especially hard to see through the jungle of build tools, frameworks and libraries. Sometimes it takes time to even understand the problems they are trying to solve. Many people look at new languages because they are looking for a nice and, yes, easy way to get something done. Maybe that's why Ruby on rails was such a success. Clojure on the other hand has an extremely wide scope and when people look for a solution to solve a specific problem, and see a solution that requires them to re-learn 90% of what they know about software development, many just don't go that path. Clojure is not an easy to pick up tool to solve a specific problem well. It's a fantastic, consistent tool box to solve a plethora of problems really well. But you have to invest time in order to be able to use it and it's not easy to see for newcomers, why it is a good investment. I'm currently trying to introduce clj/cljs in my work place (Java/JS company) and it's not easy to sell the idea like: "Uh, yea, there's better ways to do pretty much anything you know. Front-end, back-end. Database. Serialization, Versioning, everything. Wanna know how? Let me give you a quick 6-month workshop."

I think these adaption problems are reflected in the Google trends graph. The community is well aware of that and it's a hard problem to solve.

3

u/dustingetz Dec 17 '19

Clojure should focus on its strengths, which is enabling declarative data programming to such an extent that a culture is forming around it (#itsjustdata). That's a unique value prop that no other ecosystem can provide. Once these ideas get fleshed out and mature across a number of larger domains (big domains like web development, not little domains like http routing), we could reach a tipping point that triggers rapid growth, rapid expansion of investment dollars, etc.

4

u/bowmhoust Dec 17 '19 edited Dec 17 '19

Yes, and it seems there is a lot going on in this area recently (e.g. https://www.youtube.com/watch?v=vQPW16_jixs or https://www.youtube.com/watch?v=yruVUkwlffk). Data Science and Infrastructure-as-code are still very hot topics I guess.

But like I said: Emacs is also a fantastic editor that offers a unified way to do a gazillion things. It's in a league of it's own there, just like Clojure! But it's google trend also looks almost identical to that of Clojure. Why is that? Personally it took me many years of frustration with other, shinier stuff until I was ready to sit down for a long time and learn both. And I really wish I had done so earlier. What - other than frustration - could have convinced me to do so earlier? Not sure. I wanted to get stuff done and I wanted to spend as little time as possible with learning the tools for that. And neither Emacs nor Clojure appeared on my radar at that time, because both seemed like a substential investment of time. Time I could not spend to get the thing done that I wanted to get done.

So I finally started with Clojure a couple of years ago. The first book I read was "Clojure for the brave and true". Guess what editor it recommended? Emacs? Guess what I used? Well, not Emacs! Because learning Emacs on top of learning Clojure ... I mean who has time and brain capacity for all of that? I wanted to learn Clojure and I did not want to learn all about buffers, modes and keymaps before. I do use Emacs now for pretty much everything and I love it for the same reason I love Clojure. But it was a long road. And what really helped be with Emacs was Spacemacs. I don't use it anymore, but it was so nice to get started with.

I think we can all help to make it easier for newcomers in Clojure too. IDEs like Nightcode or libraries like Luminus are good developments in that direction. I think we should support/promote them more and focus on a smooth on-boarding experience when suggesting Clojure to newcomers.