News for hackers. Stuff that matters.
Re:Why did Clojure gain so much popularity? by hota_mazi on Tuesday April 23, 2019 @09:01AM (#19728145)
I think it's the other way around: Clojure gained more exposure than past Lisps because it runs on the JVM.

But it's still definitely niche and hardly used anywhere.

Re:Why did Clojure gain so much popularity? by brightball on Tuesday April 23, 2019 @09:31AM (#19728362)
I think this is accurate (in terms of exposure, not that it's hardly used). As soon as it was possible for other languages to run on the JVM, the huge amount of developers working around JVM infrastructure that didn't like the sometimes painful experience of working with Java, started looking at alternatives.

Groovy, Scala and Clojure were the early contenders that people were exploring and Clojure seems to have won a lot of mindshare.

The thing about Java isn't the language or the JVM it's the App Servers. Enterprises have invested heavily in the App Server infrastructure for deploying JVM based code from monitoring, training, etc.

Throwing all that away to use a non-JVM language is a REALLY hard sell. Those app servers are very well done.

Running on the JVM made using Clojure, Scala and Groovy possible in places where other languages wouldn't have been. In the early 2000s, it was Java and everything else.

The .NET ecosystem was awful at that time. The programming world was essentially, Java, Perl and PHP 4 in terms of enterprise usage. People said the words "Enterprise Java Beans" without a chuckle.

People were HUNGRY for better options.

Now you've got a solid C# ecosystem, Elixir, Go, a dominant Python ecosystem, significantly more polished PHP, K8's & Docker that make automating the infrastructure around all different languages consistent...it's just a different world.

Re:Why did Clojure gain so much popularity? by jarcane on Tuesday April 23, 2019 @11:28AM (#19729560)
In the early 2000s, it was Java and everything else.

It still kind of is in a lot of places. My country barely bothers to even teach anything else at a lot of schools, and enterprise is almost entirely dominated by the JVM.

You are exactly right. Having worked in Clojure and talked to a lot of other devs here and across Europe, most everyone got into Clojure or Scala because management and cultural complaints left them stuck with the JVM, and at least it beat building more EnterpriseWidgetFactoryGeneratorPatterns.

Oracle and Java are the new IBM, and just like IBM, no one's really happy with them but management yells if you use anything else.

Re:Why did Clojure gain so much popularity? by joshlemer on Tuesday April 23, 2019 @09:42AM (#19728447)
>Groovy, Scala and Clojure were the early contenders that people were exploring and Clojure seems to have won.

I love Clojure and hope it gains more mindshare, but I don't think this is accurate. Scala currently enjoys quite a lot more industry use than Clojure does, for instance there are currently roughly 15x as many postings mentioning Scala as there are Clojure (source: Linkedin.ca).

Re:Why did Clojure gain so much popularity? by cutler on Tuesday April 23, 2019 @12:09PM (#19729968)
Same in London. Search indeed.co.uk for "title:Clojure" and there are on average no more than 6 unique results. Outside London the rest of the UK shows next to nothing. About 6 years ago Clojure dojos and meetups were well-attended but even then the numbers were a fraction of the equivalent Scala events. Nowadays you're lucky to get a handful attendees at London Clojure events which is a real shame as it suggests Clojure is disappearing into a very small niche.
Re:Why did Clojure gain so much popularity? by ilikehurdles on Wednesday April 24, 2019 @08:25AM (#19737650)
Yes, it’s niche, but remove “title:”.
Re:Why did Clojure gain so much popularity? by yogthos on Tuesday April 23, 2019 @04:33PM (#19732547)
According to all the recent JVM surveys Clojure has roughly the same usage as Scala:

https://snyk.io/blog/jvm-ecosystem-report-2018

https://www.jetbrains.com/research/devecosystem-2018

It's entirely possible that companies tend to hire for Scala via Linkedin a lot more than for Clojure.

Re:Why did Clojure gain so much popularity? by brightball on Tuesday April 23, 2019 @09:48AM (#19728501)
You're right. I updated my comment.
Re:Why did Clojure gain so much popularity? by vorg on Tuesday April 23, 2019 @05:02PM (#19732834)
> As soon as it was possible for other languages to run on the JVM, the huge amount of developers working around JVM [...] started looking at alternatives

This is true, but...

> Groovy, Scala and Clojure were the early contenders that people were exploring

... Jython and BeanShell were much earlier than those three.

Jython, JRuby, Rhino, and Clojure are JVM languages that are syntactic copies of existing non-JVM languages, and it seems JVM developers didn't want these. Clojure has won within that group.

But the other group is what developers really wanted, i.e. languages with a Java-like syntax but with extra features added. Beanshell came first with dynamic typing. Then Apache Groovy cloned Beanshell and added closures, and Beanshell never kept up. Scala had all that but also had inferred static typing, which Groovy later added but was too late to the game to have much impact. Kotlin then came and merged the best features of Scala and Groovy, and became successful on Android.

Re:Why did Clojure gain so much popularity? by puredanger on Tuesday April 23, 2019 @09:36AM (#19728402)
Yeah, it's only used at weird startups like Walmart, Apple, Amazon, Cisco, etc.
Re:Why did Clojure gain so much popularity? by apetrovic on Tuesday April 23, 2019 @09:43AM (#19728464)
Used like "someone used their pet language for small side project" or used like "these companies would crush if Clojure compiler suddenly stopped working tomorrow"?
Re:Why did Clojure gain so much popularity? by ilikehurdles on Tuesday April 23, 2019 @10:05AM (#19728678)
I recall that Walmart Labs uses their clojure graphql server library in production, for some definition of "in production".
Re:Why did Clojure gain so much popularity? by Touche on Tuesday April 23, 2019 @09:39AM (#19728425)
To be fair, at companies that size basically every programming language is used somewhere, by some team.
Re:Why did Clojure gain so much popularity? by yogthos on Tuesday April 23, 2019 @09:42AM (#19728445)
However, they don't just use any language for large scale mission critical projects https://www.youtube.com/watch?v=av9Xi6CNqq4
Re:Why did Clojure gain so much popularity? by ken on Tuesday April 23, 2019 @09:14AM (#19728230)
ABCL runs on the JVM and is about the same age as Clojure, and isn’t anywhere near as popular.
Re:Why did Clojure gain so much popularity? by mschaef on Tuesday April 23, 2019 @09:28AM (#19728342)
A lot of credit for that goes to Rich Hickey - from what I can tell, he did a very successful job early on of 1) designing a Lisp with a unique combination of ideas and 2) publicizing it in a way that resonated with a people.
Re:Why did Clojure gain so much popularity? by mark_l_watson on Tuesday April 23, 2019 @11:28AM (#19729567)
I agree, Rich has done a great job promoting and maintaining Clojure. BTW, he used to use Common Lisp. I first got to know him (via email) because of his wonderful Java <--> Common Lisp bridge.

re: ABCL: this is really a great project. I don't use ABCL very often but when I need it I am grateful to the developers.

Re:Why did Clojure gain so much popularity? by iLemming on Friday May 03, 2019 @11:19PM (#19824203)
Not just that. Clojure actually has a lot of features. It's not just "yet another Lisp on JVM". here's an excerpt from Joker page (Clojure linter written in Go):

Protocols, records, structmaps, chunked seqs, transients, tagged literals, unchecked arithmetics, primitive arrays, custom data readers, transducers, validators and watch functions for vars and atoms, hierarchies, sorted maps and sets.

Clojurescript was much easier to make because it was written in Clojure, not Java. IMO if we ever see Clojure that is hosted on other runtimes it will be written in Clojure and probably still will have to depend on JVM.

Re:Why did Clojure gain so much popularity? by i_feel_great on Tuesday April 23, 2019 @09:21AM (#19728287)
Kawa (https://www.gnu.org/software/kawa/) is even better, and I only ever came across one other person who has ever heard of it.
Re:Why did Clojure gain so much popularity? by th0ma5 on Tuesday April 23, 2019 @12:07PM (#19729939)
Kawa was my first Lisp / Scheme and I dug it quite a bit. I wrote some wrappers for Processing called ProKawa which probably doesn't work with the latest Processing releases, but it was all very fun. Quil on Clojure is pretty good, and in general I'd say I've gotten more milage out of Clojure for sure.
Re:Why did Clojure gain so much popularity? by ken on Tuesday April 23, 2019 @09:41AM (#19728437)
Right, I'd forgotten about that! I used it as an extension language for a Java program once. I didn't think it even had a compiler, but that was 20 years ago, and it appears to have one now.
Re:Why did Clojure gain so much popularity? by brlewis on Tuesday April 23, 2019 @10:17AM (#19728797)
It has always been a compiler. The REPL works by compiling expressions when you type them.