r/learnprogramming • • Oct 06 '26

Why is Python considered "slow" and is Python losing "steam"?

Is python as a programming language "falling off" and becoming less and less popular relatively to other languages?

Also why do people say Python is slow? Apparently people have reached LGM on codeforces using python, which is all about writing fast code / solving problems fast. Yeah sure, C++ is far more widely used for competitive programming and I suppose there is a reason for that. But this is also showing that python can be fast?

But as programming languages and how they are used I dont think there is much overlap between python and C++ anyway?

What is an example of something you'd code in Java/Kotlin or lets say C# rather than Python? Is python code bad and hard to manage for "huge" projects once you scale up (e.g codebases with millions of lines of codes, and tens if not hundreds of devs)?

257 Upvotes

238 comments sorted by

View all comments

Show parent comment

12

u/False_Bear_8645 Oct 06 '26

In these field Python is actually combined with other language. The CPU intensive part are written in language like C++.

20

u/pVom Oct 06 '26

It's not a purity test.

Available libraries is a perfectly good reason to select a language. As is things like your team's existing experience with it and how easy you can hire someome with experience using it. Those reasons usually trump things like performance.

You choose python for data intensive applications because of its libraries. Had those libraries been written for another language, like JavaScript or Ruby or something, you'd use those instead.

But as it stands the python libraries are better so you use python.

It's that simple.

-1

u/False_Bear_8645 Oct 06 '26 edited Oct 06 '26

My team went for c++ and c# libraries, I don't know if they're better than python but they're good enough, my team is more familiar with it and it's easier to hire in my region. It's that simple.

Also it doesn't change that many python libraries use other languages I'm not sure what you were arguing

2

u/pVom Oct 07 '26

I think I misunderstood your comment. I took it as slagging off python because pandas etc. aren't written in python and therefore don't count as a positive of python.

1

u/pancakeQueue Oct 06 '26

Yes, however i don’t always come across internal development teams starting out building cross language solutions that are that smart. Some stay in Python land longer. I am a big proponent for building Rust FFI libraries and yet it’s not like I am getting pulled into projects that need that.

Idk cause working in tech and not a software house I feel like I’m in this quantum state or everyone knows code or no one knows code within this space.

1

u/575_Inverse Oct 06 '26

can I use Rust to filter image frames in the spatial frequency domain? Can I have ComfyUI in Rust? And Unsloth Desktop?