• Corbin
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 months ago

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

    • FizzyOrange
      link
      fedilink
      arrow-up
      1
      arrow-down
      2
      ·
      5 months 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!