• Corbin@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 month ago

    You’re thinking of CPython. PyPy can routinely compete with C and C++, particularly in allocation-heavy or pointer-heavy scenarios.

    • FizzyOrange@programming.dev
      link
      fedilink
      arrow-up
      1
      arrow-down
      2
      ·
      1 month ago

      I am indeed thinking of CPython because a) approximately nobody uses PyPy, and b) this article is about CPython!!

      In any case, PyPy is only about 4x faster than CPython on average (according to their own benchmarks) so it’s only going to be able to compete with C++ in random specifics circumstances, not in general.

      And PyPy still has a GIL! Come on dude, think!