On Wed, Dec 2, 2020 at 9:10 AM Paul Sokolovsky firstname.lastname@example.org wrote:
On Wed, 2 Dec 2020 03:02:26 +1100 Chris Angelico email@example.com wrote:
If there are special-purpose cut-down implementations that provide a more restricted environment in return for some other feature (say, "being able to run in a web browser", or "being able to run on a microcontroller"), then that's fine,
Kinda yes, except not as vulgar as examples above. More like "being able to develop a JIT which doesn't cost million dollars" (extra points if that still can run on a microcontroller!).
That's completely the opposite of what I was talking about, then. If the goal is to develop a JIT compiler, then it should surely be part of the main implementations of the language - the ones that are broadly compatible with each other. Cut-down Python implementations are NOT fully compliant with the language spec, and that's okay, because nobody expects them to be.
If the restricted execution model is incompatible with most Python scripts, why would anyone bother to use it? Does it actually offer performance advantages better than PyPy, which JIT-compiles and is able to run normal Python scripts?