4 ms·
The article links to a presumably extremely specialised benchmark[0] with some surprising results. To me as a simple dev, at least: Java (JIT) beats C++ and ev
by mcv 3y ago
The article links to a presumably extremely specialised benchmark[0] with some surprising results. To me as a simple dev, at least:
Java (JIT) beats C++ and even Scala.
What is Julia HO and why is it so ridiculously fast?
The speed difference between Python and Pypy is massive. Is there any reason not to use Pypy? Shouldn't it be the standard?
[0] https://github.com/jinyus/related_post_gen/ https://github.com/jinyus/related_post_gen/
- enticeing 3y agoLooks like the HO means hand optimized, with special datastructures for this benchmark. see: https://github.com/jinyus/related_post_gen/#user-content-fn-1-1b3cf9e6cf1c5b1a68431c1210d8d6d9 https://github.com/jinyus/related_post_gen/#user-content-fn-...
- unstruktured 3y agopypy and cpython don't mix well with each other so you have to create a whole new universe of packages for pypy. Interop with c libraries also adds complexity to the transition. In addition, vanilla python is finally starting to tackle the worst performance problems (like the GIL getting removed for instance), so they might catch up to pypy eventually. There's also several different JITs installable into cpython systems these days too which is less painful than switching to pypy. Personally, I am saddened pypy didn't replace standard python, but even in my own career I couldn't find a big speed difference in practice because all the heavy lifting utilizes C, C++, or fortran libraries wrapped by thin python apis.
- kortex 3y agoPypy doesn't work with all libraries (as well as certain function calls in std), and since that's one of the biggest draws of python, it makes it a non-starter much of the time.