Slashdot Mirror


FORTRAN 2003 Accepted as Standard

GraWil writes "Despite the nay sayers citing its death in 1965, the FORTRAN standards committee has now released the final FORTRAN 2003 specification. In an announcement to the comp.lang.fortran group, Michael Metcalf annouced that 'Fortran 2003 has passed its ballot with flying colours: 20 yeses, 0 noes, 8 abstains.' Strictly speaking, the 2003 and past standards are not freely available but drafts can be found online. FORTRAN 2003 is an upwardly-compatible extension of the current standard, FORTRAN 95, adding and extending support for exception handling, object-oriented programming, and improved interoperability with the C language. In other FORTRAN news, the GNU FORTRAN 95 compiler has made amazing progress over the past year. Gfortran will be part of gcc-4.0 when released (probably in 2005)."

8 of 59 comments (clear)

  1. Have they addressed any of the weirdnesses? by gowen · · Score: 5, Interesting
    Three things bug me about F95, which I use every day
    1. No standardised/portable method for handling command line parameters.
    2. Undefined behaviour for short-cutting logical ors. e.g. the behaviour of
      if(flag.and.function(var)) then...
      is undefined if flag is false and function() has side effects.
    3. The things you *can't* use parameters for (like fixing lengths in format statements) without running fpp/cpp on the code first
    4. No standardised meanings for

      real(kind=8) x

      Does that mean an 8 byte real? Or a 8 bit real? It depends on the compiler... (and yes, I know the portable solution is

      real (kind=kind(0.0d0)) x

      and the such like, but *thats* really ugly, compared to

      double precision x.


    --
    Athletic Scholarships to universities make as much sense as academic scholarships to sports teams.
  2. Deafening silence by bonniot · · Score: 4, Funny

    Halh an hour after Fortran 2003 was announced on slashdot, the silence is deafening. Have most people migrated to other languages? I often heard that the amount of legacy code will make fortran survive for a long time. Or is it just that the sets of fortran users and of slashdoters do not intersect?

    1. Re:Deafening silence by kawika · · Score: 4, Funny

      Sorry it took me a while to respond. I was down in the computer room re-punching my card decks to comply with the new Fortran 2003 standard.

  3. What future programming languages will be by tod_miller · · Score: 4, Insightful

    Taking aside the idea of syntax for moment, this is a RT on 'what is a language' nothing to do with turin complete, OO or AOP or whatever.

    What we really care about: libraries. Being able to do things quickly, without fsking about.

    That is why php is successful, people can just run phpnuke/postnuke etc.

    Perl is also successful because of its roots and flexibility, and easy to get into, and you could just run slashdot on your site if needs be.

    What really helps these, is foundations. php/mysql, perl/whatdoesslashdotuse? People will write in anything if they see an easy way to get something done. Tutorials and support material.

    The point - except for people studying 'computer languages' (as someone woudl study the history of world languages) who will pick up fortran as an option for a new language?

    I am first to admit I do not know the dissadvantages or advantages of it. Are there any? or is it just syntax?

    Java is a language, but much more, it abstracts the whole idea of a language ( no it isn't correct to cite /nets multiple compilers here, no no really this is a different point) and makes it a process.

    So it isn't about the clean syntax OO language, but the process of programming. Through design and development and testing, it has all be rbought up with testing, this is true of almost all languages, but when I think of Java I have a view of all the testing frameworks, libraries and standards.

    To be honest, Fortran now is just a syntax specification, that says, take this line, and make that byte code. That doesn't do it for me.

    One mans syntax is another mans syntax error.

    Error on line 1: Insert ; to complete statement

    --
    #hostfile 0.0.0.0 primidi.com 0.0.0.0 www.primidi.com 0.0.0.0 radio.weblogs.com
    1. Re:What future programming languages will be by TeknoHog · · Score: 5, Informative
      I am first to admit I do not know the dissadvantages or advantages of it. Are there any? or is it just syntax?

      Disclaimer: I have an M.Sci in physics with a slant towards computational physics. I'm most familiar with F90 but its advantages should apply to the later revisions as well.

      Fortran is a slightly higher-level language than C. It has lots of math capabilities built-in; particularly matrix types and operations meaning good potential for parallel processing. Decent compilers can produce multiprocessor and MMX/SSE code from Fortran, and probably the equivalent on non-x86 platforms. I'm not sure if you can do this in C portably.

      Fortran has a fairly simple overall syntax where newlines matter. I found it very easy to learn, having some experience with Python and C. In some ways the syntax is rather arcane but at least it's quite clear (compared to C or Perl at least IMHO).

      Fortran does have pointers, but they are unnecessary because of other memory handling methods (namespaces or 'modules'). Dynamic memory allocation is a bit quirky IMHO, but way simpler than in C.

      The language feels well suited for physicists. It's not necessarily good for general programming, but I'd happily use it for many speed-critical sections instead of C.

      One important reason for the persistence of Fortran is the number of libraries for computational sciences, for example LAPACK. They can be included in modern Fortran programs despite being written in F77. There have been a number of attempts to make a scripting front-end for these libraries; Matlab is one of them, even though its F77 roots are not very visible.

      The common complaints about Fortran are mostly true for F77 and older revisions. F77 is a truly horrible language, and it has none of the nice features that make F90+ good for scientific computing.

      --
      Escher was the first MC and Giger invented the HR department.
  4. GFORTRAN != G95 by Anonymous Coward · · Score: 4, Informative

    The article talks about GFORTRAN being released with the next GCC, but then links to G95 on sourceforge. From reading the gcc.gnu.org list trsffic, G95 was orginally on sourceforge, but then forked when its main developer wouldn't cooperate with anybody else, especially the GCC people. The fork was GFORTRAN, and it will be GFORTRAN, not the g95.sf.net project, which gets released.

  5. What sectors are people using this in? by SLiK812 · · Score: 4, Interesting

    When I was a young lad in college (all of 10 years ago), I had to learn Fortran for one of my Chem Eng classes. We were learning Fortran77, mostly cause my profressor didn't think we would need it in the future, and didn't want us to be concerned with some of the new structures in more current versions.

    The Aero's also had to learn it (I know cause I taught it to them, since their prof sucked). So what sectors of industry are people working in with Fortran? Is it still just the Chemical and Aeronautical fields, are other places (where a different language might be more beneficial, say) still using it, cause no one wanted to convert systems?

    1. Re:What sectors are people using this in? by j_cavera · · Score: 5, Interesting

      The nuclear engineering communitiy is (still) standardized on F77. The reasons: 1) many great neutronics codes were written in the 60's (often for weapons research) using F77 and are still valuable today and 2) the NRC has some strange requirements concerning foward and backward compatability - almost anything from a DEC PDP-3 to a new G5 iMac can compile F77 code. Maybe someday they'll let us use F95...

      --
      #include "humorous_pop_culture_reference.h"