r/Python • • Jan 05 '18

Really??

Post image
2.0k Upvotes

317 comments sorted by

View all comments

Show parent comments

-5

u/icp1994 Jan 05 '18 edited Jan 05 '18

way faster than we do in any other language.

how? no way it should be possible with equal quality of C++ codes

edit: why am I getting downvoted for saying python codes shouldn't be way faster than equivalent c++ code. expected this sub to be more mature

13

u/Dantes111 Jan 05 '18

Downvotes are because you misread what he said. The benefit in Python is savings in developer time, not computing time. Yes, "equal quality" C++ code would likely run faster. What /u/jgardner was saying is that it would take you much longer to write that "equal quality" code in C++ compared to Python.

3

u/KronenR Jan 05 '18

with hundreds of memory leaks in c++ codes

FTFY

4

u/DarkLordAzrael Jan 05 '18

Now that we have std::unique_ptr memory leaks are actually pretty hard to introduce in c++. I know a decent number of developers who won't let code with 'new' or 'malloc' past review.

5

u/icp1994 Jan 05 '18

and a single thread in python

0

u/KronenR Jan 05 '18

You are the inmature who cares about downvotes

2

u/icp1994 Jan 06 '18

well duh maybe it's my stackoverflow experience where we are expected to get explanation for downvotes.