Ask HN: Why Did Python Win?
21–30 of 162 posts
Re: Ask HN: Why Did Python Win?
#22Re: Ask HN: Why Did Python Win?
#23In short (all below is my opinion): it was popular in academia and got some corporate adoption, so when ML exploded in popularity it was a natural choice as the scripting language for ML tooling. On top of that it’s easy to pick up as a language, and it’s a general purpose language - there are lots of scientific tools like pandas written in it, there are web frameworks, etc.
Perl was too quirky for wide adoption and it stopped developing (Raku/Perl 6 took to long to develop), PHP was focused purely on the web, similarly JS. Ruby could have won, I like it more than Python, but outside of Japan it’s also mostly been associated with web development (because of Rails), it also lacked libraries that Python already had.
Re: Ask HN: Why Did Python Win?
#24Against Perl? Over a decade ago. 10 years ago, the only places that required Perl were either hard engineering (i.e. non-programmer EEs) or those with legacy code bases.
Over everything else? Of course not. You don't do systems level work in Python.
The problems with Python are minor (other than packaging), and not a big enough pain to adopt another language. If you really could benefit from static typing, there are already existing languages that do the job well (C++, Rust, etc).
For the majority (including even some Perl fans), switching to Python was a significantly better experience. If you now show me a language better than Python, it's really only an incremental benefit. Sure, I prefer ML languages like F#, but the vast majority don't.
Re: Ask HN: Why Did Python Win?
#25pytorch, langchain, streamlit, fastapi, and on and on ... There are many clear reasons imo.
Re: Ask HN: Why Did Python Win?
#26Re: Ask HN: Why Did Python Win?
#27Hopefully RAM prices continue to increase so that we are forced to rediscover the lost art of software efficiency and optimisation.
Re: Ask HN: Why Did Python Win?
#28No surprise that interpreted languages like Javascript, Perl, PHP and Python are disproportionately popular independent of pure language merit. The feedback loop is the killer feature.
Re: Ask HN: Why Did Python Win?
#29I think the reason python won was that it was easy to learn and read and was batteries included. vs perl: People need to solve their problems, not fight with syntax Theres a lot of network effects as well. The more people were using it, the more people will use it.
I don't believe the "syntax win" scenario. Python is also ugly, due to the required indentation, like yaml. I believe more in the ecosystem, specifically how the computer vision and machine learning movements have adopted python extensively as frontend language (the heavy weightlifting is still doing in C++). The exploit of numpy has brought many many use cases into the language as well.
The fact that YAML also won in its configuration file niche doesn't give you pause?
Re: Ask HN: Why Did Python Win?
#30You’re struggling to understand Python’s success because in your head the primary reason Python succeeded was because it happened to be prettier than Perl, and you can’t wrap your head around why that’s enough. But it’s not enough. Python succeeded for many reasons.