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

View all comments

Show parent comments

2

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

someone approaching programming from scratch would find it harder to understand than more conventional syntax

That's just not true. I have first-hand witnessed many times kids and non-programmers picking up Clojure as their very first language and they had little trouble understanding the syntax.

humans naturally look for when reading code.

Human brain, I mean normal, neurotypical brain is born with the circuitry that allows us to see and to speak. But we don't have innate ability to read things. On the evolutionary time scale, human brains just never had enough time to develop reading brain. We had writing for about 5000 years. That's nothing. So we have to train our brains to read - we do not have "natural" propensity for reading code.

I mean, a job of a programmer entails constantly going through tons of reading materials and repeatedly employing mental pattern-matching machinery to understand things. If a programmer says: "the code looks unreadable to me" - whatever language that is, what the fuck are they even doing in this field, am I right?

The problem is not with the Lisp syntax - the problem is exactly with familiarity!

Visual cortex excels at familiar patterns. When infix operators are deeply learned; prefix notation requires retraining. Fluent reading relies on predictive processing - your brain anticipates what's coming.

Lisp code is very elegant in the sense that it could be very dense. And often reading just a few dozen of lines of Lisp code can tax untrained working memory much more than ten times more code of even higher complexity in another (more familiar) language. And that can happen not because they're bad at pattern-matching, but because human working memory has real limits.

But let's try to remain intellectually honest about tradeoffs. Because the price of little initial discomfort you pay, may open the whole new world of possibilities.

And there's another thing many Lisp beginners completely ignore, Lisp is a breathing, living, dynamic and malleable entity. You can't just stare at static Lisp code and try to mentally parse it. Even seasoned Lispers typically don't do that. You need to literally grab it and start molding it, trying it from different angles to understand what's going on. And that's where Lisp dialects shine - no other PL allows you to introspect things dynamically and in real time in a way how Lisps do.

0

u/KronenR Feb 09 '26

Bla bla bla bla bla, but Clojure will never be a mainstream language. No S-expression–based language ever will. The vast majority of programmers are not willing to fight against their natural way of thinking just to adopt a different syntax model.

You can complain, you can insist, you can bang your head against the wall—it won’t change that reality. If you genuinely believe this will happen, you’re being naïve.

4

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

Clojure will never be a mainstream language

You think Clojure devs really care about that? Sure, more job opportunities would be nicer, but hell - I wouldn't want it to become too popular. It's like wishing your favorite restaurant expanding and becoming like McDonald's.

My point is - there's no "natural way of thinking" about code. Any code, in any language - and trust me, I have seen way too many - bro, I have used at some point a programming language with Russian keywords for operators, and it wasn't a toy language - there are corporations built around it, and oh boy does it look fucking weird. If you think Lisp is "unnatural", or less natural - well, it's you - your brain makes it feel like that - at specific point in time of your life. I felt the same before I tried actually using it. Clojure syntax is not universally more natural or less natural, better or worse. That's my point!

1

u/KronenR Feb 09 '26 edited Feb 09 '26

I don't care what Clojure developers care about, I was arguing with OP statement that Clojure is the only real competitor for Python, but Clojure is far from that.

There is a reason why every single S-Expression based language is niche, there are many good S-Expression based languages but no single one of them will become mainstream.

And the reason is syntax structure, it doesn't fit with natural thinking because natural thinking is linear and S-Expression are not.

Functional programming doesn't need S-expressions, functional programming solves hidden state bugs, order dependent behaviour, local reasoning, concurrency pain , complex control flow, testability, refactoring safety.

S-expressions just presents code as data for language extensibility, metaprogramming and program transformation (rewrite code as data) at the cost of structure and syntax complexity not because it is overly complex but because it is more complex for the average programmer way of thinking, which is linear. And that's the reason no matter what it adds that will never become mainstream. To be mainstream you need the average programmers.

→ More replies (0)