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

Meme pythonSlow

Post image
12k Upvotes

419 comments sorted by

956

u/ProgramBrave718 8d ago

Python after saying it's name to Rust - "I am known for machine learning. But, devlopers call me slow"

278

u/creeper6530 8d ago

Python is an orchestrator for C/C++ libraries at this point 

131

u/MegaPegasusReindeer 8d ago

The default implementation of Python is CPython. It's always been byte code running C written machine code.  There's even Cython to write Python that compiles into C code.

29

u/FlyingRhenquest 7d ago

Yeah, it's great for that. I built an automated video test system for Comcast back in 2018 that was heavily-threaded C++ code with a Pybind11 API to send requests and retrieve responses to the backend. The system was responsive in real time as long as you didn't saturate the image recognition thread pool.

11

u/Yodo999 5d ago

At any point. Python was always that.

14

u/HeisterWolf 7d ago

This so much lmao. Most code I write is basically Python orchestrating other processes or an FFI to something like rust if it's performance-critical.

8

u/wildjokers 7d ago

Python is just calling out to c and c++ libraries.

131

u/theotherdoomguy 8d ago

Youre known for being a wrapper for the C/C++ applications real developers used to make Machine Learning, you goddamn hack (Ive recently had to start maintaining a python microservice and I'm getting real heated about how shit python is)

217

u/raddaya 8d ago

C/C++ are known for being a wrapper for the assembly code real developers use to make computers do things you goddamn hack

And so on, and so forth

→ More replies (28)
→ More replies (45)
→ More replies (2)

407

u/Cxvvtgupvvdi 8d ago • Bravo

from shitWrittenInC Import callHyperoptimizedMethod

896

u/YamroZ 8d ago edited 7d ago

The Python script was ready week ago, took 5 minutes. Rust programmer first took 3 days to tell EVERYONE how much better it will be in Rust, then started coding and got bogged down for 2 days in a forum discussion on how to best secure memory for a "hello world!" string.

252

u/VladVV 8d ago

Meanwhile the Julia developer was done a week ago like the Python developer. Took 5 minutes all the same, and it ran faster than the eventual Rust implementation. No one gave a flying shit and used the Python implementation anyways because it's more familiar.

227

u/FaCe_CrazyKid05 8d ago • Popcorn

Who’s Julia and what language did she program in

75

u/RamsOmelette 7d ago

My question is who is Jason

→ More replies (7)

54

u/LetumComplexo 8d ago

You know what they say, the only thing better than best is standardized. /half joke

20

u/Erpelstolz 8d ago

Problem is I cannot use all the libraries for Julia

→ More replies (4)
→ More replies (1)

20

u/boberro 8d ago

Then they just vibe coded it

3

u/zeddash 6d ago

It's worth doing things first in a simpler language and only using something faster when you know what you're doing exactly and also only if you need it.

I love Rust but I almost never start off projects in Rust, personally I use TypeScript rather than Python (I'm a web developer and so I've always used JavaScript). Using a more flexible language it lets me try out things faster and I'm not above using an occasional `any` just to see if my idea works to do it better. It also means that when I work in Rust I can have a mentality of doing things at a higher standard because I'm usually not solving problems, other than the problems of implementing in Rust.

My second choice for figuring out algorithms after TypeScript is a spreadsheet which is so useful especially if there's iteration. I made a physics engine in a Google Sheet and on each page I could program different scenarios (using a DSL) to test certain behaviour and then compile everything into graphs to observe how tweaks affect everything. I knew the exact behaviour I was after and then when putting it into a game, written in Rust using Bevy, it just needed slight tweaks to change the feel which I could input into my spreadsheet and see what I then need to deal with. I don't see enough spreadsheet usage, but it might be that people don't know about BYROW - you write the function once and use BYROW to apply it to all rows in the range, and if you change the lambda it changes everywhere.

I will also use F# if I have an idea of what I need to do but it's a lot of steps, it's the easiest language to just get it to do what I want quickly and without bugs.

→ More replies (9)

3.7k

u/Memorius 8d ago

Comparing a language that gets compiled into native machine code to a language that typically compiles to and interprets byte code at runtime. Is there a point to this meme?

2.9k

u/SpeckledFleebeedoo 8d ago • Mindblown Bravo

Welcome to r/programmerhumor, please expect more of this daily.

441

u/U_L_Uus 8d ago

We should gift a dead horse to some people, just so that they can do things privately

59

u/Timpunny 7d ago

just make sure to remember: you can gift a dead horse but you can't make him mouth

49

u/rosuav 8d ago

ewwwwwwwwwww

→ More replies (2)
→ More replies (1)

530

u/FalafelSnorlax 8d ago

This sub has always been mainly posted to by first-year cs majors who spew out the same unfunny memes ad infinitum. OP likely just heard about either python or Rust for the first time and thought it would be funny to repost a meme about rust being faster than python.

99

u/syrup_cupcakes 8d ago

I wonder /r/ConstructionWorkerHumor would be full of first year mechanical engineering students, who try to flex on each other for using a superior type of drill or hammer.

→ More replies (1)

75

u/g0atmeal 8d ago

It's true but I find it way more annoying that every post has someone in the comments complaining that the humor is too common denominator. It's based on upvotes, of course the top posts will be the ones that most people can understand. The math memes sub has the same issue, every thread has a critic.

Plus why bring the mood down? I suspect some of the complainers feel validated by criticizing newer people.

41

u/guyblade 8d ago edited 7d ago

I would say that the problem isn't that it is common denominator; it's that it's a sortof uninteresting take.

Sometimes, the speed of execution is important and you need to use a lower-level language to achieve that. More often--at least in my experience--the speed benefit is minor compared to the increased effort & complexity that going to a lower-level language would entail.

If your code is going to spend 99+% of its wall time waiting around for stuff to happen, going a millisecond faster in those few instances where it needs to do something probably isn't going to matter. In those cases, using a language with higher expressiveness (i.e., one that takes fewer lines of code to accomplish the same task) is a perfectly rational decision.

Nuance isn't best expressed in meme form, of course, but the sentiment in the top level meme feels like it'd fit well as the center of a bell-curve meme where the ends are "python's fine for most stuff".

→ More replies (2)

4

u/tsammons 7d ago

I got fileted once upon a time over NFA/DFA here. Kid just took his very first combinatorics class, and the schmuck in me wanted to give him a high five but my tail was too far between my legs after the three paragraph dissertation.

→ More replies (2)

146

u/da_Aresinger 8d ago

The reality is, that there is no meaningful difference between Python and other languages if used correctly.

Python is slow for the manual stuff. But everything that's resource intensive should be done via libraries/frameworks anyway and those are compiled C.

The slow stuff in Python is IO or other system calls. Those are slow in any language.

If you're doing repetitive calculations you should be doing them using optimsed tools.

72

u/the_horse_gamer 8d ago

Python is a DSL for calling C APIs

29

u/ZenPyx 8d ago

FORTRAN as well if you use a lot of SciPy

→ More replies (1)

15

u/ChrisWsrn 7d ago

Python does have VERY bad performance at runtime. 

When it is treated as just a scripting language (having python confugure and run compiled bytecode) the performance increases by about 100 times.

The main issue is there are lots of devs who try to do EVERYTHING in Python which causes the application to be way slower than they would be if native bytecode.

The main advantage of Python is it is quick to build stuff in. 

Generally when you have a problem you need to pick and use the right tool for the job. Most developers don't learn that until senior year or their first few years in the workforce.

14

u/Jamie_1318 7d ago

The reality is that the performance of 99% of code is basically immaterial.

→ More replies (5)

24

u/dkarlovi 8d ago

I use Python to run my CUDA kernels, it means Python is just as fast as CUDA.

14

u/Unbelievr 8d ago

For one-off scripts and batch jobs, where the run time is whatever but the implementation time is the actual cost, Python usually wins out anyway. While other languages are significantly faster, the time it takes to write the same code is orders of magnitude more.

That said, in the age of LLMs this point becomes a bit moot anyway. You can easily write something in Python, verify that it's correct, then ask an LLM to rewrite it in Rust or whatever if performance is an issue. Just need a method to verify that the programs are semantically equivalent.

→ More replies (16)

29

u/Ok-Scheme-913 8d ago

Their C++ 101 class just started, don't hurt them!

11

u/smthomaspatel 7d ago

I love Python but I still laughed. So that's a point, I think.

→ More replies (1)

10

u/ss99838 8d ago

This is the reputation this sub has: https://www.reddit.com/r/ProgrammerHumor/s/7Mmn6wC4vp

5

u/StKozlovsky 8d ago

Post removed by mods, what was it?

8

u/ss99838 8d ago

Link to a screenshot: https://ibb.co/ccF1LPkx

Why can we post gif in comments but not images?

→ More replies (1)

8

u/JAXxXTheRipper 8d ago

You don't find it fair to compare a ferrari racecar to a lamborghini tractor?

How dare you! /s

7

u/consider_its_tree 8d ago

Also kind of ironic to just now be ripping off a years old meme about Internet Explorer to be making a point about processing speed...

3

u/yota-code 8d ago

I guess indeed we should compare python startup time to rust compilation time 😅

2

u/Any_Obligation1652 8d ago

Rust good everything else bad

2

u/frivol 8d ago

(I'd say the type system matters way more than compilation.)

2

u/doulos05 8d ago

Python!

No really, that's the whole point of the joke.

2

u/PudgeNikita 8d ago edited 8d ago

the compilation vs interpretation difference is honestly not as big as between the language semantics making the program include information on static value types with fixed sizes, in contiguous memory vs chains of references to "objects" with boxing required even for things like numbers, each with a vtable, stored in non-homogeneous containers. so, as u/frivol mentioned, its more about the type system (or, the type system up to the degree as to which it can be pessimistically, with 100% sureness, be used by the implementation) and the data layouts that the type system (and more generally the information provided by "definitions" in the program, and the assumptions that can be made about it, e.g. "closed system", immutability) results in. python functions could be overriden at any point by an outside module loaded dynamically, and the implementation has to consider that as "standard behavior", so it cant "just inline the function", specially if its generic but cant be monomorphized since the type of the argument isnt known for certain even if its typehinted since it could either not be consistent with the typehint, or be a subclass with an overriden method (and python methods dont even need to marked virtual, its just duck typing all over).

2

u/anonuemus 8d ago

rust developers are insufferable, that's why they make those memes

2

u/unski_ukuli 8d ago

I think python and rust are more alike than most languages. The defining similarity is that people try to do things in both languages that should not be done in them.

3

u/BichitoMax 8d ago

It is just a fun little meme

-29

u/p58i 8d ago

Ah – we spot the Python developer in the room.

How are things going?

18

u/Memorius 8d ago

Good, how about you? Python and C/C++ mainly, yes. And C# privately

15

u/EskilPotet 8d ago edited 8d ago

how is your Introduction to Programming class going?

→ More replies (35)

230

u/Percolator2020 8d ago

This wasn’t even funny when it was an IE joke.

85

u/CompetitiveSleeping 8d ago

It was funny, but not ha ha funny; more like "I'm forced to use IE at work oh god kill me" funny.

28

u/creeper6530 8d ago

That reminds me of the "are you forced to use Edge? You may be entitled to a better browser" advert Firefox made recently 

→ More replies (2)

2

u/StuntHacks 7d ago edited 1d ago

The only one of these that ever made me laugh is this one

https://i.imgur.com/uOqvjDp.png

→ More replies (2)

171

u/IAmASquidInSpace 8d ago • Mindblown

Haha, Python slow, comedy genius! Never heard that before! So original! Haha! 

16

u/WrennReddit 8d ago

Quick, somebody get this guy a vibe coding meme!

63

u/deanominecraft 8d ago

more accurately python would spend 2 panels asking its friend C to answer the question for it.

→ More replies (4)

40

u/irishcoughy 7d ago

ITT people who write code for a living or as a hobby seemingly unable to grasp that programming languages have use-cases and are rarely if ever universally applicable.

20

u/squabzilla 7d ago

One of my favourite learning experiences was writing C code to read a .txt file, and return the average number of letters per word.

We couldn’t use any libraries except the standard input/output library, so I’m reading stuff character by character, storing it in my own custom-built linked list, make sure there aren’t any memory leaks…

And the next lesson started by showing us how to accomplish the same task with 10 lines of Python code.

And you wanna know which one was faster? Well, as far as my human perception could tell, both of them ran instantly. I mean, sure, technically the compiled code written by the comp sci PHD was a tad faster, but who actually gives a shit?

There’s a reason C++ isn’t used for data analysis. (Or why Python isn’t used for video games for that matter.)

4

u/HumanContinuity 7d ago

Basically the entire python data science and AI/ML ecosystem is just a bunch of C/C++/Rust wrappers.

If you could write them natively in python, you would absolutely see a difference when you throw them even mid sized datasets 

5

u/squabzilla 6d ago

Yes, Python is arguably just an API to interact with efficient C/C++/Rust libraries. And Python does a very good job of that. Which is why data analysis uses Python.

→ More replies (1)

3

u/gundam1945 7d ago

I think for the case of data science, the cost of writing something wrong is more costly than the slow speed. And a good thing is everyone have a agreed way of doing the methods, with the public library.

→ More replies (1)
→ More replies (6)

11

u/spottiesvirus 7d ago

people is also unable to grasp "language efficiency" is way less relevant than what they think it is

in modern CPUs a single RAM lookup consumes 200+ CPU cycles just waiting for the response, let alone a network request querying a disk on a server somewhere (I'm looking at you fragmented microservices)

that kind of architectural optimization is way more important than "I'm using C because JavaScript is less efficient"

6

u/violetvoid513 7d ago

Performance is the least of javascript's sins

2

u/TemporaryFearless482 7d ago

Next you’re going to tell me that the PHP OS was a bad idea.

→ More replies (2)

12

u/cicciograna 7d ago

I remember when the butt of this joke was Internet Explorer.

31

u/MiloBem 8d ago

Python is slow but that's not a problem for a scripting language which is used for data pipelines, prototyping, and teaching coding basics to high schoolers. No one sane is using it where performance matters, like microservices. Oh, wait.

15

u/danfay222 7d ago

I mean I know this is a joke but python is used for a lot of heavy production loads. For example instagram is built on a Django backend

5

u/Blue_Moon_Lake 7d ago

I don't wonder why so many websites run like shit, I only wonder what type of shit is going on in the backend.

9

u/Acceptable-Pin2939 7d ago

The slow points are almost never the code execution but other things like io / http / other overheads.

Why is why python is used.

→ More replies (4)

26

u/SeaTurtle1122 6d ago

If the speed of Python is, in any situation, your bottleneck, you’re doing something stupid. The large majority of all modern code is IO bound, not compute bound, and if you’re doing compute intensive work, pandas, scipi, tensorflow, google OR tools, and a number of other libraries exist to do it properly, and if none of those work, writing C code with a wrapper for Python isn’t hard. There’s boilerplate and considerations, but there are lots of tutorials and it isn’t mechanically difficult to do.

Python has issues, but if you’re complaining about Python and aren’t focused primarily on the awful state of Python package management, you don’t know enough about Python to make jokes about it.

→ More replies (7)

19

u/HikariAnti 7d ago

This meme is actually pretty accurate because Rust programmers will tell you that they are Rust programmers without you ever asking.

16

u/Educational-System48 8d ago

I've never had a problem where the bottleneck was Python being slow.

7

u/anzu3278 8d ago

That's right, all the other problems of Python kick in much sooner

→ More replies (1)

11

u/Soumalyaplayz 7d ago

Ah yes. A compiled language which takes ages to compile vs an interpreted language which takes ages to interpret.

This war was promised to us 3000 years ago

21

u/JockstrapCummies 8d ago

If you factor in the cargo build time of compiling 200 crates down the dependency chain, Rust will probably start speaking only after Python has said hello and goodbye.

27

u/JAXxXTheRipper 8d ago

If you don't have a time-sensitive project, this doesn't matter in the slightest. Speed is rarely the deciding factor.

I'd rather work on a python project than on rust tbh. Rusts syntax is just ew

3

u/FabioTheFox 7d ago

Just use Golang atp

You get all the simplicity with all the speed

2

u/JAXxXTheRipper 7d ago

I am not allowed to comment on this, I am an unashamed golang fanboy.

→ More replies (1)

1

u/anzu3278 8d ago

Python devs when a language has syntax other than whitespace: "ew"

16

u/JAXxXTheRipper 7d ago edited 7d ago

Rust devs when someone complains about their syntax

I dOn'T sEe ThE PrObLeM *rolls head across keyboard*

fn f<'a, 'b: 'a>(x: &'a &'b ()) -> impl for<'c> Fn(&'c ()) -> &'a () {
    let _ = [|| || ..=.., || || ..=..];
    match Some(&mut 1) {
        Some(ref mut y @ &mut _) => *y = &mut 2,
        _ => return return return move |_| *x,
    }
    move |_| *x
}
→ More replies (5)

5

u/Lowmax2 7d ago

Python can be lightning fast when you use the right libraries. Obviously it's written in c++ or something on the back end, but it's still python being written by the end user.

5

u/urbaum 7d ago

Show me you know nothing about programming

21

u/RhuanPacheco 8d ago

Why are you crying so much over Python memes? When a JS meme gets posted for the millionth time, there isn't nearly as much complaining...

24

u/FabioTheFox 8d ago

Because everyone knows Javascript sucks and everyone bashes it all the time, the difference is that people don't want to admit the same with python

44

u/Pokari_Davaham 8d ago

Python is nice to code in, I don't think anyone pretends it's the fastest

20

u/LetumComplexo 8d ago

Yeah, that and while it’s not fast on its own it is adequately fast when used correctly.

11

u/mxzf 7d ago

Especially when you factor in development time vs execution time. It's super quick to develop in compared to many languages, and you can always come back and optimize specific slow things down the road if you have bottlenecks.

→ More replies (2)

3

u/JollyJuniper1993 7d ago

People pretend it has to be good at things it was never meant for. Complaining Python is slow is like complaining x86 has a lack of libraries.

17

u/Worth-Wonder-7386 8d ago

Python is among the most used programming languages. It is not suited for everything, but that is true for all languages.

→ More replies (17)
→ More replies (7)

3

u/WiseEXE 7d ago

I think it's because Python while easy to write, it's ecosystem feels completely braindead at times because of all the abstraction layers. As someone who transitioned to Python from writing native C, the amount of thought taken away from me gets irritating.

Take variables for example, writing variables without an explicit type feels messy (I know you can do type declaration but that's more of a bandaid fix). Then I'm genuinely not a fan of the "Pythonic way to code". It's oversimplified and makes critical thinking feel like slop.

2

u/GresSimJa 7d ago

The dynamic-but-also-not-dynamic typing is fucking infuriating. It makes it so you need to check for types manually anyway, and dealing with user input is a hassle.

→ More replies (1)
→ More replies (2)

26

u/R15H1_3 8d ago

Bro hadn't even finished importing the libraries yet.

12

u/lostUd_ 7d ago

as someone who finds programming to be incredibly boring and will avoid computer science by all means necessary, I find this sub pretty funny

12

u/WiseEXE 7d ago

Then why are you here? Not trying to be rude just asking

3

u/SaintWillyMusic 7d ago

come for the jokes, stay for the empathy

5

u/lostUd_ 7d ago

got recommended to me in my home feed (cause I switched to linux like 8 months ago) and I still kinda found it funny so i stayed

For a little more context: I tried picking up programming back when I was like 7 and stuck with it for nearly 5 years. by then, I was really burnt out, and realized it wasnt my thing.

→ More replies (2)

1

u/DefiantGibbon 7d ago

As someone who also doesn't like coding...

It's incredibly unfortunate that I became a Sr embedded engineer who writes C all day, lol.

6

u/Trang0ul 7d ago

- Knock, knock!
- Who's there?
- ...
- ...
- Python!

- Knock, knock!
- Who's there?
- C++ !

- Knock, knock! Assembly!

3

u/Unlucky-Durian-2336 8d ago

I still remember "knock knock" Java joke from years ago.

3

u/Liliths_Ace_Friend 7d ago

My brain runs on python

3

u/admiralsj 7d ago

Yes Rust is more performant, but... many high volume production sites run with python back ends. 

Both will do the job in probably 99% of use cases. Yes Rust is faster but Python has a more mature ecosystem and is easier for noobs

3

u/Andrei95 6d ago

Mehh, this really depends on what you are doing. I took a monster spreadsheet that we use for design calcs. Essentially, it's a bunch of linear algebra and some optimization routines; it took 10+ seconds to update the sheet every time you changed a single input. I moved it over to Python with a mix of numpy and scipy, nothing fancy, just basic stuff, that got it down to under a second (~100s ms). Then I went to pure functions with Numba njit, which got me down to the 10s of microseconds range. I doubt going from njit to something like Rust or C would be any faster. Maybe for non math dominated tasks it might be different, but for me numpy/scipi or numba is as fast as possible, without having to spend crazy amounts of time on it.

10

u/steadyfan 8d ago

Comparing the speed of a dynamic interpreted language to a static one that compiled machine code.. Let's next make a joke about how much faster a car is that a horse.

→ More replies (2)

16

u/Dhruv_Malaviya 8d ago

Python was still importing the conversation

→ More replies (1)

5

u/RedAndBlack1832 7d ago

Me when scripting language used for scripting and rapid development:

it doesn't need to be fast, and when you want something done fast, you call into a C/C++ library

4

u/TactfulOG 7d ago

r/programmerhumor try not to compare different use case languages for 1 fucking day impossible edition

6

u/tigrankh08 8d ago

piton bad 😡

peak r/ProgrammerHumor

3

u/anzu3278 8d ago

Tbh if grownup software engineers were this upset and defending Scratch as a real language it would be just as funny.

→ More replies (1)

2

u/RED1869 7d ago

Python still being there when Rust is long gone

2

u/heckingcomputernerd 7d ago

If you account for compilation time, you can swap rust and python in this meme lmfao

2

u/Buyer_North 7d ago

same as C++ with Rust

2

u/1_89 6d ago

Counterpoint: python bindings for non-programmers

3

u/Sirico 8d ago

We need this tool by Friday...

3

u/liggamadig 7d ago

Well, the computer's time is cheaper than mine so I'll continue using Python.

3

u/SrWloczykij 7d ago

The world was a much better place when Rust bros were still hiding in their cellars.

4

u/StarLan7 8d ago

Is this still funny?

3

u/not_perfect_yet 7d ago

This is inaccurate, Rust should be unreadable. ;)

3

u/Koltaia30 8d ago

Reality: Reverse roles. Python goes: "How rude". Rust: "Compilation failed: you tried to store a returned reference or something"

2

u/zyxzevn 7d ago

It is the reverse. Rust will still be compiling....

2

u/alliewya 7d ago

Claude, rewrite this meme in rust, make no mistakes

2

u/danfay222 7d ago

Python is only really slow if you have no idea how to use it. Sure it’s never going to beat compiled lower level languages like rust or cpp, but if you use and build proper libraries for your application in python it’s often a lot closer in performance than most people think

2

u/HaDeS_Monsta 8d ago edited 8d ago

I one wrote a Rust project which called a Python server and I had a variable called PYTHON_SKILL_ISSUE_DELAY, because otherwise python could just not keep up

6

u/WiseObjective8 8d ago

That's called rate limiting not the python having some magical delay.

-1

u/HaDeS_Monsta 8d ago

The python server was part of the project and running on the same machine without rate limiting, but the rust program called it twice in a row, which it couldn't handle

6

u/WiseObjective8 8d ago

You cannot have a server without rate limiting even in local. Any webserver you setup with python still will have a default limit on concurrency. Depending on the library you used, you can configure a number for how many requests you want the server to handle at a time. Anything exceeding this number will get rejected. This is different from user level rate limiting. You can handle thousands of req/s given that your config and machine can handle it. What you described sounds like a fault in your setup or you don't know how to work with python.

1

u/Anthonyg5005 8d ago

I haven't seen this image in years

1

u/Fancyness 8d ago

made me chuckle

1

u/Relevant_Research_98 7d ago

Shall we conveniently forget that rust gets compiled for eternity? Also make rust icon bigger.

I've made tools that prevents running `rm /tmp` etc and runs $0.unsafe if args are not sus, it takes ~10 times more space than core-utils' rm.
And it's lucky day if you try to make something with bevy and endup without wasting many gigabytes.

1

u/knowits 7d ago

fixing legacy python scripts is hell because you spend more time waiting for pip install than actually coding. meanwhile rust devs brag about their borrow checker saving them from segfaults while i stare at a yaml indentation error for three hours. shit world we live in where runtime errors are preferred over compile-time anxiety. i just want my code to run fast enough to close my laptop before battery dies

1

u/Understanding-Fair 7d ago

I've met both these people IRL

1

u/jakechance 7d ago

Something was said, not good!  https://youtu.be/MzkWyhzwO1Q

1

u/BoobooSmash31337 7d ago

I would be shocked if PyPi doesn't have a print string intrinsic. Also would assume the string copy dwarf the function call overhead. So they'd do similar work in practice. I assume Python immediately drops to a more native layer to print to stdout.

1

u/DJcrafter5606 7d ago

I have to say the title could be a little bit more original 😅😅😅

1

u/GhostVlvin 7d ago

Rust compiles for ages while python runs for ages
Btw this is rebranding of same meme but with c++ instead of rust

1

u/KevinJRussell 6d ago

They coulda done this with Javascript instead of Rust and gotten the same results

1

u/leropo00 4d ago

I see so to other languages Python comes across either as deaf, stoned or mentally challenged. Then it would amke sense when Python and Ruby get together, to these languages it is like watching two old people argue :D

1

u/BrightFingers 3d ago

Blue vs Red

1

u/CallidUal 3d ago

Ohhh I'm so sorry for Rust 😭😭😭

1

u/CooperDK 2d ago

Meanwhile, AI is done on Python, not Rust.

1

u/AngusAlThor 8d ago

Ridiculous... Python would take several hundred panels to respond.

1

u/ouijiboard 8d ago

The Ol' internet explorer meme.  How you've changed. 

1

u/Krustenbaecker 8d ago

I read with 1Hz temperature sensors and store them. No reason to do this faster.

→ More replies (1)

1

u/Successful_Noise_347 8d ago

Python is not slow. It is just waiting for the C library underneath to finish.

1

u/Dry-Refuse-8132 7d ago edited 7d ago

This is a brain dead take by people. Python can call C libraries or Rust libraries anytime. It more easily integrates with custom kernals (CUDA). OP is the slow one IMO.

Do hard compute tasks using the right libraries, or use your own well written libraries and you can get all the performance you want in python. It's also 10x more readable.

Oh, and the compiler writes all the real code anyway...

1

u/Alternative_Act_6548 7d ago

not a rust fan, but that is funny

1

u/kiochikaeke 7d ago

It's been 0 hours since the last "python is slow/python is just calling C"!

The record is 0 hours!

1

u/SLOOT_APOCALYPSE 7d ago

..............J A V A has........... (Minutes go by) Updated..... Successfully

1

u/throwawayaccountau 7d ago

Now do it with Chinese Python.

0

u/bw_mutley 8d ago

It is 2026, GTA 6 just launched, and we are still arguing for PL war.

0

u/Own_Recommendation49 7d ago

The amount of salty people who are python shills is hilarious

0

u/hraath 7d ago

Not shown: rust showing up and python staring at it wonders what it's doing for an hour type checking and compiling

-1

u/pstwndnd 8d ago

Python is the Internet Explorer of programming languages.

-1

u/an_alex_at_a_time 8d ago

Every conversation with women that I've matched online aka bots went the same way lol

-1

u/slaymaker1907 8d ago

I'm going to push back on this and say that high-performance Python is totally possible. There's Cython which is super fast and if it's numerical code, you can use numba.

And obviously Python has very good C-interop. Rust has interop too, but it doesn't place nicely with the the borrow checker.

1

u/anzu3278 8d ago

So python is fast as long as you don't use python?

1

u/lmcinnes 7d ago

I have written pure python libraries that use numba for JIT compilation that have been performance comparable to C++ and Rust libraries for the same task. It is certainly quite possible. Sure one might be able to wring out a little extra performance with a compiled language, but not very much, and likely with quite a lot of effort.

0

u/slaymaker1907 8d ago

What part of Cython did you not read?

2

u/anzu3278 8d ago

The part after it says compiles python into something else.

0

u/korneev123123 8d ago

Python strong sides are being easy to read and easy to write. And a lot if wonderful libraries, making it even easier. Unfortunately, it no longer matters, since all the writing is made by ai. It is no longer my language of choice for web api :(

0

u/ratbastid 7d ago

It's like my joke about Java.

Knock knock.
Who's there? . .
.
.
.
.
Java.

0

u/turtle_dragonfly 7d ago

Reminds me of an older joke:

Knock knock

Who's there?

(long pause) ...... ....... ..... ...... Java!

⠀

⠀

(VM startup time is a pain)

0

u/Ok_Actuary8 7d ago

FUCK YOU TONY!

0

u/Responsible-Mind3533 5d ago

I suck at programming.... OP probably.

-26

u/budgiebirdman 8d ago

An actual funny programming related joke in the sub. All the butthurt pythonistas crawling out of the woodwork saying more things we can laugh at is a bonus.

-1

u/Sea-Fishing4699 8d ago

Python programmers are way more abundant and cheaper 

-1

u/Creepy_Jeweler_1351 8d ago

Python is not that slow as you can think. However it will use a shitload of ram and cpu. And if you want to deploy it on a tiny device it will require a huge runtime instalation

-3

u/DT-Sodium 7d ago

Python is so dumb it would probably have misspelled its name.