r/Clojure • u/Azel4231 • Apr 29 '19
"Why did Clojure gain so much popularity?"
https://www.quora.com/Why-did-Clojure-gain-so-much-popularity/answer/Blake-Miller-740
u/alexdmiller Apr 29 '19
In March 2019 (just March alone) there were 852K downloads of the Clojure jar from Maven from 81K unique IPs. For a Lisp on the JVM, that is wildly popular imo.
2
u/bpiel Apr 30 '19
I've been curious about those numbers forever. Are they not publicly available, or maybe I'm bad at internet?
Specifically, I'd be very interested to see unique IPs over the last few years.
4
u/alexdmiller Apr 30 '19
They're not publicly available, just to the org owner on the repo. The central repo doesn't keep that much history so can't answer "last few years". I do have occasional snapshots, oldest is Jan 2017 which was ~43k unique ips for comparison. In general, they continue to go up.
3
u/bpiel Apr 30 '19
Thanks!
Extrapolating from those two points, my math tells me that's 34% growth per year. That's great and better than I expected. I'd love to get the updated number every year.
2
u/alexdmiller Apr 30 '19
I wouldn't extrapolate too precisely from those #s. While things go up over time, the graph does go up and down and looks weird at times, hard to say whether anomalies are in Maven or outside Maven.
27
u/yogthos Apr 29 '19
What I find interesting is that I've met a bunch of people who got into programming via Clojure. Even though Clojure primarily targets experienced devs, it's actually not that hard to learn enough to get things done with little to no programming experience. I also see the same pattern with co-op students where students from first and second year tend to pick it up faster than later years where they get more exposure to imperative/OOP mindset. Preconceptions about how programming should be done are the biggest barrier to learning and using Clojure effectively.
Given that, I think we should continue putting more effort as a community into making Clojure beginner friendly. Good news is that a lot of strides have been made in that direction in the past year. The error messages are actually getting good, initial setup is getting easier, documentation is improving. A lot more can be done, but things are steadily moving in the right direction.
27
Apr 29 '19
I think people in the Clojure community are focusing too much on the need to make the language accessible to newcomers, and failing instead to make the Clojure ecosystem accessible to newcomers.
It's much harder to understand how to deploy a production-hardened web site, for instance, than it is to understand how to implement some algorithms or do some IO. The community seems hell bent on helping people do Clojure hello worlds, when the real barrier for most people is how to do actual real world things like: implement server side rendering, do code splitting, safely implement security and auth, use external javascript and react components in my site, etc.
12
u/yogthos Apr 29 '19
I've been doing precisely that with Luminus for years. Here are detailed deployment docs describing different types of deployment options. Is there something that's missing in your opinion?
8
Apr 29 '19 edited Apr 29 '19
Oh I'm familiar with Luminus, and thank you for it, else I probably wouldn't be using Clojure at all. But, sure, off the top of my head (and from my comment) can you show me where in your docs you show how to implement SSR with reframe, or perform code splitting, or use javascript externs or react components in my reframe app? There is some mention of auth, but should I be using buddy? Friend?
If I should use buddy, or friend, how can I know how reliable these libraries are? Many Clojure libraries seem to produce little to no documentation, and there is far less chatter about them on the web than their counterparts in more popular languages. How can I know they are reliable? Or even still in use or development? With an issue like security, I sure want to know that what I'm using is approved by a community of people who know better than me.
Also, as a beginner I would have concerns like: Are Luminus' library recommendations up to date? Are the patterns used and libraries chosen employing community-backed standards?
I could try using something like shadow cljs, because it seems to make a lot of these issues easier, but then I have to introduce yet another build tool into this seemingly fractured ecosystem.
How about the book recommended on the luminus web site? Is it current and using up to date recommendations? I think not, right? Where are other books like it? Nobody is writing these.
10
u/yogthos Apr 29 '19
Thanks, glad to hear it's helping out. The whole goal behind Luminus is to provide sensible defaults so that people don't have to worry about stuff like whether they should use friend or buddy. Luminus defaults to buddy, and it provides documentation on how to get basic tasks accomplished using it. Ideally, beginners should be able to go to the Luminus docs, see the examples for using it and go from there. I tried to cover all the major aspects of a typical web application, and I have links to the official docs for the libraries being used.
Regarding stuff like code splitting, I would love to get help to expand the documentation. It's all on GitHub in Markdown format, so anybody can go in and make a PR with additional docs. Over the years this has practically never happened though.
My team uses Luminus for our projects at work, so the libraries and patterns are being kept up to date. The book recommended on the site is still relevant, and a great way to get started with Clojure web ecosystem. There have been a few changes in Luminus since it's been published, but nothing has fundamentally changed since its publication. I'm also working on the third edition at the moment which will bring it up to date with the latest Luminus stack.
I think the whole community backed standard thing is not worth worrying about at this point. Luminus provides a straight forward way to get an app up and running in production, and it has been used in anger. There are other valid ways to make an app using things like Duct or Yada, but if you're new and you don't know the trade offs then it's not something to worry about in my opinion.
Unfortunately, the reality is that I only have so many hours in a day and I have a full time job to pay the bills. So I can only do so much myself in practice. If people want to make Clojure ecosystem better feel free to reach on Clojurians slack, and we can talk about how Luminus can be improved. I would really love to be able to provide a more comprehensive solution, but I need help to do that.
4
Apr 29 '19
I have no complaints whatsoever about Luminus or its documentation. Everything I've said here has been meant as feedback to the Clojure community as a whole about how it feels to approach Clojure for the first time. On the contrary I think Luminus is just what Clojure needs more of.
4
u/yogthos Apr 29 '19
Right, and I completely agree with what you're saying there. I really would love to get more community buy in around Luminus or any other template for that matter. We really need to have a standardized and approachable way for ramping up new users in my opinion.
5
u/lordmyd Apr 29 '19
This is the essence of the Clojure ecosystem problem, ie. the community doesn't get behind crucial projects like Luminus but just leaves it up to you to maintain. What happens if, for any reason, you're not in a position to develop Luminus? The Clojure community seems to be blinded by this black and white attitude to library composition vs frameworks. It's not a zero sum game.
3
u/yogthos Apr 30 '19
I think it's an artifact of Clojure being primarily used by experienced developers who don't need others to package things for them. At the same time we tend to develop opinions on how things should be done as we gain experience. Currently, there is no general consensus on what the default stack should look like.
Meanwhile, newcomers are typically looking for a batteries included solution to get a feel for what developing a web app with Clojure feels like. Asking somebody in that situation to roll their own stack is completely unrealistic in my opinion.
And I completely agree that too many widely used projects in Clojure ecosystem have a very low bus factor.
1
u/myguidingstar Apr 30 '19
Other books? Have you looked at this one? http://book.fulcrologic.com/
1
Apr 30 '19
I have seen that, but thanks. I'm hesitant to lock my understanding into one specific library whose future and level of community acceptance doesn't seem proven. Is fulcro that widely used?
I wish there were a book that leveraged composition of widely used libraries (the Clojure way?) to build a web project from start to finish, including all of the considerations a potential employer would want me to understand about building a production-ready web site capable of delivering at high volume. I'd want to know how to automate deployment, handle security, optimize for efficient loading/rendering on both server and client side, and implement testing and monitoring, etc and so on -- and all this in addition to the hello world of making some pixels move around on a page.
1
u/myguidingstar May 05 '19
Of course given the fact that Reagent and Re-frame was created long before Fulcro, they're way more popular. And by being a full-stack framework instead of frontend-only, Fulcro scares away a lot of inexperienced people. Anyway, Fulcro's holistic approach makes many hard problems become trivial. You will learn a lot by just playing with it, instead of "locking my understanding" in one "proven" library ;) Once you get there, chances are you will find Re-frame ad-hoc and repetitive.
1
May 05 '19
Cool thanks I'll check it out then
1
u/myguidingstar May 05 '19
it will be a bit tough given the amount you will learn, but #fulcro slack channel is very helpful.
3
u/Asrijaal Apr 29 '19
This. Clojure itself caught my interest last year. Being a developer based in Java/PHP/JS stuff I thought: let’s do something new. Grasping the basics of the language is quiet easy after you get comfortable with code style. And here I get lost. How is “real” stuff done?! Let’s look into some popular clojure based projects: tbh I was more confused after looking at clojure projects on github and my journey ended there. But maybe it’s just me and I was too lazy to dig deeper.
1
u/senatorpjt Apr 30 '19 edited Dec 18 '24
smart bag gray salt tan tie scary handle skirt racial
This post was mass deleted and anonymized with Redact
0
u/lion_rouge Apr 29 '19
A good step in that direction would be to make Leiningen capable of running plain .clj files out of the box without creating projects
4
Apr 29 '19
it's actually not that hard to learn
No but it is pretty hard to master.
With that much expressiveness, it can be quite hard to figure out what approach to take to build thing correctly
1
u/againstmethod Apr 29 '19
I agree - it might be easy for trivial programs, but for anything with structure im betting they struggle.
13
u/dustingetz Apr 29 '19
Convincing people to change the way they do something is like pushing boulders uphill. Clojure's sweet spot, IMO is in two places: 1) companies on the margin who have to compete with businesses many times their size, so 10x advantages are a matter of life or death; 2) if Clojure is so good it should be able to bring programming to people for whom it is otherwise out of reach (for example like Python has now reached grad students in non-CS domains). If these benefits are real, that is an urgent burning need for huge groups of people who have no other options.
2
u/asiergaldos Apr 29 '19
I agree.
Clojure is just another programming language, but "10 times better than second best".
1
u/againstmethod Apr 29 '19
Smaller companies bid smaller jobs, and work in vertical markets, that are unattractive to their larger counterparts-- or they are sitting on some real invention that the competition doesn't have.
Using Clojure is not going to let you go head to head with a company 10x your size. They might spend as much on R+D as your entire company's revenue.
1
u/lion_rouge Apr 29 '19
And they have their own smart people some of which do know LISP.
1
u/againstmethod Apr 29 '19
TBH i'm not sold that Clojure/lisp provides a generic improvement in productivity. It's situational at best.
3
Apr 29 '19
I've noticed a death blow to a language being popular (not useful, or interesting, just popular) is it being popular in academia. I look back and noticed how when I was in school nothing about javascript and barely any topics on C# (especially web) and that is what I went on to do at the start of my career and could find white a fee jobs in that language. I think by Rich putting his money where his mouth is also showed that there's more than "mindshare" behind the push to grow the language and technologies surrounding it. Maybe it's simply a matter of funding. Put a lot of money and effort behind something to build products for businesses or the public and people start to pay attention.
1
u/joinr May 01 '19
As a counterpoint, c, java, fortan, matlab did ok (although their popularity on academia may have been driven by industry popularity, I'm unsure).. Also ada (for niche/mandated environs) in some curricula.
6
u/phiware Apr 29 '19
Brilliant!