News for hackers. Stuff that matters.
Re:Faster CPython (2021) [pdf] by beagle3 on Monday January 24, 2022 @07:41AM (#30056919)
He does not address JIT efficiency here. A likely implementation is just “lets drop all assumptions related to the type of A”. It would work, but frequent use would kill performance.

Python has all the issues that “become” has, with hundreds of “assumptions might have changed” points along common execution paths.

Liajit, for example, hoists everything it can outside of loops rather quickly, because it knows the cases “become” or Python equivalent can happen, and they are rare and uncommon in idiomatic Lua code.

There are no comments on this comment yet.