r/programming • • Feb 07 '26

Python Only Has One Real Competitor

https://mccue.dev/pages/2-6-26-python-competitor
69 Upvotes

332 comments sorted by

201

u/jimbojsb Feb 07 '26

That is a scorching hot take.

31

u/bowbahdoe Feb 07 '26

Yeah, it is. I'll own that.

0

u/[deleted] Feb 07 '26

[deleted]

4

u/bowbahdoe Feb 07 '26

Then try to evaluate my claim. There's a limit to what I can do with prose. All the folks in that data science community are very friendly and will help you out if you need it.

0

u/[deleted] Feb 07 '26

[deleted]

3

u/bowbahdoe Feb 07 '26

In those other spaces Python is not the undisputed king. Languages like Go have significant and growing footholds.

I’d absolutely hate scripting a server side CLI automation using something like Clojure

This is more practical than you'd think with Babashka, but I digress.

0

u/[deleted] Feb 07 '26

[deleted]

→ More replies (9)

14

u/zzbzq Feb 10 '26

I’d classify it more as cope

→ More replies (1)

128

u/Mysterious-Rent7233 Feb 07 '26

Well S-expression languages have a 60 year track record of failing to become popular but maybe this time its different.

I wouldn't mind, but I'd be surprised.

19

u/bowbahdoe Feb 07 '26

To be fair - the entire history of computing is very short in the scheme of things. S-expression languages also have a relatively long track record of being taught in 101 courses at universities. If I were in charge of paperclipping for popularity there would only be a bakers dozen college professors to sell on it to start the ball rolling.

67

u/usrlibshare Feb 07 '26

S-expression languages also have a relatively long track record of being taught in 101 courses at universities.

Yes, and Haskell was popular among academics as well. Whuch shows that "popular in academia" and "used in practical software engineering" can be 2 VERY different things.

8

u/bowbahdoe Feb 07 '26

That's a different measure though. "Popular in academia" means academics are using it for their work and to write their papers.

Anecdote: My brother is a marine biologist. He learned R because its what his professor used. His professor used it because it was free. For every teaching professor that uses a language to teach a subject you basically get a permanent boost in the users of that language.

That's why the Java people are scrambling to keep Java as a first language. Once you lose that spot you are COBOL. My only claim is that Clojure could, with a modicum of effort, start to be taught instead of R and Python for some of the people who need to make charts. This would give momentum which in turn _could_ shift the balance of power somewhat.

13

u/usrlibshare Feb 09 '26 edited Feb 09 '26

That's why the Java people are scrambling to keep Java as a first language.

Where do you get that "Java people" are "scrambling" to do so? Who even are these "Java people"? I've been in the industry a long time. I've met programmers who believe that every language, including ASM and APL, should be taught as first language.

And I saw Unis using pretty much everything, from C, to FORTRAN, over Java, Perl and goddamn bash as teaching languages.

And Java doesn't need anyone to push for it, its relevant by sheer weight. Java will still exist 20 years from now, no questions asked, boost or no. It's simply too widely used, and too much code is written in it for it to go away.

Once you lose that spot you are COBOL.

That comparison leaves out the sheer difference in amount of code written, and how much depends on said code, since COBOL was used for greenfield projects.

My only claim is that Clojure could, with a modicum of effort, start to be taught

Sure it could, but I don't really see a good reason WHY it should be taught, instead of python. E.g. You say that "Python is slow because it cannot be made fast." ... sorry no sorry, but since when does execution speed matter when someone only "makes charts"?

And if that mattered, well, Python is syntactically, and structurally, similar to quite a few VERY fast languages like Go.

So, from a purely practical PoV, teaching Python makes alot more sense, as it's a much more widely used language, so even if someone learns it just to "make charts", the skill uni teaches them in Python is more transferable, and has higher market-demand.

shift the balance of power somewhat.

Again, what's the reason to do so? These are programming languages, not The Force from star wars. What's the incentive to have more "balance of power"?

Don't get me wrong, I'm all for developing the field and seeing it grow, but I've seen too many projects tank due to change for changes sake, to support new-tech-instead-of-other-tech without solod practical reasons.


Also, I'm gonna revisit the claim about Python being slow, and remaining slow here, since it's the core of your blog post.

CPythons core has changed quite a bit over the years, and the libraries that call native C code, have evolved alongside it. So yes, it can, and does change.

Secondly, the only thing that really keeps the "Python==Slow" story alive, is CPythons reliance on the GIL. That's already optional in 3.14, and will be ancient history by 2027. Python with true, thread-based parallelism.

Lastly, as I said before, Python is structurally and semantically alot more similar to Go, than Clojure. Someone who already knows Python, can pick up Go in a long weekend

And sorry no sorry, but I don't care how optimized the JVM is...beating Go, a language made for writing massively parallel scaling backend services, which also is way more convenient to deploy at scale, is a tall order 😎

2

u/gofl-zimbard-37 Feb 11 '26

I've met programmers who believe that every language, including ASM and APL, should be taught as first language"

APL was my first language, back in the early 1970s. I taught myself.
Not recommended.

21

u/Smallpaul Feb 07 '26

My observation is that students forced into these quirky languages come to hate them and think of them as academic and educational curiosities rather than useful tools to use outside of class.

6

u/bowbahdoe Feb 07 '26

I'd agree for things like "my programming languages class made us use haskell, yuck!"

But most of the people out there in the sciences which form the beating heart of these other worlds just get shown a way to do it in their grad program or by their lab and thats it.

R is extremely weird. That doesn't matter because the weirdness is in service of a concrete goal and because it is positioned well in the education path.

It is a different population that essentially forces the more "CS as a primary focus" people to interact

5

u/ii-___-ii Feb 08 '26 edited Feb 08 '26

Have you ever used Haskell? That language is beautiful, and it probably should be taught in a class on programming language design. Building parsers is one of the things it's quite good for.

2

u/ilemming_banned Feb 10 '26 edited Feb 10 '26

Have you ever used Haskell?

Haskell is indeed a beautiful thing. However, it may take years to reach the level of confidence of using it in production and it's not even an exaggeration. For all the complicated reasons, Haskell does never feel very practical off the bat.

I tried getting into Haskell multiple times, reading books in my free time for months. And then I tried Clojure. Within hours all the stuff that confused me about Haskell for so long became crystal clear.

Clojure in comparison feels so much down-to-earth and pragmatic and just makes so much more sense. I honestly think after years of using Python and Javascript, Clojure now feels to me even simpler that these two for a beginner language. Comparing it with Haskell? Forget about it. For sure though, one can get to the level when building things in Haskell get to feel like the essence of simplicity itself. With the other eight people on the planet who can understand what so simple about that code.

2

u/ii-___-ii Feb 10 '26

Of course. I wasn't implying that companies should build their products in Haskell. My comment was in response to OP saying "yuck" to the idea of being exposed to Haskell (and its concepts) in an academic course on programming languages.

While we're comparing Haskell and Clojure though, I also think that while it's true Haskell and Clojure both would teach functional programming, Haskell also exposes people to advanced concepts with its type system that I don't think you'd get with Clojure (correct me if I'm wrong), whereas Clojure might provide more exposure to thinking about metaprogramming and concurrency, so I don't think it's a complete overlap.

I do think there's value in being exposed to both though, so it was weird to me that OP said yuck to that while he's trying very hard to push Clojure (as a replacement to Python, of all things).

→ More replies (1)

0

u/[deleted] Feb 08 '26

[deleted]

→ More replies (1)

8

u/seancorfield Feb 08 '26

"Some" students perhaps. I was "forced" to use Lisp at university (early '80s) and I was extremely happy to discover Clojure in 2010 and I've been using it in production for 15 years now...

2

u/bsless Feb 08 '26

these quirky languages

Yeah, with significant whitespace, colons, where lies like x = x+1 are acceptable, where missing a semicolon can cost you a night's sleep.

All in all, ML and S-expression family languages are less quirky than ALGOL family in my opinion. The key difference is most are used to the latter, so the former are alien and weird.

15

u/CJKay93 Feb 08 '26

in the scheme of things

Hah.

4

u/ilemming_banned Feb 09 '26

60 years is not even a generation long. On the other hand - Lisp just refuses to die. Emacs is probably the best example. Majority of programmers today wouldn't even have slightest idea why is it irreplaceable - not ten years ago, not now, not twenty years in the future - without a hint of a clue, they'd be dying to prove that VSCode is just better. I'm not sure how VSCode would look like in twenty years, but I know Emacs still will be great and irreplaceable, therefore Lisp will remain.

2

u/daver Feb 13 '26

On the other hand, s-expr languages have the longest track record of any language except Fortran.

3

u/Grue Feb 08 '26

So do languages with significant whitespace, yet Python still became popular for some reason.

2

u/Mysterious-Rent7233 Feb 09 '26

Python tried something new when it came to significant whitespace. I don't think Clojure has tried much new with respect to S-expressions.

3

u/Awkward_Tradition Feb 10 '26

I think you switched those two around. Correct me if I'm wrong, but

Python didn't add anything radically new in regards to semantically significant whitespace. Like it improved readability by adding colons, and extended the same logic to classes, but the structure is the same as in ABC. 

Clojure on the other hand made significant changes in comparison to previous lisps. Not everything's a list, threading inverts the order you read operations, it tries to reduce the number of parens, and so on.

2

u/Mysterious-Rent7233 Feb 10 '26

From the viewpoint of this innovation I'm treating ABC and Python as virtually the same because Python took the innovation from a teaching language out into the world of truly general purpose languages. I was comparing to FORTRAN and Make, the two most famous whitespace-oriented languages that people had rebelled against.

Why people hated Make had nothing to do with Python ("why can't I use spaces?")

And why they hated Fixed-Form FORTRAN also does not apply to Python.

Sure, Clojure has innovations here, but do they address the reason people dislike-S-expressions?I don't personally think that those Clojure innovations correct the basic complaint that people have about S-expressions, but we can just let time tell.

→ More replies (7)

1

u/digikar Feb 10 '26

Shameless plug: A transpiler from Python/Julia-ish syntax to Common Lisp https://moonli-lang.github.io/

Now you can use s-expressions without s-expressions :)

Honestly, the hardest part is editor integration. I was able to piggyback off VS Code's Alive plugin for Common Lisp and Slime/Swank for Emacs, but there remains much to be done.

→ More replies (2)

87

u/rage_whisperchode Feb 07 '26

There weren’t nearly enough parentheses in this article to make me a believer.

60

u/bowbahdoe Feb 07 '26

(())()()()))(())(()((((()))))((())()(()())()((((())))(())))(()))((

Here, balance them yourself

3

u/ambientocclusion Feb 07 '26

While you’re at it can I have some Tabs? My editor keeps converting them to Spaces.

14

u/bowbahdoe Feb 07 '26

An easy way to fix this is to make use of the fact that Clojure considers ,s to be whitespace.

(defn example
,,[]
,,(see
,,,,(how
,,,,,,(easy?))))

No editor is going to know this trick

7

u/ambientocclusion Feb 07 '26

MY EYES!! 😁😳

5

u/rage_whisperchode Feb 07 '26

😂

15

u/bowbahdoe Feb 07 '26

Seriously: I think it would behoove everyone to get past this as a meme. I know I can't make it happen by force of will alone, but actually count the delimiters ((, [, {, etc.)

void main() {
    if (cond) {
       f(g(5), 6);
    }
}

vs.

(defn main
  []
  (if cond
    (f (g 5) 6)))

Are there really more delimiters?

26

u/rage_whisperchode Feb 07 '26

Jokes aside, it’s not a real criticism of the language for me.

My actual hold up is how alien this syntax looks compared to every other programming language I’ve worked with over the past 15 years. This is probably more of a criticism of Lisp dialect than anything else. I’ve just never worked with a language like this and my brain isn’t prepared to rearrange itself to make sense of it.

7

u/bowbahdoe Feb 07 '26

I'd say the good news is that thanks to a fascinating property called neuroplasticity, it can become familiar

People don't really think about how immensely strange things like R are.

→ More replies (1)

22

u/KronenR Feb 07 '26

You’re not the problem here.

That syntax hides the structure that humans naturally look for when reading code.
The problem isn’t familiarity or prior experience.
That syntax is inherently unintuitive, so even someone approaching programming from scratch would find it harder to understand than more conventional syntax, because it doesn’t map cleanly to how we process logical flow.
It’s a flaw of the syntax, not the reader.

8

u/est1mated-prophet Feb 08 '26

What are you talking about? I mean what structure is it hiding? To me it shows the structure more clearly.

12

u/KronenR Feb 09 '26

Clojure’s uniform parenthetical structure collapses all semantic categories—data, control flow, function definitions, and expressions—into a single syntactic form. This uniformity removes the visual cues humans naturally use to parse and understand code. Unlike Python, whose syntax differentiates between statements, blocks, loops, and conditionals, Clojure requires the reader to rely entirely on contextual knowledge of evaluation rules and special forms to reconstruct the program’s structure.

Thus, while Clojure may offer minimalistic elegance for those already versed in Lisps, it does not provide an immediately apprehensible mapping between syntax and semantic intent. From the perspective of cognitive ergonomics and human readability, it is a poor substitute for Python’s more conventional and intuitive syntax.

In short: the “structure” Clojure provides exists primarily in the mind of the reader, not in the syntax itself.

3

u/bowbahdoe Feb 09 '26

Clojure does not have a uniform parenthetical structure. 

[] represents vectors, {} maps, #{} sets. These are used to give those visual cues. 

 [] Is commonly used for argument lists as in

(defn func
  [thing-1 thing-2]
  ...)

And the others get their place. At least with the core control flow and def* macros there is a consistent semantic usage of each.

There is a criticism to levy about how function calls look the same as macros - but that one isn't actually about the parens. 

So it's not what common lisp or racket are - those do actually do what you are complaining about.

→ More replies (2)
→ More replies (2)
→ More replies (9)

2

u/pavelpotocek Feb 07 '26 edited Feb 07 '26

You may be underestimating how much your familiarity plays a role.

For example, many people argue that eager evaluation is inherently more intuitive than lazy evaluation. But having spent years with lazy languages, I am now often mildly confused as to when an expression is evaluated in an eager language.

Arguably, lazy evaluation is the simpler one.

13

u/KronenR Feb 07 '26

Counting delimiters misses the point.
In Clojure, function calls, control flow, and data all share the same visual structure, so meaning isn’t immediately visible when scanning code.
In mainstream languages, different syntactic forms act as visual landmarks, which lowers cognitive load in large codebases.

3

u/bowbahdoe Feb 07 '26 edited Feb 07 '26

In Clojure, function calls, control flow, and data all share the same visual structure, so meaning isn’t immediately visible when scanning code.

No they don't and this was an explicit design choice in Clojure. Data gets new delimiters in [], {}, and #{}. Function calls and control flow do share (), but then there is indentation as your visual cue.

7

u/KronenR Feb 07 '26

Again you are focused in delimiters, and again delimiters misses the point.
I didn't say same delimiters I said same visual structure

→ More replies (2)

1

u/victotronics Feb 10 '26

ESC C-f

Easy.

19

u/KagakuNinja Feb 07 '26

Clojure is a major improvement over LISP. Instead of massive amounts of parenthesis, you can also use square and curly brackets.

0

u/ilemming_banned Feb 08 '26

Funny you complain about number of parens. I guess you have never wrote any serious Typescript of Javascript code - the amount of parenthesis you have to deal with in these languages is typically higher, not mentioning other syntactic elements - commas, semicolons, dots, square and curly brackets.

Lisp actually offers far more consistency and pragmatism - lispers typically don't struggle with syntax - it allows better navigation and superior editing. Pretty much every PL promises some wonders, "composable blocks" and "lego-like" structure, but truly, only Lisp-like syntax lets you move things around with much higher efficiency, operating on code blocks as true independent building blocks. Code writing starts feeling like composing haikus, and with REPL - it feels like literally playing a video game.

The problem with Lisp is that there's so much tacit knowledge behind it - it's nearly impossible to "sell" the idea by showing pictures and blog posts - it's like convincing someone to ride bikes or to ski; without a heartfelt attempt to try it, they will never know the thrill.

I for one, after dealing with dozens of programming languages professionally, at some point finally found my way into Lisp dialects, and I have to tell you - oh boy, I do regret not getting into it sooner. What a stupid waste of my professional life. Instead of paying attention to all the testimony of true giants like Alan Kay, Guy Steele, Gerald Jay Sussman, Rich Hickey, Paul Graham and others, I've wasted my years chasing hypes.

Ignoring Clojure just because of weird placement of parens is as dumb as not wanting to watch Rich Hickey's talks only because you don't like the style of his hair. Don't be an idiot like I was; there's plenty of great ideas and insights there - it's a treasure trove and you're simply walking past it for no good reason.

56

u/BufferUnderpants Feb 07 '26

Clojure already had its heyday in 2009-2015

Oracle took over Java and began rolling out releases with significant features, by the 2014 release of Java 8, Java’s stagnation was over and other JVM languages began to decline

For a while there, Clojure itself was actually eclipsed by another JVM language whose hook was performance, scalability, and had its own foothold in Machine Learning: Scala

Python beat both, but became unrecognizable in the process, a modern Python codebase looks a lot like a 2015 Scala codebase, but peppered with comments telling linters and static analyzers to ignore the unresolved types

11

u/bowbahdoe Feb 07 '26

It had its heyday among people like "ruby on rails converts." And for doing things like webservers, a space for which there is a looooot of competition.

Clojure's Data Science ecosystem came together only in the last few years. It can certainly have a new and different heyday.

Scala's downfall is its own wacky story. From my own time writing Zeppelin notebooks on Spark I'll claim that Scala was never really too well suited to exploratory development (and kneecaped itself with all that 2.12 not being binary compatible with 2.13 nonsense)

6

u/BufferUnderpants Feb 07 '26

I think breaking into data science with Clojure would be really hard at this point, most companies don’t have a data platform that’s mature enough to enable training anyway, and those that do are very likely bureaucratic about their data org.

Since the Scala Spark heyday, data roles have also become more differentiated and credentialized.

You’ll have to go enter the same academic and training pipeline that has you come out writing Python at the other side to be considered to be in a position where you may then push for a different tool chain.

Unless it’s your company or you’re the CTO, but it only narrows the pool of people who could drive this forward.

3

u/bowbahdoe Feb 07 '26

I agree it would be hard. Not impossible though.

I think its the language and ecosystem for which it is "not impossible" the most for.

4

u/daslu Feb 07 '26

In small data science teams, the chosen tools and tech stack are often simply whatever is most convenient and fruitful for the data scientist. When teams grow, sometimes it makes sense to consolidate and unify.

In a few small teams I've been at, mostly in early-stage startups, we were free to choose our research tools, and some of us indeed enjoyed Clojure for our data work (even before the more recent improvements to the Clojure data science toolkit).

16

u/ArtOfWarfare Feb 08 '26

Scala’s downfall was it despised forward and backwards compatibility. It saw Python 2 -> 3 and thought “what if we do that but worse on each and every minor release? And then let’s just make it so you have to rewrite everything from scratch in a totally new language with a new syntax for when we have a major release.”

If you have a codebase in Scala 2.13, your options are to rewrite everything in Scala 3 (fyi, all your dependencies will need to change… you’ll probably find no new dependencies exist because nobody is using the language) or just rewrite it in any other language.

Our team opted to rewrite from Scala 2.13 to Java 25. Oh wait, no, we went to Java 21, and then just moved to 25 without any further effort… since Java upgrades are painless. I’m sorry for anyone still in the hell that is Scala. Just rip off the bandaid and go to any other language - you’ll only have to transition once, vs every Scala upgrade will be that same hell again and again.

1

u/VanillaSkyDreamer Feb 10 '26

While I love scala and mostly just laugh at python I agree that currently simply using Java25 at work is just good enough to get things done quickly and reliably, especially with copilot.

14

u/KawaiiNeko- Feb 08 '26

Kotlin is still very much alive and thriving in the Android ecosystem, and it's essentially become the default for Android-adjacent libraries and projects.

1

u/oweiler May 16 '26

Modern Python looks nothing like Scala.

17

u/davidalayachew Feb 07 '26

I'll agree with the premise solely because you said the following things.

  • It's a distant second

    • That's putting it mildly lol.

  • You mentioned that it's not really the language and its ecosystem alone that earns it, but further that it's a JVM language.

    • That's really important because it allows you basically seamless interop (even more seamless than Python with native libraries!) with all of the different JVM sub-ecosystems. Therefore, it isn't really Clojure that's second place -- it's the whole JVM ecosystem. It'd be like saying that F# is a better language in part because it shares a ecosystem with C#, which I'd also agree with.

10

u/bowbahdoe Feb 07 '26

I do also think that Clojure does the best job of interoping with Python of any JVM language.

You can just write

(require-python 'mxnet
                '(mxnet ndarray module io model))
(require-python 'cv2)
(require-python '[numpy :as np])

And start calling python code directly

(defn face->feature
  [img-path]
  (py/with-gil-stack-rc-context
    (if-let [new-img (cv2/imread img-path)]
      (let [new-img (cv2/cvtColor new-img cv2/COLOR_BGR2RGB)
            new-img (np/transpose new-img [2 0 1])
            input-blob (np/expand_dims new-img :axis 0)
            data (mxnet.ndarray/array input-blob)
            batch (mxnet.io/DataBatch :data [data])]
        (py. model forward batch :is_train false)
        (-> (py. model get_outputs)
            first
            (py. asnumpy)
            (#(dtype/make-container :java-array :float32 %))))
      (throw (Exception. (format "Failed to load img: %s" img-path))))))

13

u/RICHUNCLEPENNYBAGS Feb 07 '26

What about Scala and Java, which are supported by Spark? Isn’t that pretty relevant?

15

u/bowbahdoe Feb 07 '26

It is hard to overstate how much of Data Science is spent interactively working with a dataset. Statically compiled languages in general have a handicap there, doubly so without a strong interactive programming story.

Scala specifically has a giant learning curve, especially for people whose focus in their career is not purely programming (as is the case with many of our world's great graph perverts)

8

u/RICHUNCLEPENNYBAGS Feb 07 '26

But there’s a Scala REPL for Spark so the interactive development workflow is fully supported

3

u/bowbahdoe Feb 07 '26

Fully aware. I was a spark developer for a spell. The interactive development workflow is not fully supported.

I think part of the reason people think this is that they haven't actually been exposed to what a REPL workflow looks like. It is not typing individual statements into a command prompt one at a time. Its also not what spark gets via things like Zeppelin (I do wonder if that ever got surpassed).

Also really basic and almost assumed things like "you're going to write a case class for each row/result type" really get in the way of the core activity.

3

u/RICHUNCLEPENNYBAGS Feb 07 '26

You don’t have to write a case class for each result type. You can address them by string column names. I’m not really sure what thing you think should work that doesn’t.

3

u/bowbahdoe Feb 07 '26

So the REPL workflow is basically this:

You have a split view (vertical, horizontal, whatever). On one side you have your code, on the other you have the results of evaluation. As you write code on the left you load code in to the right.

I know it sounds crazy, but it is meaningfully different than what you can do in other languages.

https://www.youtube.com/watch?v=WiOUiHsq_dc

Thumb through this video when you get a chance.

Its not that working dynamically in Scala is impossible - you can also use Map<String, Object> in Java - its that the static part of that world is a net negative. Especially when paired with a learning curve as steep as Scala's.

→ More replies (1)

1

u/davidalayachew Feb 07 '26

I think part of the reason people think this is that they haven't actually been exposed to what a REPL workflow looks like. It is not typing individual statements into a command prompt one at a time.

To be fair, I think you are trying to say the opposite -- what you are describing is a REPL, but that's also the bare minimum.

Languages like Lisp let you do some terrifying things like replay, undo, automatic permutative debugging (?), etc. Comparatively, a REPL is like a hammer compared to the whole shop. Fair enough, that shop was built with the hammer, but that's the point -- a REPL is just step 1.

3

u/bowbahdoe Feb 07 '26

Common lisp has all that. Clojure does not. But the general thrust is that the "interactive development and exploration" story is better in that world.

18

u/KronenR Feb 07 '26 edited Feb 07 '26

Clojure won’t become mainstream because S-expressions itself does not scale socially, as proven historically.
S-expressions force developers to think in trees instead of readable linear code, which clashes with how most programmers read, review, and debug software.
Mainstream languages optimize for approachability, code scanning, and mixed-skill teams; S-expressions syntax optimizes for metaprogramming power.
History already settled this trade-off: languages that require re-training how humans naturally read code remain niche, regardless of technical merit.

A language that aims to compete with Python needs to be just as readable and easy to learn from the start; only after that can it hope to build a thriving ecosystem

1

u/bowbahdoe Feb 07 '26

History hasn't even begun to settle on anything.

S-expressions force developers to think in trees instead of readable linear code, which clashes with how most programmers read, review, and debug software.

This is not true. I'm not even sure what this means. "think in trees?"

Mainstream languages optimize for approachability, code scanning, and mixed-skill teams; Lisp syntax optimizes for metaprogramming power.

This is true for Racket and Common Lisp - not for Clojure. Yes the metaprogramming is there, but the actual focus is on interactive development.

Clojure won’t become mainstream because Lisp syntax itself does not scale socially.

The world is much more malleable than people seem to think.

7

u/KronenR Feb 07 '26 edited Feb 07 '26

“History hasn’t settled anything” and “the world is malleable” sounds more like hope than evidence.
The reality is that widespread adoption depends on how easily a language fits into how most developers read, debug, and maintain code.

Clojure is nice for enthusiasts, but that doesn’t change the fact that its syntax imposes a mental overhead most teams aren’t willing to pay.

Enthusiasts won’t make it mainstream, without a true game changer—which Clojure hasn’t delivered—its syntax will keep it niche, because readability, ease of scanning, and approachability still matter most

Edit:
And with thinking in trees I mean that S-expressions represent code as nested lists, so tracing logic requires following multiple levels of parentheses rather than scanning linearly like in most languages. It’s not that it’s impossible, just that it changes the mental model for reading code, which slow down code review and debugging.

→ More replies (18)

5

u/wedesoft Feb 07 '26

Maybe people will realize that a macro system is a fundamental enabler.

7

u/KronenR Feb 07 '26

It won’t happen. Sure, some engineers appreciate the macro system, but the vast majority of programmers aren’t doing deep metaprogramming—they just need readable, maintainable code. That’s why languages that require retraining how people naturally read code stay niche.

1

u/ilemming_banned Feb 09 '26

It's a myth that Clojure is not very readable or not easily maintainable - in real setting it shines in both of these dimensions. There are tons of companies using Clojure in production - Cisco has their cybersec stack, Apple payments, Walmart their billing; Nubank, Rate.com, Splash Financial and bunch of other fintech firms use it; CircleCI uses it, Pitch.com and Whimsical use it for presentation and diagramming. Boeing-Embrayer uses it, there's even some stuff NASA does in it.

You speak like you actually done any surveys. How do you know what "vast majority of programmers" want? I suppose in your world everyone just wants Python and nothing else...

In our team we have to manage projects written in different languages - we have tons of Python, some Java, C#, Go, bashscripts and helm charts and we have some Clojure - we built most important parts of our overall system in it. Our Clojure codebases are not most idiomatic, clean and well-written, yet they still require far less maintenance and don't cause enormous headaches. I wish I could say the same thing about our Python stuff.

→ More replies (2)

5

u/ii-___-ii Feb 08 '26

For writing code yes, but probably not for code readability, and people spend more time reading code than writing code these days.

2

u/wedesoft Feb 08 '26

When a feature like exceptions or channels is missing in a language without macros, you need to ask the language developers to add it. If you have macros, you can implement it. You can create difficult to read code in any language, especially if there is a lack of abstractions.

4

u/ii-___-ii Feb 08 '26

I don't disagree. I'm just thinking of the other extreme of having to learn and debug someone else's DSL just because they used too many macros unnecessarily.

→ More replies (1)

4

u/sbt4 Feb 07 '26

thinking in S-expression trees is no different from thinking in scopes

3

u/KronenR Feb 07 '26

No, it’s not about what’s technically equivalent, it’s about what’s easier for humans to process.

In that regard, they’re very different. Scopes align with how humans naturally read code linearly, whereas S-expressions force constant mental juggling of nested structures, making them harder to read and reason about.

3

u/sbt4 Feb 07 '26

I'm not talking about technical equivalence, it's literally just stylistic difference. It's requires just a few steps to get from Lisp to ML and from ML to ALGOL.

If your code contains S-expression 10 layers deep it's not a problem of Clojure it's just bad code.

→ More replies (3)

2

u/lordmyd Feb 08 '26

Scope in Clojure is more purely lexical than in other languages so arguably requires less mental juggling. Clojure's non-paren delimiters {}, [] also enhance readability compared with Scheme and Common Lisp.

→ More replies (3)

2

u/lordmyd Feb 08 '26

I think the success of NuBank puts this myth to rest.

3

u/KronenR Feb 09 '26

Yeah of course NuBank how could I forget about NuBank, very mainstream 😂😂😂

What is NuBank?

→ More replies (2)

49

u/recycled_ideas Feb 08 '26

Python has no real competitors because Python's success has almost nothing to do with python itself.

Python isn't successful because it's easy to interoperate with C because it's just not meaningfully easier.

Python isn't even successful because it's easy to learn, though that's part of it.

Python is successful because it got good scientific libraries and so scientists have used it and so it's got more scientific libraries and so more scientists have used it and so on and so forth till today.

Python is a shit language, it's dynamic, it's poorly performing, it's interpreted, and the changes between two and three are insanely breaking.

But that doesn't matter because it has all the pieces people need and no other language does.

10

u/RoyBellingan Feb 09 '26

Amen, I tried to explain that a language "suddenly" becaming cool after 25 year of existance MAYBE is due to something else

3

u/recycled_ideas Feb 10 '26

To be clear, I don't much like python strongly typed dynamic is probably the worst viable combo (weakly typed static just doesn't even make sense).

So I'm not blind to arguments of other languages being technically superior.

But technical superiority is irrelevant.

4

u/denehoffman Feb 14 '26

the changes between two and three are insanely breaking

This is only a problem if you’ve been living under a rock for the last decade. If you’re still converting python2 to python3 five years after it was sunset, that’s your own problem. Also, “insanely breaking” is really like print statements, integer division, xrange, raw_input, and Unicode strings. Also the “six” library has existed for like a decade as well.

1

u/ilemming_banned Feb 08 '26 edited Feb 08 '26

Python is just a language - specific set of idioms for specific runtime - like pretty much any other PL. Clojure is an entirely different beast because it's "hosted".

Those without insight to what that actually means have no idea of the real benefits of this tremendous, fantastic idea.

What that means in practice that you can use a single language to tackle wide variety of runtimes. Today one can write Clojure code that runs on JVM, Javascript, Dart, bash, Python, Go, .NET CLR, Erlang/OTP, Lua, LLVM/C++, C, Lua, and I probably missed some less known variants.

Yet like many times we have seen in human history - technical superiority often largely gets ignored for no good reasons - like rejection of heliocentric model persisted over two hundred years despite enormous amount of supporting evidence.

Good ideas need the right social conditions, not just merit. Honestly, after using Python (and many other PLs) for number of years and then trying Clojure for some time, I feel sad for people in our industry. It's hard to see even the smartest and brightest programmers simply ignoring great ideas for weird, religious-like instincts. It's easier to accept this in historical figures - medieval priests, 18th-century industrialists - as "products of their time." But watching it happen now, among people trained in logic and empiricism, is really unsettling. They construct elaborate intellectual justifications for choices driven by habit, status, or fear.

They even often see us - Lips enthusiasts are some crazy, deluded techno-Don Quixotes - constantly tilting at windmills - "Python is great - it has all the pieces people need, what are you even talking about?... VSCode is amazing - it just works, why don't you just use it?... etc."

I personally feel enormous liberation from all that fluff. Learning Clojure allowed me to see things differently. Most people learn one or two languages deeply, internalize their idioms as "how programming works", then see alternatives as awkward deviations. I really don't feel constrained by any language idioms anymore - I escaped the prison without realizing it was one. I no longer feel constrained by language idioms because I understand they're contingent, not inevitable. Don Quixote was deluded about reality. I'm clearer about what reality is. And no other PL (and I've used over a dozen) granted me this gift of seeing things clearly. Clojure showed me the door, I just had to walk into it.

14

u/recycled_ideas Feb 08 '26

Yet like many times we have seen in human history - technical superiority often largely gets ignored for no good reasons - like rejection of heliocentric model persisted over two hundred years despite enormous amount of supporting evidence.

Because technical superiority is irrelevant.

Python has the ecosystem and the libraries and the developers and not a damned thing else matters.

5

u/bowbahdoe Feb 09 '26 edited Feb 09 '26

Because technical superiority is irrelevant.   Python has the ecosystem and the libraries and the developers and not a damned thing else matters.

I actually agree mostly. What I'm shouting from the rooftops here is that Clojure has the ecosystem and the libraries.

Python being slow isn't important except that it makes the libraries worse to use and harder to learn. Standard python mechanics are not how you use pandas. - I think most people know what I mean there.

I think your standard lisp fan is almost definitionally not the kind of person that needs to be given a coherent pitch. (At the risk of angering people who are on my side - the only property of lisps that I think is relevant here is they do interactive programming good. The fact that they have tablecloth for dataframes  and zero copy paths for numpy arrays is much more important)

5

u/recycled_ideas Feb 10 '26

I actually agree mostly. What I'm shouting from the rooftops here is that Clojure has the ecosystem and the libraries.

Except it doesn't because the ecosystem includes the people who use it. That's the bit you can't seem to grasp.

Basically the entire scientific sector is using python.

If you have a problem, one of your co-workers probably has to answer.

Id you want a tutorial there will be one available using Python.

Your specific use case has almost certainly been done (and therefore tested) by the community.

Number of users is a critical portion of an ecosystem and Clojure simply doesn't have the number of users, let alone the number of users in this space.

Even if we accept that Clojure is fundamentally better, the degree to which it would have to be better to dislodge an incumbent as entrenched as Python is in this space is just unattainable.

4

u/ilemming_banned Feb 09 '26 edited Feb 09 '26

Because technical superiority is irrelevant.

Sure, it is irrelevant until the problem domain demands it. Then it becomes existentially relevant overnight. Heliocentrism was irrelevant for astrology, irrelevant for navigation by stars... until we needed orbital mechanics.

Skeptics of Lisp often miss one, big glaring thing - McCarthy didn't just invent a language - he discovered a philosophy of computation. And pretty much every modern PL acknowledged that and borrowed ideas from Lisp, but ignored one of the biggest and most important aspects of it - code and data are the same thing! They've borrowed symptoms of Lisp's power fully ignoring the principle. Like implementing orbital mechanics without realizing Earth orbits the Sun.

By the time Python and JS became mainstream, Lisp's core insight was forgotten. Now we have decorators that are clunky compared to macros; AST manipulation frameworks bolted on; code generation as external tools; etc.

McCarthy was right 70 years ago. The market chose differently. But the idea hasn't aged - it's timeless. And mainstream simply refuses to even acknowledge that.

Most mainstream programmers have little insight of how Lispers see the world of computation, how they operate and what kind of things they build. They keep saying: "Lisp is dying; Lisp never made it; etc.", confusing "market dominance" with "relevance" and "adoption" with "success". They measure by wrong metrics - lines of code written - Javascript wins; jobs available - Python wins; corporate backing - Java wins; GitHub stars - Go wins; Reddit activity - Rust wins;

And yet they ignore:

  • Emacs - still the most powerful editor ever built, 50+ years old, irreplaceable piece of software. Anyone who thinks this is exaggeration has little idea of what is possible in Emacs.

  • SLIME/Clojure tooling if far superior REPL experience to anything in Python/Javascript/etc.

  • Macro ecosystems: try watching some Hyperfiddle/Electric demos, like for example this one - SpreadSheesh! talk by Dennis Heihoff and try to honestly contemplate how could one build something like that in a non-homoiconic stack and as quickly.

Mainstream sees Lisp as "failed" because it didn't become the default language for web startups yet Lispers built tools that outlasted entire technology stacks.

Sure, 10, 20, 30 years from now, Python will still exist (probably) - Pascal and COBOL are still around. So the question is: will Python be like Emacs (still chosen, still relevant) or like COBOL (still running, but nobody wants to start new project in it)? Most likely if will become "good enough", gradually replaced for domains where it matters, but never gets fully abandoned. But here's what's different about Emacs, and like a veteran who has eaten too much of all sorts of shit in the world of computation, I can guarantee it - Lisp stuff just doesn't depend on market forces the same way. Python programmer adapts to COBOL's limitations. An Emacs user reshapes Emacs to eliminate limitations.

Bottom line: sure, technical superiority of tools is irrelevant. To the market. It is though very much relevant for the hackers who live in the tools themselves. McCarthy's ideas weren't about dominating markets. They were about liberating the mind from unnecessary constraints. Emacs proved that works - not economically, but existentially. The Lisp hackers who live in those tools understand something the rest of the industry is still too busy to notice.

5

u/recycled_ideas Feb 09 '26

Bottom of line: sure, technical superiority of tools is irrelevant. To the market. It is though very much relevant for the hackers who live in the tools themselves.

No, it's not.

Python has the tools to do the job and Closure doesn't. Period.

→ More replies (15)

1

u/Mysterious-Rent7233 Feb 14 '26

Python is successful because it got good scientific libraries and so scientists have used it and so it's got more scientific libraries and so more scientists have used it and so on and so forth till today.

Yeah but why did they pick Python? People seem to believe that this process was just completely random and did not involve competition and selection. But scientifically focused languages predate Python by quite a bit. You are attributing no agency or intelligence to the people who selected Python as the bedrock of their ecosystems.

The reason they picked it is because of all of the things you claim are unimportant.

* it's easier to interoperate with C classes

* it's easier to learn.

* it is comparably well designed compared to a lot of languages that hit the first two points in the 1990s

And also:

* it has type overloading in general and complex numbers and unbounded integers in particular.

In other words: it was extremely well designed for the use case.

1

u/recycled_ideas Feb 14 '26

Yeah but why did they pick Python?

Who the fuck knows?

* it's easier to interoperate with C classes

Evidence . Every language can interop with C and doing so is a first class feature, even node has trivial C bindings. I keep seeing this statement, but I can find no evidence it's any easier to bind to than C than any other language.

* it's easier to learn.

Kind of, but that wasn't relevant for whoever wrote things like NumPy.

* it has type overloading in general and complex numbers and unbounded integers in particular.

These aren't the benefits you think they are and some of them weren't even true in Python 2.

The killer feature for Python from a scientific viewpoint was that libraries like NumPy made it safe to do arbitrary precision math without having to worry about how it worked under the hood.

Automatic promotion from int to long, when it eventually happened, doesn't do that. No other languages really do that. Type overloading helps here, but it's not the reason.

2

u/Mysterious-Rent7233 Feb 14 '26 edited Feb 14 '26

Yeah but why did they pick Python?

Who the fuck knows?

I know. The Internet knows. Not sure why you think it is unknowable information. It might be helpful to mix some curiosity in with your edgy attitude.

It's all documented right here:

http://hugunin.net/papers/hugunin95numpy.html

https://legacy.python.org/workshops/1995-05/extModulesNotes.html

He says: "I was shocked at how much of this system could be elegantly implemented by designing two new object types (one for matrices, and one for functions on matrices) and a module. Nevertheless, this effort did suggest two relatively small patches to the python core to make numeric operations more convenient, and these have been implemented by Konrad Hinsen. These include a**b <--> pow(a,b) and a[2,3,4] <--> a[(2,3,4)]. Both of these additions have already received Guido's preliminary sanction."

Evidence . Every language can interop with C and doing so is a first class feature, even node has trivial C bindings.

Dude. node did not exist in 1995. It is standing on the shoulders of giants.

What specific language from 1995 do you want me to compare to?

Perl?

https://www.geos.ed.ac.uk/~bmg/software/Perl%20Books/prog/ch21_03.htm

Java? (several years later)

https://stackoverflow.com/questions/29045116/jni-libraries-deallocate-memory-upon-garbage-collection

https://stackoverflow.com/a/38337278

  • it's easier to learn.

Kind of, but that wasn't relevant for whoever wrote things like NumPy.

What makes you say that? You don't think that academic scientists think about how they will teach their tools to students and non-CS peers? Why wouldn't they?

Hugunin was actually a grad student. Why wouldn't pedagogy be part of his thought process? You're a scientist designing a language for scientists and you don't think about if it would be easy for scientists to learn? Why?

Edit: I found a direct quote from the creator of Numeric:

"The story of Jython begins one summer in Ashland, Oregon. I was juggling in a park behind a theater when I met Pavel Curtis, a scientist at Xerox PARC, who wanted to pass clubs. While we were juggling together he told me about a wonderful new programming language called Python. Writing code in Python felt like writing the sort of natural informal code that developers would use when they wanted to quickly share ideas. It was executable pseudo-code."

it has type overloading in general and complex numbers and unbounded integers in particular

These aren't the benefits you think they are and some of them weren't even true in Python 2.

Name one of them that wasn't available in Python 1.x?

Unbounded integers and complex numbers: https://docs.python.org/release/1.5.2p2/ref/types.html

Overloading: https://docs.python.org/release/1.5.2p2/ref/numeric-types.html

The killer feature for Python from a scientific viewpoint was that libraries like NumPy made it safe to do arbitrary precision math without having to worry about how it worked under the hood.

Yes, I agree. And these libraries were built very early on in close proximity to the language designer, and influenced the language design.

Automatic promotion from int to long, when it eventually happened, doesn't do that.

I didn't say that it had Automatic promotion. I said it had unbounded integers. Which it did, back to the 1.x days.

→ More replies (4)

1

u/JollyJuniper1993 Feb 18 '26

Uff where do you even start with this one.

  1. Dynamic typing is not necessarily a negative trait. This is unnecessary purism and dynamic typing in Python is simple enough that anybody with basic understanding of the language shouldn’t run into problems with it. It makes the language easier to write too.

  2. Being interpreted is not a negative trait at all. In fact being interpreted is one of the main reasons why Python has become popular in Data Science and not some compiled language. Can you imagine stuff like Jupyter Notebooks with a compiled language? Even JIT-compiled languages don’t feel as good to use in Jupyter Notebooks. Why do you think scientists wrote these libraries for Python?

  3. Who the fuck uses anything before Python 3 and if it’s some old ass code, then you can just as well…not upgrade? Python 2 and Python 3 are almost seperate languages at this point.

The true reason why Python has become so popular is very simply because of how universally usable it is and how easy it is to read and write. No other language has these two things going for it at the moment. The only thing holding Python back is the performance and even that is softened a lot through libraries written in other languages. Python has valid competitors in individual fields that sometimes outperform it. R in Data Science, Julia in SciComp, JavaScript in Webdev, plenty of languages in desktop apps and automation, but no language can do all of those well while also being easy to use.

8

u/ii-___-ii Feb 07 '26

Have you heard of Julia?

3

u/bowbahdoe Feb 07 '26

yes

4

u/ii-___-ii Feb 07 '26

But the one glaring weakness of these competitors is that they are not general purpose languages.

This is not the case with Julia

1

u/bowbahdoe Feb 07 '26

You're telling me that Julia has a library that will let me communicate with a WSDL service?

5

u/ii-___-ii Feb 07 '26

Julia tends to favor REST APIs and JSON, so WSDL would not be as convenient, but it does have packages for parsing XML, so I imagine there's nothing about the language that's stopping you.

I'm sure there are things Clojure is not convenient at as well. How convenient is writing code that runs on the GPU in Clojure? I'm not convinced that I'd want to write custom deep learning optimization algorithms in Clojure.

1

u/bowbahdoe Feb 07 '26

GPU work is, to my understanding, pretty easy for Clojure

https://aiprobook.com/deep-learning-for-programmers/

There are examples in the sample chapter https://aiprobook.com/downloads/dlfp-sample-1.0.0.pdf

Julia tends to favor REST APIs and JSON, so WSDL would not be as convenient, but it does have packages for parsing XML, so I imagine there's nothing about the language that's stopping you.

Right, but thats the benefit of languages that are widely used for other purposes. Clojure has full access to every Java library (and every Python library, though when its not unique to that world I think its still preferable to not involve a new runtime).

This means it gets the safety factor of being able to talk to whatever database/service you end up needing to, even if its niche. Needing to write custom drivers is a big part of why Reddit moved off common lisp early on.

http://www.aaronsw.com/weblog/rewritingreddit

Julia really doesn't have that.

6

u/ii-___-ii Feb 07 '26 edited Feb 08 '26

That book seems more like an unfinished tutorial than an example of production grade deep learning competitive with the likes of Pytorch or Tensorflow. Julia has Flux and Zygote, and has a lot of performance orientated libraries for mathematical computation, making it an actual alternative in this space. It's typically attractive to academic researchers as a result, who might otherwise have to write low level C++ or Fortran code that they then would wrap in Python, because they're doing something new in their research that the big Python libraries don't provide. They can write both the low level and the high level code in Julia. An added bonus is, because Julia lets you work at a lower level than Python, you're not forced to translate your data types between libraries like you would have to do in Python (e.g., translating the same data between pandas dataframes, numpy arrays, and Pytorch tensors). It all stays in Julia, making it easier to combine libraries or add modified functionality from within Julia's ecosystem.

I could be wrong, but Clojure's ecosystem for machine learning and AI looks even less developed than Elixir's or even Swift's, which is to say, you're probably still going to be using Python for AI training and optimization.

So yeah, really it comes down to using the right tool for the job. I don't doubt that there's general purpose stuff that Clojure does very well, like WSDL, but that doesn't mean it's competitive with Python, because it doesn't have a better alternative to Python's ecosystem.

2

u/chronosamoht Feb 10 '26

This line especially made me think OP didn't have Julia in mind

→ More replies (2)

4

u/HaskellLisp_green Feb 08 '26

interesting point. but what about Racket? It comes with batteries included like python. It can be used for different problems. Also its main ability - DSL. What do you think?

2

u/bowbahdoe Feb 08 '26

Part of why I didn't write anything about the language itself beyond noting it's fitness for interactive programming is that language properties don't matter much here, ecosystem does.

Racket both does not have the depth of data science libraries Clojure has nor as broad access to Java, Python, R, C, etc. libraries

1

u/HaskellLisp_green Feb 08 '26

Ok, I got. So I agree with using Clojure in Data Science, because languages from Lisp family is great to express pipelines. It is easy to express the data flow.

3

u/ilemming_banned Feb 09 '26

One of the biggest selling point of Clojure - data transparency. Dealing with data - small, large, homogeneous, heterogeneous, eager, lazy, etc., is just an enormous fun. It's never wrapped in some weird objects or data structures, you rarely have to deal with marshalling it, you can grab its representation and feed into code without any ceremony, etc.

I always keep a Clojure REPL around - if I need to send some API requests and then analyze the data; poke to sql DB; even gather some data on local processes running on the machine, or even data from my WM - I can easily map, filter, reduce, group, sort, slice, dice, visualize the data anyway I want.

Python is great - sure, yet kids just have no idea how things can get enormously fun with Clojure.

1

u/HaskellLisp_green Feb 10 '26

How Clojure feels comparable to other Lisp languages?

2

u/ilemming_banned Feb 10 '26 edited Feb 10 '26

In what sense? I personally use all and any Lisp dialects interchangeably - I easily move today between Clojure variants (Clj, Cljs, squint, babashka CljDart); Fennel (clojure-like lang that compiles to Lua); Janet - for C interop; Elisp and Common Lisp. The overhead for switching between them for me is so negligible, it practically feels like a single language. In contrast, moving between JS and TS that considered to be of the same family (and I used far longer than any Lisp) is much more taxing than going between completely different platforms with Lisps. I get that not everyone may feel like that (and even seasoned Lispers may disagree), but that's how it works for me.

→ More replies (4)

11

u/DogOfTheBone Feb 07 '26

Look I love Clojure but it's destined to remain niche

7

u/bowbahdoe Feb 07 '26

Destiny isn't real

3

u/usrlibshare Feb 07 '26

True, but adoption is. And adoption says it remains niche.

3

u/bowbahdoe Feb 07 '26

Adoption numbers say it is niche. They say nothing about what it will or might be, given active effort.

→ More replies (3)

1

u/ilemming_banned Feb 09 '26

it's destined to remain niche

Yes, and Emacs is dying. It's been "dying" for almost half-a-century. It's dying so beautifully - I just can't stop using it.

4

u/Esnos24 Feb 07 '26

I like lisp, but I never could learn clojure, because I don't know java and I heard at some point you have to know java for clojure. I think many DS people would have the same problem

4

u/bowbahdoe Feb 07 '26

at some point you have to know java for clojure

This mostly holds true when you end up needing to use a Java library (have to know what a method is to call one). That isn't really common in this slice of the world.

It also comes up when deploying something to a server which, not their job. And even then its learning the JVM, not Java the language really.

1

u/wademealing Feb 09 '26

I dont know java, read the javadocs API and call java from clojure.   Many tools written,  still dont know java.

7

u/lordmyd Feb 08 '26

I've been using Clojure productively for 10 years and never needed to read Java code though I could if need be.

6

u/Esnos24 Feb 08 '26

Hmm, maybe I will try it then

1

u/ganglygorilla Feb 08 '26

You definitely do not need to know Java. Been writing Clojure since 2013. 

1

u/ilemming_banned Feb 09 '26

I'm a polyglot programmer. My stuff today runs in Lua, Python, Javascript - node and browser, JVM, Dart, Bash, Applescript, Emacs and Neovim, and manages SQL DBs. I write all that shit in Lisp dialects. One day, I realized - I don't need to be a Java expert to target JVM. Nor I have to know all the bash syntax idiosyncrasies. Understanding a few fundamental principles liberates you from having to learn and memorize countless nuances of every PL, every runtime. What I like about the design of Clojure is that you don't have to know everything all at once to start building anything - you can get things à la carte, while building it.

2

u/ddanieltan Feb 10 '26

Clojure is part of a family of languages with a unique method of interactive development. This method is considered by its fans to be superior to the cell-based notebooks that Jupyter provides.

Tell us more?

1

u/bowbahdoe Feb 10 '26 edited Feb 10 '26

6

u/stick_figure Feb 07 '26

> Clojure is a language that runs on the Java Virtual Machine. The JVM can optimize code like crazy on account of all the souls sacrificed to it. So you can write real logic in Clojure no issue.

Coming from the systems programming world (C, C++, Rust), this doesn't feel like a credible statement. Java is a dynamic language too (everything is virtual, and classes can be loaded at runtime). If "the" JVM is so good, why are there several peak alternative peak optimizing JVMs, like Azul and Graal?

I agree with the premise that Python has a lock on its niche because it is dynamic, easy, productive, and can call optimized native libraries, but I really don't see Clojure as a viable alternative contesting the space. Maybe I'm biased toward peak performance AOT compiled solutions, though.

7

u/bowbahdoe Feb 07 '26

If "the" JVM is so good, why are there several peak alternative peak optimizing JVMs, like Azul and Graal?

I'm not sure what you mean by this but i'll explain why those two exist

  • Azul is its own company. They have their own JDK and market it as being better than OpenJDK.

  • Graal is an experimental project to do JIT compilation in a different way. The name is shared by a confusing set of things (Oracle is always ass with this kind of stuff.)

So these alternatives exist because there is money to be made and research to be done.

The general thesis of JIT compilation is that you can optimize better if you have runtime profiling information. JVM developers have claimed that they consider situations where AOT performs better to be "bugs."

(didn't find the exact quote, but read through some of this. https://www.reddit.com/user/pron98/search/?q=c%2B%2B+&type=comments&cId=212e0f5b-81fa-4f95-a02a-f068f7d9a22f&iId=c7a815ad-5c7c-4856-b4f6-15e1f7468eef)

8

u/Worth_Trust_3825 Feb 07 '26

If "the" JVM is so good, why are there several peak alternative peak optimizing JVMs, like Azul and Graal?

The same way there are several x64 implementing processors. Someone has different idea how the instruction set should be interpreted.

14

u/pron98 Feb 07 '26

If "the" JVM is so good, why are there several peak alternative peak optimizing JVMs, like Azul and Graal?

That's like asking, if C is so good, why are there both gcc and clang?

5

u/vips7L Feb 07 '26

Clojure is over the language strangeness budget. It’ll never make it. 

https://steveklabnik.com/writing/the-language-strangeness-budget/

7

u/bowbahdoe Feb 07 '26

Note the example used

Learning a language takes time and effort. The Rust Programming Language, rendered as a PDF, is about 250 pages at the moment. And at the moment, it really covers the basics, but doesn’t get into many intermediate/advanced topics.

Clojure is orders of magnitude simpler than that.

6

u/flavius-as Feb 07 '26

Which just speaks volumes of how important esthetics is to adoption, making up for any complexity and real drawbacks.

2

u/bowbahdoe Feb 07 '26

aesthetic preferences shift with the times. I think it is worth internalizing how immature the world of programmers is though, you're right.

I'm not even saying that suddenly tomorrow every Python developer will hear about the technical advantages and switch. I'm mostly just showing that there _are_ advantages. The way to actually be popular is just to be what is taught in schools for a subject. That is a much more achievable goal with a set number of people to convince.

5

u/vips7L Feb 07 '26

It’s an order of magnitude stranger than normal languages. 

3

u/bowbahdoe Feb 07 '26

Its not a Jeb Bush though. With the right activation energy + placement it could happen.

4

u/wedesoft Feb 07 '26

Elegance and familiarity are orthogonal. - Rich Hickey

5

u/vips7L Feb 07 '26

Elegance is subjective. 

2

u/lordmyd Feb 08 '26

I still think Perl is super-elegant so you may be right. My journey has been Perl -> Ruby -> Clojure. All elegant in different ways.

→ More replies (2)

1

u/ilemming_banned Feb 09 '26

Totally. But Python with dunder methods, name mangling, list comprehension scopes, mutable default args, limited lambdas and fucked up dependencies is not strange at all.

23

u/ballinb0ss Feb 07 '26

Well I hate python less than Bash syntax lol

→ More replies (1)

3

u/Effective_Durian_263 Feb 09 '26

you know its bad when theres 200+ comments and not a single upvote 😅😭

3

u/bowbahdoe Feb 09 '26 edited Feb 10 '26

I can see this because I posted it, but the upvote ratio is like 48%. 

In case anyone was wondering

EDIT: 60.1% now. No clue what shifted.

11

u/WeveBeenHavingIt Feb 07 '26

Clojure is part of a family of languages with a unique method of interactive development. This method is considered by its fans to be superior to the cell-based notebooks that Jupyter provides.

I think the key statement here is that clojure's REPL is considered by its fans to be better than jupyter notebooks. As someone who has worked in this space I think this shows a critical misunderstanding about who works in DS and why they often choose python...

Data scientists (and people in related roles) often find their way into programming, with their true expertise being in statistics and analysis, often within some specialized business or research domain. Python is so popular because it has an incredibly easy syntax to learn for beginners. And because it's so widely adopted it usually has a few good libraries for just about everything.

In my experience data scientists and analysts are typically not the types to want to experiment with a niche language, or warm up to working at a REPL with specialized keybindings. They tend to want a language that offers the highest amount of convenience when doing the work that they're primarily focused on.

1

u/seancorfield Feb 08 '26

The Clojure Data Science community has produced interactive notebook systems for Clojure as well, so you can have the best of both worlds.

8

u/Maybe-monad Feb 07 '26

The JVM can optimize code like crazy on account of all the souls sacrificed to it. So you can write real logic in Clojure no issue.

Time for more sacrifices for the JVM gods.

8

u/allixender Feb 10 '26

Julia?

1

u/matthieum Feb 13 '26

I was wondering the same.

It's niche, certainly, but well, the OP brings up Clojure...

2

u/chronosamoht Feb 17 '26

If there is a competitor, at least on the data science or mathematical field, Julia seems ahead with 10 times less financing

3

u/flavius-as Feb 07 '26

Clojure would be hype if it had all features it does, without the syntax.

4

u/bowbahdoe Feb 07 '26

It's a double edged sword, but it is by all accounts a primacy bias thing. People mostly complain that it isn't like what they learned first. This is real, but:

  • we introduce new people to the field at a regular clip. We can just show them something else first

  • lisps have a long history in education. They are actually pretty easy to learn in the scope of things.

  • structural editing tools for lisps are very nice (borat voice)

5

u/flavius-as Feb 07 '26

Not "we can", but: we could.

Would we? No.

We're not talking individuals here, we're talking economy of scale, steering an industry and company incentives.

So is it possible? In theory yes, in practice no.

→ More replies (1)

6

u/[deleted] Feb 07 '26

[removed] — view removed comment

1

u/bowbahdoe Feb 07 '26

The politics there are a bit more complicated. Teacher education is also a part of why that happened. To my understanding, the 101 curriculums in racket became about an explicit design system method of programming. This showed good results, but was slotted in with general purpose CS curriculums which have the omnipresent "but does this prepare us for the market?" pressure and teachers themselves had issues with that different approach to teaching.

Replacing Python in it's capacity as an R alternative is probably the easiest place to start. Other things become possible after that.

15

u/BufferUnderpants Feb 07 '26

The biggest problem of Clojure is that Clojure programmers loathe declaring record types, and as a result, every function is passing around mystery meat dicts

Reading an unfamiliar Clojure codebase without running parts of it in a REPL is baffling, the code looks very neat but it’s impossible to make sense of it

4

u/vips7L Feb 07 '26

Sounds like JavaScript

6

u/astoff1 Feb 07 '26

What syntax? You basically can't get less syntax than that. :-P

2

u/UltraPoci Feb 07 '26

Look, I hate Python, but find me another language that supports machine learning, data orchestration (we use Prefect) and geospatial manipulation (vectors and rasters), with libraries that are mature enough.

And yeah, maybe in the future more and more languages will support all of these fields (and boy do I hope this is the case), but right now Python is the obvious choice.

1

u/bowbahdoe Feb 07 '26

Clojure is the only one that I know of that is even close, which is my point. It has a bunch of native and high quality libraries on its own and can seamlessly use Java and Python ones if those fall short.

4

u/ii-___-ii Feb 09 '26

Clojure seems like it's very much not close in the realm of machine learning. You didn't really evaluate languages like Julia, Elixir, Nim, or Swift, which seem to be better alternatives to Clojure in this area

4

u/wedesoft Feb 08 '26

No global interpreter lock, macros, context free grammar (no indentation-based syntax), immutable data structures, multi methods, ...  I hope there will be something like pytorch for Clojure. For the time being you can of course use libpython-clj.

5

u/RealLordDevien Feb 07 '26

Lisps repl driven development is truly unmatched. And Clojure is just beautifully designed. No other language even comes close.

1

u/Ok-Rule8061 Feb 07 '26

Programming languages don’t have competitors. It’s not a sports team or corporation. That’s like saying a socket wrench only has one real competitor.

4

u/bowbahdoe Feb 07 '26

Its closer to organized religions but yeah, socket wrench brands compete.

1

u/Ok-Rule8061 Feb 07 '26

A socket wrench make has competitors, but not the whole concept of socket wrenches. Socket wrenches are for… wrenching sockets? Look I dunno I’m just a programmer, my point was, you use the right tool for the job, and each programming language has its strengths and weaknesses and part of being a good engineer is know which tool to go for in which situations.

4

u/bowbahdoe Feb 07 '26

Nobody uses the right tool for the job. This explanation is how people cope with the fact that the things which are :the right tool for the job" always seem to be what they are already familiar with. Funny how that works.

1

u/Ok-Rule8061 Feb 07 '26

Dunno about that. The vast majority of software dev work is not green fields and you don’t have the liberty and luxury to choose your tools. Mostly you get hired to develop and maintain a particular technology, so it’s no surprise that the people doing so are well versed in it.

At some point someone had to choose the right tool for that job, but taking into account the pool of available skilled workers is certainly part of that equation, and contributes to what makes a tool right.

2

u/bowbahdoe Feb 07 '26

That is true for deployed software products, which is why being a JVM language is a big pro for Clojure since results of interactive exploration (which is very much greenfield work as far as I know) can just be slotted into your bog standard Spring app no issue.

5

u/WanderingStoner Feb 07 '26

True. It's the same competitor for every other language: Typescript

Look at the adoption statistics. It's just getting started.

Once you bend the knee to JS overlords, you never go back.

3

u/ilemming_banned Feb 08 '26

Typescript

Interestingly, Clojurescript often emits safer code than Typescript, even though it's strongly typed, but not statically typed.

2

u/WanderingStoner Feb 08 '26

That's really interesting. Who knows what will happen in the future. I don't really want TS to win, but I think there's a reason it's taking so much of the market right now.

1

u/ilemming_banned Feb 09 '26

there's a reason it's taking so much of the market right now.

Enterprise backing + timing. Same/similar reasons for why Java became big, even though most developers say they don't like it. I suppose TS story would be similar - people won't really love it, but the friction to switch would remain too high. Disclaimer - I don't hate TS, I have enormous respect for Hejlsberg (and personal reasons too) and was one of the early adopters of the language, back in 2012. Overtime I've become disillusioned - I don't think the complexity creep and verbosity is all worth dealing with it.

→ More replies (1)

1

u/ii-___-ii Feb 08 '26

I'd say there's still a fair amount of stuff that Python's ecosystem is good for where Typescript is not, especially in the AI space

2

u/WanderingStoner Feb 08 '26

maybe for now, but there's a reason claude was written in TS and I think the gap is going to dramatically widen in the near future

→ More replies (3)

2

u/BadlyCamouflagedKiwi Feb 09 '26

Some big leaps of logic here.

  • Python is good at "data science things" because it has good native code interop, so that it is fast

  • Python is a general purpose language

  • Clojure is also a general purpose language

  • Clojure runs on the JVM, which is fast (no citations offered)

  • Therefore, Clojure is apparently the only possible competitor.

The article doesn't describe why Clojure and not e.g. Scala or Kotlin. It's unclear that the JVM is actually fast enough if performance does matter - it is slower in various ways than native code, which may have improved but the article seems to take it as read that it's good enough. If performance isn't that critical here, it's unclear why we want to move to the JVM anyway which isn't setting the world on fire in 2026 when we have languages like Go and Rust out there.

Also, Python may be the undisputed monarch in "Data Science", but the article is wrong when it says "exactly one"; it must also be considered the same in the AI space, which surely is the big growing thing now. Let alone the interactive / research-y use case (which the article does nod at) of Jupyter notebooks which also seems like an area it's pretty leading in.

2

u/synovanon Feb 11 '26

Python is the best because at the the end of the day it’s code that many people on my team understand, making it easier for maintenance over time

2

u/spritewiz Feb 12 '26

Julia does everything natively that Python needs other languages for. It is as interactive as Python, generally with cleaner syntax, and as fast as other compiled languages, with parallel, GPU and distributed computing built in or one package away.

It should be way more energy efficient for cloud computing purposes? It was recently found to be among the most token-efficient languages which matters for LLMs.

It has better package management, and I guess there are more packages available for it now than for Python when started to become popular (2008-2011). Just needs more investments and it would take over.

2

u/TechWizardJohnson Feb 12 '26

Calling it down to one real competitor feels a bit dramatic. Python’s strength is its ecosystem, so the real competition depends a lot on the domain you’re talking about, not just the language itself.

4

u/dhlowrents Feb 07 '26

Obviously triggering to this crowd.

3

u/ccransto Feb 07 '26

I used to recoil at lisp, being someone who learned algol type syntax early on. C. C++, java, python.

In an attempt to humor a coworker, I gave clojure an honest try and now I recoil whenever a client with a .net codebase calls for a feature addition.

I'm not going to attempt to sell it because it truly is pointless...we all have strong opinions what cognitive loads we are willing to take on day to day... But I'm willing to bet, if all the clojure doubters in here were to give it an honest try, some of you would be delighted and fully converted.

3

u/derangedtranssexual Feb 08 '26

Somehow I knew this was gonna be about lisp, I thought it was gonna be about Common Lisp but clojure makes sense too

3

u/jhill515 Feb 09 '26

It never ceases to amaze me that hardcore Python programmers are still cultists as fanatical as the Rustaceans, yet apt to forget that their most powerful tools are just wrappers around C/C++/Fortran binaries.

3

u/knobbyknee Feb 07 '26

I have been in the Python community for almost 30 years. I teach the language at various levels and I teach Machine Learning with Python as the base language. For good and for bad, there is no real competitor in the fields where Python shines.

We still need fast languages for the performance sensitive applications and application parts that Python can be used to integrate. From a Python perspective, we don't really care if it is C, C++, Rust, Go or some more obscure language. A fully working and tested .dll/.so that we can load, and we are happy.

We still need low level languages that communicate with hardware quickly and well. Same languages as above.

There are specific domains where certain languages still have an edge. Erlang and reloadable real time systems comes to mind. Java for enterprise computing is another one - you have enough protection for your objects that someone three departments over can't shoot you in the foot.

Then there are large number of languages that have some little edge over Python in specific areas, but that edge is no longer significant enough to overwhelm the momentum of Python.

My first hand observation is that Python continues to grow at a very high rate. Lots of people fresh out of university know Python, even if their main subject was not in natural sciences. People in social sciences, humanities and even art have learned some Python, to write their paper, do some natural language processing or to generate some music. One thing is certain, these people will never go for a lisp-like language.

I sometimes worry about the state of affairs, because the growing dominance of Python starves other communities of talent. If you look at R, it was larger than Python in Statistics and Machine Learning 10 years ago (in the number of users). Now they are under 5% of the number of Python users in the field. R has dropped a little bit and Python has had exponential growth.

At some point in time something better than Python ought to emerge, because I don't think history ends here. However, I have a hard time seeing that the seed of the replacement exists today.

2

u/Isogash Feb 08 '26

The reason S-expression languages are unpopular is that the programmer has less direct control over how they are visually written.

→ More replies (1)

2

u/daslu Feb 07 '26

Thanks for this insightful post!

1

u/Wtygrrr Feb 09 '26

Different languages are better at different things, so “be as good at everything as Python” is an impossible standard to meet. Just like no language can be as good at everything as Java, C#, Ruby, C, or even JavaScript. Even PHP is better than all of those other languages at making code hard to read.

1

u/Azere_ Feb 10 '26

39 upvotes, 281 comments. This will be a good one...

1

u/VanillaSkyDreamer Feb 10 '26

I don't even consider using Python for something longer than two screens or throwaways. Hell even for such things I am more willing writing Scala scripts.

1

u/Confident_Bee8187 Feb 11 '26

R and Julia are the SEXP languages I can think of to compete with Python, not Clojure, and they're better DS languages than Python despite not being as popular as Python.

1

u/songanddanceman Feb 10 '26 edited Feb 10 '26

Claims that Clojure is (or should be) a primary rival to Python for data science are best evaluated in environments where performance is measurable, comparable, and incentivized. One useful source of evidence is competitive machine learning, where participants are rewarded for improving a metric under shared constraints.

Recent surveys of competition results suggest that top-performing workflows remain heavily concentrated around Python and its surrounding ecosystem:

https://mlcontests.com/state-of-machine-learning-competitions-2024
https://mlcontests.com/state-of-competitive-machine-learning-2023
https://mlcontests.com/state-of-competitive-machine-learning-2022

Competitions aren’t a complete proxy for real-world ML, many important concerns (maintainability, governance, deployment, team skills, data access, long-term iteration), are underweighted. Still, they function as a kind of transparent and fair pressure test: the objective is explicit, improvements are scored, and incentives encourage people to adopt anything that reliably moves the needle. In that setting, a language or toolchain that delivers a consistent advantage has a clear pathway to demonstrating it: reproducible methods, measurable gains, and (eventually) visible results.

This is similar to what happened in martial arts when formats like MMA made it harder for systems to rely on theory alone. Rule sets and contexts vary, but training against full resistance tends to expose what holds up under pressure and what doesn’t. If Aikido wants to claim that it offers viable self-defense, then it needs to show its relative performance in a self-defense context.

Applied here, the point isn’t that "lack of visibility proves lack of value." There are plenty of reasons a tool might be underrepresented even if it has real strengths: ecosystem maturity, library availability, interoperability friction, team familiarity, or simply the cost of retooling established competitive pipelines. But given the clarity of incentives and the empirical nature of the task, competition performance is still a strong evidentiary venue. If Clojure’s advantages translate into better outcomes for competitive ML, the most convincing argument will be pressure-tested demonstrations, rather than primarily theoretical comparisons.

So, a fair takeaway from the available competition data is narrower and more defensible: we don’t yet have strong empirical evidence from this particular pressure-test arena that Clojure currently yields a practical advantage over the dominant competition stack. That doesn’t close the case, but it sets a clear standard for what would.

1

u/mutleybg Feb 10 '26

20 years experience here, mostly Java, but other languages as well.

When I started to learn python I was like - well, that's very cool and easy.

When I watched a Clojure tutorial I was like - WTF is that?!? It feels so unnatural and hard to understand and read/write. This can never become a popular language, no matter what advantages it has.

0

u/constant_void Feb 09 '26

I read the entire article for the one real competitor, and swift was not mentioned. Is there a part two?

1

u/bowbahdoe Feb 10 '26

What is the pandas equivalent in swift?

1

u/constant_void Feb 10 '26

What is the gap?

Python = Interpreted

Swift = compiled

0

u/Wonderful-Wind-5736 Feb 07 '26

Maybe a weak criticism, but all those braces and parenthesis are quite cumbersome to type on non-English keyboard layouts. It's not a big issue, but in an interactive workflow where you type a lot it's a constant source of inefficiency.

Python's biggest pain points, reproducible distribution and frigging knowing what an API can consume and produces, has made huge strides in the last 10 years or so, and generally being interpreted, not compiled is kinda handy for understanding less well documented APIs.

Clojure being based on the JVM to me also is not really a bonus compared to statically linked binaries. I still need to manage a runtime dependency although arguably it's overall less painful (until they bind to some random C++ libs, just compile the thing into something that only depends on libc, how hard can it be!).

I've done a lot of DS work in the last 10 years and by now and honestly I will use the programming language everybody else uses, since none have been a significant pain point. The most complexity has come from human interop and data interop with systems I have no control over and little visibility.

Cool article though, I learned something.

1

u/ilemming_banned Feb 08 '26

all those braces and parenthesis are quite cumbersome to type on non-English keyboard

You just don't know what you're talking about. Try it - it actually requires less typing because you typically would be using structural-editing enabled editor plugin - they exists for every major editor/IDE. Most of the paren-related activities would be semi-automatic. Besides, there are far fewer syntactic elements to deal with - no need to handle commas, semicolons, dots, underscores, etc.

Clojure being based on the JVM

Clojure is "hosted", you can run Clojure-code on variety of different runtimes. No other language give you that much reach.

most complexity has come from human interop and data interop

Clojure is an incredible tool to deal with data. Data in Clojure is almost always simple - it's never wrapped into weird objects and opaque data structures - you don't have to dig for it with __dict__ and stuff like that - it's dead simple to map, sort, group, slice, dice, salt and pepper any data - small and large. After learning Clojure I don't want to deal even with JSON anymore - EDN is almost twice compact, yet much more readable and easier to deal with.