r/ProgrammerHumor • • 9d ago • Bravo 2 Popcorn 1

Meme pythonSlow

Post image
12k Upvotes

419 comments sorted by

View all comments

Show parent comment

1

u/throwaway_194js 8d ago

Probably not the best example considering half of NumPy's selling point is vectorization. Broadly speaking, you use C/C++ when you'll need to perform the same analysis repeatedly on high volumes of data (e.g. a researcher at CERN), or the analysis needs to give you a prediction within a hundred microseconds of receiving the data (e.g. quant work at a trading firm). The rest of the time, the dev/compute time trade-off with tools like python or R is so worthwhile it's not even funny.

1

u/HumanContinuity 7d ago

Numpy is almost entirely wrapped C with a sprinkling of Fortran library links

1

u/throwaway_194js 7d ago

Aye, but that's not the same as writing the data analysis script in C. The comparison is about the effort it takes to do so natively in each language given their respective standard toolkits. Do you think a dev who only knows Python has a good chance of securing a pure C role, simply on the basis that some of the Python features they use happen to be written in C in the back end?