5
Is Python really that useless?
(lemmy.world)
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Follow the wormhole through a path of communities !webdev@programming.dev
…Have you tried ML projects in Rust?
I mean, ML/data science devs use Python because the bajillion underlying libraries and implementations are already there.
It’s not perfect. But that’s fine, because it’s a pretty good prototyping language for researchers, and anything performance sensitive is done in libraries anyway.
If you want a real world example, see: Mistral.rs vs vllm.
PyTorch in particular is literally just a dispatching front end for CUDA anyway. It's actually an incredibly powerful tool for GPGPU development, and you will struggle to make faster GPU DSP by hand.
People making these arguments are just incredibly out of date. You can basically use python to trace super optimized GPU compute kernels and then drop them into whatever language you want via torchscript, onnx, trt, whatever.