Why is fortran used for scientific computing? -
Why is fortran used for scientific computing? -
i've read fortran still heavily used scientific computing. code heavily invested in fortran makes sense me.
but there reason utilize fortran on other modern languages new project? there language design decisions in fortran makes much more suitable scientific computing compared more popular languages (c++, java, python, ruby, etc.)? example, there specific language features of fortran maybe allow numeric optimization in compilers much higher grade compared other languages mentioned?
fortran is, improve or worse, major language out there designed scientific numerical computing. it's array handling nice, succinct array operations on both whole arrays , on slices, comparable matlab or numpy super fast. language designed create hard accidentally write slow code -- pointers restricted in such way it's obvious if there might aliasing, standard illustration -- , optimizer can go town on code. current incarnations have things coarray fortran, , concurrent , forall built language, allowing distributed memory , shared memory parallelism, , vectorization.
the downsides of fortran flip side of 1 of upsides mentioned; fortran has huge long history. upside: tonnes of great libraries. downsides: tonnes of historical baggage.
if have lot of number crunching, fortran remains 1 of top choices, why many of sophisticated simulation codes run @ supercomputing centres around world written in it. of course of study terrible, terrible, language write web browser in. each task tool.
fortran
Comments
Post a Comment