News for hackers. Stuff that matters.
Re:Python 3.11 is faster than 3.8 by metadat on Wednesday October 26, 2022 @12:44PM (#33346250)
Why is there such a dramatic performance gap / slowdown for 3.10 + 3.11 compared to 3.9.12?
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.
Re:Python 3.11 is faster than 3.8 by metadat on Wednesday October 26, 2022 @01:32PM (#33346840)
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?
Re:Python 3.11 is faster than 3.8 by llimllib on Wednesday October 26, 2022 @01:53PM (#33347100)
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.]]
Re:Python 3.11 is faster than 3.8 by arc-in-space on Wednesday October 26, 2022 @12:45PM (#33346269)
That's 3.9.12 of PyPy, not CPython
Re:Python 3.11 is faster than 3.8 by fordsmith on Wednesday October 26, 2022 @12:47PM (#33346289)
Not OP, but are you taking into consideration that it is not Python 3.9, but pypy, which is distinct