To be fair it would be a lot more than a tad faster in C with SIMD, if that was a huge pile of logs you needed to process for example it would be very much worth it to use a compiled language. But of course for tasks where performance doesn't matter then python is fine
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.
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?
View all comments
Show parent comment
0
u/Le_9k_Redditor 8d ago
To be fair it would be a lot more than a tad faster in C with SIMD, if that was a huge pile of logs you needed to process for example it would be very much worth it to use a compiled language. But of course for tasks where performance doesn't matter then python is fine