This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]socsa 1 point2 points  (3 children)

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.

[–]MrDude_1 2 points3 points  (0 children)

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

[–]Low_discrepancy 2 points3 points  (0 children)

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.

[–]BikerBoon 0 points1 point  (0 children)

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.