News for hackers. Stuff that matters.
Re:Python performance myths and fairy tales by game_the0ry on Wednesday August 06, 2025 @09:56AM (#44812107)
I know I am going to get some hate for this from the "Python-stans" but..."python" and "performance" should never be associated with each other, and same for any scripting/interpreted programming language. Especially if it has a global interpreter lock.

While performance (however you may mean that) is always a worthy goal, you may need to question your choice of language if you start hitting performance ceilings.

As the saying goes - "Use the right tool for the job." Use case should dictate tech choices, with few exceptions.

Ok, now that I have said my piece, now you can down vote me :)

Re:Python performance myths and fairy tales by ahoka on Wednesday August 06, 2025 @10:07AM (#44812233)
Have you read the fine article?
Re:Python performance myths and fairy tales by game_the0ry on Thursday August 07, 2025 @09:05AM (#44823994)
I did, thought it was pretty good an upvoted it.
Re:Python performance myths and fairy tales by throwaway6041 on Wednesday August 06, 2025 @10:20AM (#44812397)
> the "Python-stans"

I think the term "Pythonistas" is more widely used

> you may need to question your choice of language if you start hitting performance ceilings.

Developers should also question if a "fast" language like Rust is really needed, if implementing a feature takes longer than it would in Python.

I don't like bloat in general, but sometimes it can be worth spinning up a few extra instances to get to market faster. If Python lets you implement a feature a month earlier, the new sales may even cover the additional infrastructure costs.

Once you reach a certain scale you may need to rewrite parts of your system anyway, because the assumptions you made are often wrong.

Re:Python performance myths and fairy tales by game_the0ry on Wednesday August 06, 2025 @02:18PM (#44815660)
> Developers should also question if a "fast" language like Rust is really needed...

Agreed.

Re:Python performance myths and fairy tales by danielrico on Wednesday August 06, 2025 @10:01AM (#44812169)
That's used by some people as excuse to write the most inefficient code.

Ok, you are not competing with c++, but also you shouldn't be redoing all the calculations because you haven't figured the data access pattern..

Re:Python performance myths and fairy tales by wiseowise on Wednesday August 06, 2025 @10:28AM (#44812512)
Do you get off from bashing on languages or what?
Re:Python performance myths and fairy tales by ActorNightly on Wednesday August 06, 2025 @01:11PM (#44814757)
>"Use the right tool for the job."

Python + C covers pretty much anything you really ever need to build, unless you are doing something with game engines that require the use of C++/C#. Rust is even more niche.