4 ms·
> Python itself is written in C, not in Python. Which should give you clues to mediate and find your own answers. PyPy is written in Python and is much faster
by omni 11y ago
> Python itself is written in C, not in Python. Which should give you clues to mediate and find your own answers.
PyPy is written in Python and is much faster than CPython in a lot of cases, so I'm not sure the argument you're making here is valid. http://speed.pypy.org/ http://speed.pypy.org/
- paramsingh 11y agoThis might be a silly question as I don't know much about compilers or interpreters, but how is that possible? Also, why hasn't the Python community tried to make PyPy the default then?
- tyho 11y agoPyPy is written in a subset of python called RPython. It is translated into c then executed.
- empyrical 11y ago> how is that possible PyPy is written in a restricted subset of Python called RPython, which gets translated into C https://rpython.readthedocs.org/en/latest/faq.html https://rpython.readthedocs.org/en/latest/faq.html
- njbooher 11y agoVarious packages are incompatible with PyPy. http://pypy.org/compat.html http://pypy.org/compat.html