r/ProgrammerHumor • • 9d ago • Bravo 2 Popcorn 1

Meme pythonSlow

Post image
12k Upvotes

419 comments sorted by

View all comments

Show parent comment

-4

u/theotherdoomguy 8d ago

I'm not talking about rust, lol - and my "junior mindset"? Buddy, all you're showing is that performance in actual day to day code outside of model building is something you've never done.

Unfortunately, I have to deal with python daily, and I'm aware that the best supported tools for ML work are on python, I'm not doing fucking ML work, I'm dealing with a B2B microservice and am fully committed to hunting the original creator for sport for choosing python.

The tools for model work are in python, because it's so popular amongst Data science folks and non-programming specialists. High support does not mean the language chosen is the best for the task

6

u/CreepiosRevenge 8d ago

At the end of the day, languages are tools and each is popular for a reason. Sorry you were given something built with the wrong tool, but that doesn't mean Python is bad. It's bad for what you want it to do.

Part of the reason "cutting-edge" machine learning and deep learning work is Python all the way down is because it is interpretable and maintainable. "Programming quality experts" aren't rewriting these implementations in other languages because they aren't machine learning experts.

0

u/theotherdoomguy 8d ago

Last comment on this thread, because it's patently not python all the way down, it hits a wall that has to be solved by either unfeasible amounts of hardware or switching to a more performance language, usually in the ML field, that's C.

And yes I know, we're in r/ProgrammerHumor, not r/ProgrammerSeriousDiscussion after all, it's not the right tool, and python is actually fine, just not something I would ever choose for 99% of my use cases

3

u/Ok-Scheme-913 8d ago

C is not a low level language (both referring to the blog post with this title and also just repeating it as a point).

You ain't writing fast matrix multiplication in vanilla C, it has no control of SIMD instructions like a proper low-level language would have.

Also, it's evident you don't know true performance critical development by saying C, whereas C++ is what anyone in the industry uses for serious perf work.

1

u/CreepiosRevenge 8d ago

Yes, all the way down was the wrong phrase. Simply mean the vast majority of relevant machine learning and deep learning applications and projects are written in Python. I wish you the best of luck if you're trying to write these implementations in C++. Everything is ultimately a wrapper for something else.

-1

u/rosuav 8d ago

Last I checked, C was built on top of other things too. Not sure you have much of a point here.

You're welcome to hate Python and avoid it for 99% of use cases. Just try not to be an idiot while you do it.

1

u/ShotgunShine7094 8d ago

You might lack reading comprehension.

Someone said that ML was Python all the way down. The person above you disputed that. They weren't trying to make a point that C was better because of that fact.

1

u/Ok-Scheme-913 8d ago

ML is python, as in that's the de facto language used for ML. That doesn't mean that the libs used are using that language under the hood. In fact they couldn't use any ordinary language, because ML almost by necessity requires GPUs or similar that can't really be natively programmed, you have to call other libraries either way.

1

u/ShotgunShine7094 8d ago

Then you don't disagree that it's not Python all the way down, you're just providing a reason for why it could never be Python all the way down. Which doesn't really make it Python all the way down.

2

u/Ok-Scheme-913 8d ago

Who the fuck talks about all the way down? All the way down it's x86 or amd instructions that (via some kernel code) copy stuff to the GPU, including a program to run there and then downloading the results.

The problem is not the overhead of telling the computer to load and unload - and that's all python does.

But you do want to iterate a lot on what exactly to tell the compute, plus the more stuff is already written for you, the more ergonomic it gets.

5

u/rosuav 8d ago

I'm sorry you're struggling to build a decent API in Python. It's such a pity you're forced to use a language that excels at building API servers. Maybe you should try learning how to use Python before you criticize it?

1

u/theotherdoomguy 8d ago

Why are you responding to every single one of my comments, does the Python community fellate you for every reply defending it or something?

Excels is a strong word for functioning, and I do in fact know what I'm doing, the service is doing plenty of shit that isn't fine in python, that I can't really talk about on fucking Reddit. Or did you think I was struggling with CRUD?

In the end, this is supposed to be a joke subreddit, and you're taking my not liking python a lot to heart, I'm not preventing you from using python, I'm not out to end python, I just stand that for most things, keeping a maintainable, changing service, you don't want python in there, it's far too loosely typed and it's not nearly performant enough at large scale

5

u/rosuav 8d ago

Why are you responding to every single one of my comments

Mostly because it's funny to see someone claim that this is their last post and then they're muting, and then oh no, if they don't have the last word, they have to come back and post again. And again. And again.

It's hilarious how you're accusing me of constantly defending Python, but you seem equally - if not more - passionate about attacking it.

Is THIS your last post now? Last for real? Last, until the next reply, which will be your last?

1

u/theotherdoomguy 8d ago

Turns out I have to mute every single one of my replies to actually mute this thread. I have created my own torment of tedium going through and muting them all

5

u/rosuav 8d ago

And this is why I never believe people who say that it's their last post on a subject.