3 ms·
For starters, consider that almost every operator in Python is a dynamic method call under the hood. This includes value equality and hashing, which also affect
by int_19h 4y ago
For starters, consider that almost every operator in Python is a dynamic method call under the hood. This includes value equality and hashing, which also affects e.g. dict keys. Oh, and all built-in types can be extended and their behavior overridden.
And then there's descriptors: https://docs.python.org/3/howto/descriptor.html https://docs.python.org/3/howto/descriptor.html
- tgma 4y agoThose are hardly unsolvable issues with a JIT as they are static for the vast majority of cases. Solutions have been proposed since the 90s with Self and Strongtalk[1]. Doing that, plus 100% compatibility with CPython extension API, while preserving some expectations of deterministic destruction in Python, are the challenges one would face. [1]: http://www.strongtalk.org/ http://www.strongtalk.org/