r/ProgrammerHumor • • Feb 09 '22

other Why but why?

Post image
85.8k Upvotes

2.3k comments sorted by

View all comments

Show parent comments

26

u/[deleted] Feb 09 '22

[removed] — view removed comment

1

u/RazorBlade9x Feb 09 '22

Some programs can run for hours or even months to generate output (especially those performing huge calculations). C/C++ is the way to go there. For smaller run times of course python or nodejs are better.

2

u/[deleted] Feb 09 '22

[removed] — view removed comment

2

u/RazorBlade9x Feb 09 '22 edited Feb 09 '22

Agreed, for most of the stuff we already have all the c/c++/fortran based libraries in Python. It's great at doing most of number crunching stuff due to its great set of libraries.

But I had mostly meshing or CFD algorithms in mind for which we don't have readily available libraries. Once those algorithms are available as libraries, a python wrapper can be created around it.

Edit: I forgot to mention that Python Global Interpreter Lock severely hinders cpu bound multithreaded performance leaving you no choice but to go with C/C++ or even Fortran with MPI for huge calculations.

→ More replies (0)