Comment

Monday Afternoon Music: Don Ross

209
SixDegrees2/22/2010 3:19:16 pm PST

re: #187 HoosierHoops

Exactly Ludwig…We invest in new code and great hardware for our Scientists…They deserve nothing less..
I think all climate data should be in C++ Because it can handle complex matrix mathematics and is a structured language that allows a million lines of code with no problems at all.

Problem with C++: it’s performance is roughly an order of magnitude worse than C when it comes to heavy number crunching. There are ways to work around this, but no matter what you do, compilers for C++ simply haven’t been optimized to the same extent that older compilers for simpler languages have. If performance is important - and it typically is in cases like these - I’d only use C++ for the user interface layer, and stick to C for the computational core.

C is almost as good as Fortran when it comes to performance, close enough that the benefits you’ve mentioned outweigh the fairly small difference.