3 ms·
All my points above are about the language semantics of Python, not the implementation. Some of them may be optimized some of the time with a clever enough JIT
by jakobnissen 4y ago
All my points above are about the language semantics of Python, not the implementation. Some of them may be optimized some of the time with a clever enough JIT - but only a few of these points. That's why PyPy is not as fast as C.
- tekknolagi 4y agoPyPy very much can handle all of the above cases! You should check out some of their recent papers about unboxing fields in objects. Some things are language semantics (__dict__, etc) but are often faked by proxy objects since most people don't actually care about the dict.
- jakobnissen 4y agoCan it autovectorize integer operations on lists? Can it remove branches from accessing fields? I doubt it.
- tekknolagi 4y agoI am pretty sure it can remove branches from accessing fields, but I am not sure about vectorization.