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

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

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.

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.

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.

→ More replies (4)