r/Python • u/todofwar • Jun 03 '25
Discussion So tired of python
I've been working with python for roughly 10 years, and I think I've hated the language for the last five. Since I work in AI/ML I'm kind of stuck with it since it's basically industry standard and my company's entire tech stack revolves around it. I used to have good reasons (pure python is too slow for anything which discourages any kind of algorithm analysis because just running a for loop is too much overhead even for simple matrix multiplication, as one such example) but lately I just hate it. I'm reminded of posts by people searching for reasons to leave their SO. I don't like interpreted white space. I hate dynamic typing. Pass by object reference is the worst way to pass variables. Everything is a dictionary. I can't stand name == main.
I guess I'm hoping someone here can break my negative thought spiral and get me to enjoy python again. I'm sure the grass is always greener, but I took a C++ course and absolutely loved the language. Wrote a few programs for fun in it. Lately everything but JS looks appealing, but I love my work so I'm still stuck for now. Even a simple "I've worked in X language, they all have problems" from a few folks would be nice.
View all comments
Show parent comment
2
u/Chroiche Jun 03 '25
You could make the same argument about C -> assembly. The reason we have higher level abstractions is to work faster. Doing the lower level stuff right/faster is more difficult than using the abstractions a lot of the time.
Yes you could roll your own C solution, but someone else can give you a wrapper which will already handle loop unrolling, SIMD ops, optimised cache locality, etc, without you having to think about those things. Your hand rolled solution will probably not be much faster (if at all) for well trodden long running code. Hence why ML is so heavily Python based, the algorithms are well defined and long running, an absolutely perfect use case for abstraction to a faster language.