Hacker News new | ask | show | jobs
by revskill 1115 days ago
So in theory, if we ported python libraries into JS, the performance could be better than Python ?
2 comments

Python bindings for native libraries would still be the same, they are the same native libraries, while pure Python code would speed up thanks to JavaScript runtimes having JITs.
At work we do some pretty significant parallelised computation (using Node and Rust) and that has equivalent performance to a relevant python based library.

There are nuances to how data enters and exits the VM runtime which means I couldn’t say with confidence if performance would be better or worse in the general case - but either direction is at least technically viable.

i was thinking about that, seems like a good deal overall with limited overhead.