Hacker News new | past | comments | ask | show | jobs | submit login

> Up to a few years ago, I found often myself in discussions with colleagues on the benefits of Fortran vs. less horrible languages such as C.

In the context of numerics, C is in no way a "less horrible language" than Fortran. The necessity to use pointers in C for multidimensional arrays, and the large amount of "undefined behavior" in the C standard makes it almost impossible to write bug-free number-crunching code. In particular when the person writing the code is a scientist/engineer, not a professional programmer or computer scientist, they are guaranteed to shoot themselves in the foot with C or C++.




Yea...I can write reasonably performant Fortran, but have no clue how to do matrices in C without resorting to the numerical methods book that doesn't allow you to use it's algorithms and has the dumbest license ever (is it called numerical recipes in C)...the Amazon comments are illuminating.


We commonly used the GSL library.

http://www.gnu.org/software/gsl/


That might work for siof my use cases, but it stinks that you can't use it for a commercial product.


GSL has its own set of license 'problems' to be aware of in that it's GPL and not LGPL.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: