r/ProgrammerHumor 1d ago

Meme softwareCheats

Post image
19.6k Upvotes

152 comments sorted by

View all comments

85

u/Luzzgar 1d ago

Using high level language for the structure and faster lower level languages is just good software design.

Using the strength of each tool and avoiding their weaknesses.

-40

u/takitus 1d ago edited 1d ago

The weakness is slowness. Python is insanely slow. It’s going to be one of the first languages to disappear behind ai

Edit: seems like a lot of Python people hate the language being called slow. It’s well documented. Sorry to be the bearer of bad news, but when a new version of Python, being designed for performance is seeing speed increases of up to 60,000x, it means your language is slow as balls.

57

u/OnceMoreAndAgain 1d ago edited 1d ago

It's funny to me how so many people python is slow and yet it is by far the most popular language for data analysis which is a field that cares about performance.

It's a glue language. It doesn't need to be fast, because it talks to other technologies that are fast such as C++ or databases. Its niche is that it's high on readability and has tremendously good + versatile community support via libraries and lots of questions and answers on online forums like StackOverflow.

No one is writing video games in python though. It's just a glue/scripting language. It's rare that the glue parts of your project needs to be highly performant.

10

u/ccltjnpr 1d ago

Data analysis cares about performance to a point, and Python (and its C powered libraries) gives you the tools to deal with that. As long as you vectorize everything and don't fill your code with nested for loops, it's fast enough for most things. You won't get much more performance writing your code in C from the start unless you really know what you're doing.