251
submitted 8 months ago* (last edited 8 months ago) by trespasser69@lemmy.world to c/memes@lemmy.ml

Check out my new community: !tech_memes@lemmy.world

you are viewing a single comment's thread
view the rest of the comments
[-] flamingos@feddit.uk 72 points 8 months ago

Why would an RTX 4090 make Python faster?

[-] originalfrozenbanana@lemm.ee 70 points 8 months ago

Don’t worry this post was written by a first year computer science student who just learned about C. No need to look too closely at it.

[-] DieserTypMatthias@lemmy.ml 9 points 8 months ago
[-] originalfrozenbanana@lemm.ee 26 points 8 months ago

The only language worth discussing is brainfuck

[-] OrnateLuna 4 points 8 months ago

Purest of the programming languages

[-] ours@lemmy.world 23 points 8 months ago

Joke's on you, he was talking about "Phyton". /s

[-] Mac@mander.xyz 6 points 8 months ago

I bet an LLM could have written this meme without making that mistake.

Embarrassing.

[-] owenfromcanada@lemmy.world 5 points 8 months ago

The new favorite language of AAA game studios: ~~Phyton~~ Python

[-] trespasser69@lemmy.world 4 points 8 months ago

Well, it just demostrate how slow is unoptimized software

[-] krimson@lemmy.world 53 points 8 months ago* (last edited 8 months ago)

If you create a meme like this at least inform yourself on how computers and software work.

[-] Matshiro@szmer.info 20 points 8 months ago

If 4090 is not making stuff faster then why my games run faster with it? /s

[-] krimson@lemmy.world 16 points 8 months ago

Easy, your 4090 is made of pure assembly.

[-] mexicancartel@lemmy.dbzer0.com 2 points 8 months ago

Because game need marketing to run

[-] FooBarrington@lemmy.world 1 points 8 months ago* (last edited 8 months ago)

They apparently like making memes shitting on people & things without really understanding why, like the one for the NVidia CEO

[-] flamingos@feddit.uk 28 points 8 months ago

Screaming at my single-threaded, synchronous web scraper "Why are you so slow, I have a 4090!"

[-] Grumpy@sh.itjust.works 2 points 8 months ago

What makes you think python is in optimized and bloated?

Did you know vast majority of AI development happening right now is on python? The thing that literally consumes billions of dollars of even-beefier-than-4090 GPUs like A100. Don't you think if they could do this more efficiently and better on C or assembly, they would do it? They would save billions.

Reality is that it makes no benefit to move away from python to lower level languages. There is no poor optimization you seek. In fact if they were to try this in lower level languages, they'll take even longer to optimize and yield worse results.

[-] Alexstarfire@lemmy.world 6 points 8 months ago

TBF, using AI as an example isn't the best choice when it consumes an ungodly amount of power.

[-] Grumpy@sh.itjust.works 3 points 8 months ago

It makes the best example because there's that much more money to be saved.

[-] pipe01@programming.dev 4 points 8 months ago

Every single high performance python library is written in C, you just don't see it

[-] Grumpy@sh.itjust.works 2 points 8 months ago

I've already addressed this same argument to the other commenter in length. But if what you say is true, which it is not, then python is not inefficient since it's already equivalent to C. Thus OP point of something being inefficient because it was made in python is wrong.

[-] RarePossum@programming.dev 3 points 8 months ago

They do do it in C. The packages are written in C, python is just used as the wrapper to allow less coding skilled data scientists to easily use it.

That's like the entire data science joke. It's C in a python trench coat.

[-] Grumpy@sh.itjust.works 3 points 8 months ago

Nearly every languages' every core packages are written in C. And almost every higher packages have some amount of C. That doesn't mean we get to say every program is done in C. And if you keep drilling down, everything is just machine lang. And certainly still disproves the OPs point of inefficient python.

Saying it's all done in C hardly even true. Just look at xformers library on GitHub. Only 2.7% of the code is C. And the entire library is about optimizing.

Additionally, vast majority of the great leaps in ML efficiency changes hasn't come from better programmed packages, though they too certainly made big strides. How we calculate itself has changed. That's what makes the greatest optimizations in anything. It doesn't matter what language it is, doing a loop 1000000 times to add 1 is going to be worse performance than just doing 1 multiplied by 1000000. How we calculate, what we choose to give up (such as determinism in some implementations if SDP attention changes) and such makes big differences.

Optimizations also has to be done by someone. Whether that be data scientists or otherwise. The ability for higher level languages to enable them to do so like you say also makes a big difference. If all the programmers had to optimize in C only, we'd still be way behind where we are now in performance.

Just swapping languages doesn't yield better results like OP is implying.

this post was submitted on 18 Nov 2024
251 points (100.0% liked)

Memes

51765 readers
848 users here now

Rules:

  1. Be civil and nice.
  2. Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.

founded 6 years ago
MODERATORS