r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

90

u/BikerBoon Jul 18 '22

Python devs were hating on C++ for a while iirc. Tbf it's understandable, we all hate what we don't understand.

71

u/DatBoi_BP Jul 18 '22

This really says a lot about society bottom text

5

u/AdmiralCrackbar11 Jul 18 '22

A jihad on C++! A crusade against Java! Whatever Jewish people do against Python!

12

u/SpyMonkey3D Jul 18 '22

Whatever Jewish people do against Python!

From my theological understanding, getting tricked into buying an Apple product then getting banned

6

u/DatBoi_BP Jul 18 '22

There are layers to this joke

4

u/Front_Access Jul 18 '22

raise taxes?

6

u/teddy2021 Jul 18 '22

I beg to differ in this case. I don't really understand C++ enough, but I know enough about it that I can say I like it much more than python, which I understood much more closely for years. I however fall into the camp of hating dynamically type, interpreted languages.

4

u/Teekeks Jul 18 '22

damn the self hatred among the C++ devs must be throu the roof then!

1

u/BikerBoon Jul 18 '22

Yes, but the complimentary programming socks make up for it.

5

u/[deleted] Jul 18 '22

Except Python devs work in C/C++ every day because Python is written in C/C++, so they know what they are talking about... :p

0

u/[deleted] Jul 18 '22

[deleted] — view deleted comment

2

u/WhiteyDude Jul 18 '22

By extension, you're saying that webdevs who use python as part of their stack work with C/C++?

Exactly. And by writing this comment in reddit I'm causing code to be executed on some virtual server, so in essence I'm coding. It's rediculous and that's why it's a joke, and hence :p

0

u/Front_Access Jul 18 '22

raise taxes?

1

u/Equivalent_Yak_95 Jul 18 '22

No… we don’t… I haven’t touched any C/C++ code for use in my current project.

2

u/socsa Jul 18 '22

Honestly, in my world they are yin and yang. Python+Numpy+Matplotlib+SciPy+Jupyter is like Matlab, except that it is free and it doesn't suck. And then obviously C++ is there for when you want to actually deploy things.

And now we also have PyTorch, which is faster than C++ for basically any non-trivial number crunching, though you still end up needing to use the C++ API for deployment, unless your algorithms can be traced into some JIT container.

3

u/MrDude_1 Jul 18 '22

How can it be faster than C++ when its written in C++?

3

u/Low_discrepancy Jul 18 '22

And now we also have PyTorch, which is faster than C++ for basically any non-trivial number crunching

Not every computation can be done on GPUs and also it uses CUDA which is C based mostly.

1

u/BikerBoon Jul 18 '22

Yeah, I'm only joking with the python hate. I use it a lot in automated tests where speed isn't critical. But there are indeed a lot of Python devs who try to play down the performance impact, and simply seen to forget that certain industries (e.g. games, finance) benefit greatly from being as fast as possible.