3 ms·
PyPy has a JIT because using Python as the implementation language made it simple to build a runtime generator instead of a single runtime implementation, so RP
by spiffytech 6y ago
PyPy has a JIT because using Python as the implementation language made it simple to build a runtime generator instead of a single runtime implementation, so RPython (the underlying PyPy tech) can generate a JIT and non-JIT runtime from the same source code. Conversely, the CPython team doesn't have the resources to make a JIT runtime the bespoke way that's more typical for these projects.
https://morepypy.blogspot.com/2011/04/tutorial-part-2-adding-jit.html https://morepypy.blogspot.com/2011/04/tutorial-part-2-adding...
- naniwaduni 6y agoCPython isn't a JIT because its goals as a portable reference implementation would be much harder to achieve with a JIT. To put it another way, there's a reason PyPy trails CPython language features on the scale of literal years. This is not explained by the affordances of the language they're written in! They're just projects with very different requirements which, on some platforms, happen to run a lot of similar-looking code.
- ghostwriter 6y ago> there's a reason PyPy trails CPython language features on the scale of literal years. the reason is under-funding, and the lack of developers to the cause as a consequence, not the portability complexities of jit.