4 ms·
> The pypy is faster than cpython (the default, official implementation of Python) despite being written in Python This is far overreaching and as such very wr
by mattdeboard 15y ago
> The pypy is faster than cpython (the default, official implementation of Python) despite being written in Python
This is far overreaching and as such very wrong. Also, "x language is faster than y language" is a meaningless comparison. Faster at what? In what cases? Pypy does some things faster than Cpython in some cases.
>PS: Some "Python" in above sentences might actually be rpython. But as it is subset of python it probably doesn't matter.
I don't know for sure that this is wrong, but it sure seems to be.
- rplnt 15y agoWell, faster or equal, eventually in everything. Anything that pypy does slower than cpython is considered a bug as far as a I know. But I was not making a definitive academic statement or anything, just saying that it is, in general, faster. After all, it is faster in mother of all benchmarks, the fib function :) (edit: on my computer) As for the PS; RPython is statically typed Python (perhaps some other extra restrictions apply). Not type-annotated or anything, just pure python written in a certain way. So it is a subset. As for what "Python" should have been "RPython", it was the first one. The pypy interpreter is written in RPython. But my statement was still correct because RPython is Python.