7 votes

Resurrecting Fortran

Tags: fortran

4 comments

  1. [3]
    joplin
    Link
    I'm curious what the main use-case is here? The blog post was long and mainly about the work they've done to build a web site, community, IDE, and package manager. That's all very interesting, but...

    I'm curious what the main use-case is here? The blog post was long and mainly about the work they've done to build a web site, community, IDE, and package manager. That's all very interesting, but what I'd like to know is when would I want to use Fortran instead of a more modern language? And what are the features of "modern" Fortran?

    It looks like the website fortran-lang.org has that information:

    High performance

    Statically and strongly typed

    Easy to learn and use

    Versatile

    Natively parallel

    I think the brief FAQ at the bottom of that page explains it best:

    What is Fortran used for?
    Fortran is mostly used in domains that adopted computation early--science and engineering. These include numerical weather and ocean prediction, computational fluid dynamics, applied math, statistics, and finance. Fortran is the dominant language of High Performance Computing, and is used to benchmark the fastest supercomputers in the world.

    Should I use Fortran for my new project?
    If you're writing a program or a library to perform fast arithmetic computation over large numeric arrays, Fortran is the optimal tool for the job.

    Looks interesting! I'm not working on any large-scale simulations, so it's probably not useful for me, but I like hearing about these things.

    3 votes
    1. [2]
      skybrian
      Link Parent
      I think the only reason to learn it would be to work on some particular program that’s written in FORTRAN, or maybe out of interest in computing history. It’s the sort of thing where if you don’t...

      I think the only reason to learn it would be to work on some particular program that’s written in FORTRAN, or maybe out of interest in computing history. It’s the sort of thing where if you don’t know why you need it, you don’t.

      For new scientific code, Julia would probably be a better fit if the appropriate libraries are available, or maybe Python/Numpy or R.

      3 votes
      1. joplin
        Link Parent
        Yeah, that's kind of what I was thinking, but I was interested to see if there was something I was missing. It doesn't seem like it.

        Yeah, that's kind of what I was thinking, but I was interested to see if there was something I was missing. It doesn't seem like it.

        2 votes
  2. arghdos
    Link
    The biggest problem I’ve run into with my occasional need to use FORTRAN is the lack of a well defined (or maybe just freely available? Hard to say) standard. When you run into one of the myriad...

    The biggest problem I’ve run into with my occasional need to use FORTRAN is the lack of a well defined (or maybe just freely available? Hard to say) standard.

    When you run into one of the myriad of “oddities” that confuse the hell out of us a primarily C/C++ based folks, I’m reduced to hoping I know enough about the lingo to find my issue in stackoverflow (typically with little success).

    Give me a cppreference and we’ll talk.

    3 votes