3 ms·
> we have often been disappointed by how many [stdlib modules] use native code - even in PyPy! The CPython interpreter is so slow that it makes sense to implem
by pansa2 6y ago
> we have often been disappointed by how many [stdlib modules] use native code - even in PyPy!
The CPython interpreter is so slow that it makes sense to implement as much as possible in C. In the past, I've used this as an argument against slow interpreted languages - a faster implementation would not only run code faster, it would allow code to be written faster because more of it could be in a higher-level language.
However, I'm surprised that PyPy uses a lot of native code - not only does it have a fast JIT, but its whole raison d'etre is to be Python-written-in-Python - that's even the project's name!