Re:Ask HN: Is C/C++ really faster than Python?
by danieldk on Sunday June 21, 2015 @11:11AM
(#9753696)
I wish people would stop saying "C/C++" , these are 2 different languages.
That's disingenuous. C++ is largely a superset of C, to the point that a large C project such as gcc could be compiled with a C++ compiler without too much effort:
> 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/
Re:Ask HN: Is C/C++ really faster than Python?
by paramsingh on Sunday June 21, 2015 @10:54AM
(#9753642)
This 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?
Re:Ask HN: Is C/C++ really faster than Python?
by empyrical on Sunday June 21, 2015 @11:07AM
(#9753682)
> how is that possible
PyPy is written in a restricted subset of Python called RPython, which gets translated into C
Python* itself is written in C, not in Python. Which should give you clues to mediate and find your own answers.
*: Python, the canonical implementation.