News for hackers. Stuff that matters.
Re:Ask HN: Is C/C++ really faster than Python? by aikah on Sunday June 21, 2015 @10:44AM (#9753621)
I wish people would stop saying "C/C++" , these are 2 different languages.

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.

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:

https://lwn.net/Articles/542457/

Re:Ask HN: Is C/C++ really faster than Python? by omni on Sunday June 21, 2015 @10:50AM (#9753631)
> 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

https://rpython.readthedocs.org/en/latest/faq.html

Re:Ask HN: Is C/C++ really faster than Python? by njbooher on Sunday June 21, 2015 @11:01AM (#9753659)
Various packages are incompatible with PyPy.

http://pypy.org/compat.html

Re:Ask HN: Is C/C++ really faster than Python? by tyho on Sunday June 21, 2015 @11:02AM (#9753664)
PyPy is written in a subset of python called RPython. It is translated into c then executed.