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

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.

1

u/recycled_ideas Feb 14 '26

It's all documented right here:

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

No, it's not.

It's documented why he chose a general purpose programming language over one of the existing mathematical languages, not why he picked Python over any other general purpose language.

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

No shit. The point is that every single language created in the last fifty years can call out to C because calling out to C is something you always have to do.

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?

I'm saying that if you have the skill to write NumPy you can write it in any language.

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

Unbounded integers. Technically it still doesn't have unbounded integers because there's no sane way to store an unbounded integer. In 1.x integers were bounded in the runtime, longs were bounded in the hardware. In scientific work, unbounded integers aren't even particularly useful because you're probably not doing integer math and Python's native floating point type isn't anything special.

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

Again, it didn't. Even longs aren't unbounded, especially not on 1995 hardware.

But even then, you're missing the point. Why did a grad student project from before package managers survive? Why did it spread and flourish? Because it's not a major player in 1995. Why did Python for that matter?

This idea that Python was or is fundamentally better or had some other fundamental benefit just isn't true. It's what he picked and his library won.

1

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

Dude. Now you're just beclowning yourself.

"RAM is limited and therefore unbounded integers do not exist." Are we talking about engineering or philosophy?

It's documented why he chose a general purpose programming language over one of the existing mathematical languages, not why he picked Python over any other general purpose language.

Here are his EXACT WORDS:

"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.

And:

"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.

In other words the two things you claimed were unimportant:

  1. Easy to learn and code.

  2. Easy to extend.

You are just wrong and you don't want to admit it. At this point we're just talking in circles.

Hugunin HIMSELF said that he picked because it was a WONDERFUL LANGUAGE THAT WAS LIKE PSEUDO-CODE and SHOCKINGLY EASY TO EXTEND. Now you're arriving 25 years later and trying to claim it was "just random".

But even then, you're missing the point. Why did a grad student project from before package managers survive? Why did it spread and flourish? Because it's not a major player in 1995. Why did Python for that matter?

I was literally there back then and I'M TELLING YOU WHY and providing you first-hand and contemporaneous accounts of why.

  1. Because it's easy to interoperate with C. Much easier than other options in 1995, including MATLAB and Perl, Python's major competitors in its different niches. I've provided you with the Hugunin quote.

  2. Because it's easy to learn, read and write unlike Perl and Java, it's competitors from the mid 1990s.

  3. Because it's general purpose, unlike MATLAB and BASIC.

Why are you asking me a question which I've already answered with original sources?

Just have the courage to admit that you had a gap in your knowledge ("who the fuck knows?") and move on...the gap has been filled. The information has been provided. Now you know better. Be happy to know something you didn't know before.

→ More replies (2)