3 ms·
This is the way any interpreted language works, the interpreter has to be written in something and for good performance this has to be a compiled language
by glutamate 3y ago
This is the way any interpreted language works, the interpreter has to be written in something and for good performance this has to be a compiled language
- mkl 3y agoUsually. Pypy is a counterexample, with a JIT compiler written in Python: https://www.pypy.org/ https://www.pypy.org/
- jitl 3y agoIt’s written in a very restricted variant of Python, rpython: https://rpython.readthedocs.io/en/latest/rpython.html https://rpython.readthedocs.io/en/latest/rpython.html
- mkl 3y ago"RPython is a subset of Python2 that can be statically compiled. The PyPy interpreter is written mostly in RPython (with pieces in Python), while the RPython compiler is written in Python." - https://rpython.readthedocs.io/en/latest/getting-started.html https://rpython.readthedocs.io/en/latest/getting-started.htm...