3 ms·
You won't get high performance out of Python directly, but there are a lot of Python libraries that use C or a powerful low level language underneath. The heav
by loudmax 4y ago
You won't get high performance out of Python directly, but there are a lot of Python libraries that use C or a powerful low level language underneath. The heavy lifting in so much of machine learning is CUDA, but most people involved in ML are writing Python.
- moffkalast 4y agoSure, but what's not really python per se. One could also call C++ libraries from java via JNI and pretend java is super fast. If people write program logic in python it will run at python speeds. Otherwise you're not really writing python, like nobody says some linux native program is bash because it happens to be launched from a bash script.
- martopix 4y ago> Sure, but what's not really python per se. But that's exactly the strength of Python: it's an interface language. It's meant to make pretty sophisticated things like CUDA easy for everyone.
- kaba0 4y agoJava is super fast though, it almost never uses JNI as it doesn’t need it as opposed to Python. It uses JNI for integrating with the C world (e.g. opengl bindings).
- yamtaddle 4y ago> Sure, but what's not really python per se. One could also call C++ libraries from java via JNI and pretend java is super fast. But that's how every scripting language obtains good-not-just-decent performance. A strong culture of dropping down to C for any halfway-important library is why PHP's so hard to beat in real-world use, speed-wise (whatever its other shortcomings).