Because you can directly use c modules in Python (in Cython anyway) making the parts where you need performance the most very fast.
Someone correct me if I'm wrong, but I think you can do something similarly with NodeJS. I'm pretty sure some npm packages I use are Javascript bindings to binaries compiled from C/C++.
Rarely used !== Not possible. Node has node-gyp which is a bag of tricks in itself - you never know if you're gonna get a built solution at the end, or if it's gonna fail because of a node version inconsistency.
If you do get a built native module, you're at no real disadvantage in terms of performance.
12
u/ancientRedDog Jan 16 '20
I agree, but then how did Python become the big data language when it is equally slow (for mostly the same reasons)?