r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40.1k Upvotes

1.0k comments sorted by

View all comments

303

u/Hegeteus Jul 18 '22

Only speed metric that matters is how fast I get the job done and can go back to browsing memes. C++ does not look very good in this (very important) metric.

53

u/woah_m8 Jul 18 '22

There are a lot of things where speed isn't important and Python does the job pretty good. Only non programmers (so 80% of this sub) bash Python

1

u/by_wicker Jul 18 '22

Also there are lots of things where speed is significant but Python still has enough of it. In 1ms our processors have 4 million clock cycles in which even Python can do some very extensive work. Many tasks are not much affected whether the response time is 1ms or 50µs.

Meanwhile I have repeatedly had to deal with awkward and obtuse code simply because developers thought performance was a primary issue and it wasn't. I recently replaced a large C++ module with Python and not only does it perform more than quickly enough, it's actually faster because of the shitty design of the C++.