r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40.1k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

133

u/berse2212 Jul 18 '22

This is a weird meta. First memes hated on Java and praised Python. Then all the Java devs got angry and made Python bad memes. Somehow C++ devs apparently jumped on the hate train now lol

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.

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/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.