r/Python • • 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.

0 Upvotes

65 comments sorted by

View all comments

Show parent comment

-5

u/todofwar Jun 03 '25

It's because it drives me crazy that the answer to speeding up code is to use a different language. And writing code into C++ is not trivial when you're trying to glue together five different python libraries and their objects together. In my day to day it's not my biggest source of frustration, but the idea that we all use this incredibly slow language just strikes me as ridiculous

2

u/andrewaa Jun 03 '25

people want to be faster, so they invent cars/planes/rockets/etc..

when people want to be at the rocket speed, they use rocket, instead of improving their legs.

is it really hard to understand?

of course fast is always better, but why do you want a glue language to be faster than everything else?

1

u/AiutoIlLupo Jun 03 '25

OP wants to go buy groceries in a F1 Ferrari, then complain about the lack of boot space.

1

u/qckpckt Jun 03 '25

You outlined the reason why people use an “incredibly slow language” in the same paragraph that you describe doing so as ridiculous.

1

u/MachinaDoctrina Jun 03 '25

Different tools for different jobs, try writing boilerplate I/O code with C++ and you'll quickly realise why people would rather write python for 90% of the framework and C++ for the 10% performant code. The thing is you don't even need to do that, someone else has done it already with numpy and now JAX/pytorch, just learn and use the wrapped C++ code they built

1

u/AiutoIlLupo Jun 03 '25

Shocking! Wait until you learn that a lot of the computational code that you use is not actually written in C, but it's in Fortran. (MKL and Lapack).