I'm pretty sure Python doesn't bother guessing the type at runtime anyway-- the only time where this matters is doing an operation on two different types, such as string and numerical addition, but IIRC Python does
Keep type information on the object
Doesn't fail directly on type mismatch, but rather when the defined magic method for the operator doesn't support the other type.
12
u/lambdaq django n' shit Jul 16 '18
tl;dr
GIL is slow because obviously everyone runs Django using native threading.
no JIT/AOT and it's a must have for fast languages
Python has no static type so guessing the type during runtime is incredibly hard.
I think CPython is slow solely because it's never been a top priority in PSF.