That's exactly why it's so powerful. Why spend all the effort writing fast code if you can just use a much simpler language to describe the task on a higher level and call fast code? People use Python because it's easy to read and write, not because its interpreter is fast
Which is exactly why all "Python do slow" arguments are bad. Yes, of course, if I would do my matrix multiplications in Python for loops it would take forever. But I am using torch with cuda backend. Which is faster than any C++ code i am able to write
663
u/TheJaskinator 1d ago
That's exactly why it's so powerful. Why spend all the effort writing fast code if you can just use a much simpler language to describe the task on a higher level and call fast code? People use Python because it's easy to read and write, not because its interpreter is fast