PyPy isn't much worse than Dart on this chart.
The interesting bit to me is JavaScript giving Go a run for its money. To me this indicates that Python could be a lot faster than it is.
I wonder where Swift would fit in?
PyPy isn't much worse than Dart on this chart.
The interesting bit to me is JavaScript giving Go a run for its money. To me this indicates that Python could be a lot faster than it is.
I wonder where Swift would fit in?
I used to love Python. In fact, I still maintain a fairly popular Android development tool written in Python https://github.com/ashishb/adb-enhanced Over time, my love has hit a reality check.
I took the chart from here https://benjdd.com/languages/, it does a very specific test of loop iterations.
If you look at concurrency, I am sure Go will do way better than Node JS for concurrent request handling.
Please, if you have enough time, watch this https://youtu.be/EH12jHkQFQk
and avoid making any decisions using this chart.
It's an artificial benchmark that means nothing in production
Also the article does not bring much to the table except of python whining
"Oh the Go dockerfile is smaller" Yes you compiled it and is running a binary. Big woop. Funny how the author not doing the same comparison with node
The only thing this tells you that you should try to avoid a billon nested loop iterations in python. In case you didnt know.
On the other hand I would also see python as a bit questionable for bigger procejts, just because at some point a type system does more help than harm. But I have never really worked with pythons type extension so nowadays even this might be good enough.
Clickbait title, garbage content.
Where does the article talk about the billion nested loop at all? It uses that as an illustration.
I mentioned the problems related to speed and performance of a simple web server as well as code maintainability issues.
If I did that with Node, you would say what about Ruby. If I did that with Ruby, you would say what about Zig. There is no end to the list of languages.
> It's an artificial benchmark that means nothing in production
It was a cover illustration, I did not mention that at all. In fact, I demonstrated the resource consumption of Python's docker image. If you have suggestions to make the Python one, I am all ears.
I think Python is a great language for running inside Notebooks. Running non-AI/ML jobs in production is where Python brings more downsides than upsides.
I have used Python type system extensively, it is unfortunately, still an honor-code based system. So, you have to catch it during code reviews.
No, because the comparison here is runtimes of interpreted languages
Comparing a compiled binary to the python/node/ruby runtime is comparing Apples to Oranges
> Author started comparing a debian image's size vs an alpine one. Immediately closed the article.
I did not compare Debian to Alpine. I compared Debian to a scratch image (for Go).
Rust substantially raises the bar well beyond both Python and Go, but even in Rust, static analyzers are still necessary for acheiving maintainable code.
I have seen applications where this serving cost alone becomes dominant. And that's why I shared the YouTube story as well where the ~60X savings came from migrating from Python -> C++.
However for a database-backed web app? The argument on HN has always been productivity wins by helping you to grow your startup more quickly. I myself would prefer a compiled language that also has memory safety.
On the other hand it doesn't seem you read the article? It is mostly focused on performance, which often shouldnt be the main focus when selecting the language. And even if you need performance (e.g. data science) it can be very fast if you source out the billion iterations to a library.