Re:Python 3.11 is faster than 3.8
by qbasic_forever on Wednesday October 26, 2022 @12:45PM
(#33346270)
That's pypy 3.9.12, it has a JIT implementation to interpret python. The other two are standard CPython which doesn't JIT interpret the code.
[ Parent
| on HN ]
Oops, thanks for clarifying.
Re:Python 3.11 is faster than 3.8
by charlieyu1 on Wednesday October 26, 2022 @01:46PM
(#33346995)
Does pypy support numpy now?
yes
$ pip install numpy
<snip building wheel>
$ python --version && python -c "import numpy; print(numpy.identity(5))"
Python 3.9.12 (05fbe3aa5b0845e6c37239768aa455451aa5faba, Mar 29 2022, 09:54:47)
[PyPy 7.3.9 with GCC Apple LLVM 13.0.0 (clang-1300.0.29.30)]
[[1. 0. 0. 0. 0.]
[0. 1. 0. 0. 0.]
[0. 0. 1. 0. 0.]
[0. 0. 0. 1. 0.]
[0. 0. 0. 0. 1.]]