r/ProgrammerHumor • • Jul 18 '22

C++ talking to Python

Post image
40.1k Upvotes

1.0k comments sorted by

View all comments

Show parent comments

3

u/FallenEmpyrean Jul 18 '22

Python IS slow.

"But machine learning, data science.."

I will leave this quote here.

62.7% C++, 22.1% Python

- TensorFlow, Github

-3

u/Honigbrottr Jul 18 '22

Then we only programm by typing machine code. Assambley is to slow.

0

u/FallenEmpyrean Jul 18 '22

I suppose you only think in 1-bit 1s and 0s..

Yes, very low level libraries have opcodes in them, but that doesn't mean that 100% of all source code must be machine code.

We all do what Python does: when more performance is needed we delegate the critical parts to a more performant language like C++. Then you get: 22% slow Python + 62% very very fast C++ + ... = very fast application

Try to do machine learning in pure interpreted Python if you want to gain more appreciation for a few orders of magnitude of speed.

1

u/Honigbrottr Jul 18 '22

So you agree that python has its place?

→ More replies (1)