3 ms·
Man, PyPy got destroyed, let alone CPython! As a Python lover, that's pretty disheartening. I'm not an expert in many of these languages, but it would seem as t
by acjohnson55 14y ago
Man, PyPy got destroyed, let alone CPython! As a Python lover, that's pretty disheartening. I'm not an expert in many of these languages, but it would seem as though it should be possible to build a Python interpreter as fast as V8, even without using Numpy to accelerate the math. Anybody have any thoughts as to why PyPy is such a poor performer here?
- RivieraKid 14y agoPython just 8x slower than C and 4x slower than Java? That's actually pretty good result for Python.
- cdavid 14y agoI think LuaJIT is the outlier, not python. All other implementations got lots of resources to make them fast, except for LuaJIT.
- copx 14y agoPyPy simply isn't at the same level as V8 and LuaJIT yet. V8 is a professional, full-time project employing some of the best programmers money can buy. And LuaJIT.. well LuaJIT is written by a fucking genius 10x programmer. Let me quote him: " The reason why X is slow, is because X's implementation is slow, unoptimized or untuned. Language design just influences how hard it is to make up for it. There are no excuses. " Source: http://www.reddit.com/user/mikemike http://www.reddit.com/user/mikemike (that's his reddit account) Python (and Ruby for that matter) could reach a comparable performance level if people with the necessary skills invested the necessary amount of effort.
- cdavid 14y agoIndeed, that's what I meant, even though my phrasing was unclear. Thanks for clarifying.
- Symmetry 14y agoThat's actually an impressively good result. All that wonderful expressive power that Python has comes at a price in implementation complexity, and there are a lot of different cases that the JIT needs to handle with Python. Lua, by contrast, is pretty much Scheme in ALGOL's clothing and is ridiculously simple inside.
- jayflux 14y agoPython is a High Level language, it was never designed with the intention of being as fast as C or Java or other lower level languages. As someone else pointed out the V8 has had a lot of backing and full time development, where as pypy, Cpython hasn't had as much. Pypy is still showing massive improvements despite being the slowest on that list.