JiscMail Logo
Email discussion lists for the UK Education and Research communities

Help for COMP-FORTRAN-90 Archives


COMP-FORTRAN-90 Archives

COMP-FORTRAN-90 Archives


COMP-FORTRAN-90@JISCMAIL.AC.UK


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

COMP-FORTRAN-90 Home

COMP-FORTRAN-90 Home

COMP-FORTRAN-90  2004

COMP-FORTRAN-90 2004

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: Stir it up again? (was: Retire FORTRAN?!)

From:

[log in to unmask]

Reply-To:

Fortran 90 List <[log in to unmask]>

Date:

Fri, 27 Feb 2004 11:43:29 -0800

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (124 lines)

Drew McCormack <[log in to unmask]> wrote:

> .... I am not about
> to come to C++'s rescue; it is a diabolical language in many regards.
>
> But consider this: C++ is being replaced in its application domain by
> other languages,

In my view, C++ is a diabolical language because Bjarne Stroustrup
thought he could design a language by himself.  Designing any other than
toy languages is diabolically difficult.  I used to disparage committees
with cliches such as "A camel is a horse designed by a committee," but
having seen the value of review by many people with different viewpoints,
I am convinced that a modern computer language design should not be
undertaken by an individual except with great humility and the
expectation that many mistakes will need correction in later revisions.
Even Niklaus Wirth needed five attempts after he concluded Algol 68 was
going in the wrong direction (Algol W, Pascal, Modula-1 and -2 and
Oberon).  He didn't have the hubrus to undertake the design of a language
with comprehensive scope on his own.  Ichbiah didn't design Ada on his
own; the extension from Ada-83 to Ada 95 was done by a committee of seven
working full time for a year.

> There should be a natural evolution, with each new language taking
> the best parts of the previous generation, and improving on the rest.
> This does not seemed to have happened in scientific programming, and
> perhaps it should.

This is just plain wrong.  Look at the evolution of Fortran from 1956 to
1966 to 1977 to 1990 to 1995 to 2003.  Far from "not happening," Fortran
is the ONLY language in the scientific programming arena that did what is
asked!

We have a six-million-line suite of Fortran programs for spacecraft
navigation, with lineage going back to 1959.  The cost to re-write them
in a "modern" language that is incompatible with Fortran is prohibitive.
A new language that supplants Fortran will have to be upwardly
compatible.  Hmmm, I think it's called "Fortran 2003."  BTW, I do have
one data point concerning the cost to convert this code.  In 1996, one of
JPL's middle managers got a wasp up his ass and decided that maintenance
of the nav code was too expensive (6.5 work years per year).  So he
decided that it ought to be rewritten in C++.  The estimate was 120 work
years.  If the result were to reduce maintenance cost to zero, the
project would break even in 2023.  Now after 126 work years of effort
have been expended, the estimate for completion is (get this) 120 more
work years.  Leslie Hatton has actually measured (gasp!) lifetime
ownership costs for many substantial programs in several languages.  He
finds the total lifetime cost of C++ programs to be roughly six times the
cost of equivalent programs in C, Fortran 77 or Ada, which he finds to be
roughly the same.  Stephen F. Zeigler finds the cost of his Ada programs
to be roughly half the cost of his equivalent C programs.

> If someone is to define a new scientific language, here is my wish list:
> - Fortran 90 array syntax, and performance
> - Python like simplicity, and OO features
> - Unlike python, a compiled or just-in-time compiled language
> - Possibly garbage collection, perhaps with the possibility of
> overriding to perform manual memory management
> - Perhaps some generic programming, like C++'s templates, but hopefully
> somewhat simpler.
> - Simple (I have to teach this thing to students with little
> programming background)

Ummm, Fortran 2003 covers the first and third of these, and has OO
features wished for in the second.  Whether the processor does or does
not do garbage collection is orthogonal to the language design -- unless
you botch the design.  Generic programming is on the list of features
desired for the next revision after Fortran 2003.  H. L. Mencken wrote
(approximately) "For every complex problem there is a solution that is
clear, simple and wrong."  You're dreaming if you think you're going to
get a "Simple" language with the scope necessary for serious work.

Aleks Donev wrote:

! Any competition would need a long time to catch up.

and Drew replied:

> Not at all. None of that would be lost. Any new language could simply
> be built on top of the current fortran backend.

It's not that simple.  If you naively include pointers with C semantics,
there are lots of things the front end simply cannot tell the back end.
The semantics of C pointers are the primary reason that C optimizers
cannot do as good a job as Fortran optimizers, notwithstand that they've
had far more effort poured into them by an enormously larger number of
clever people than Fortran.  Pointer optimization in C, and therefore
also register optimization, are NP hard.  The best one can hope for are
clever heuristics.  These actually do fairly well, but still not as well
as Fortran.  The lesson is that you have to be careful with the design.
An entirely new language risks having subtle traps in it that sabotage
the possibility to use all of the optimization techniques learned through
the ages.

> I think this is exactly the problem with attempting to persist with an
> existing language, rather than introducing a more modern competitor. In
> theory fortran could probably fulfill all of our needs, but it is
> constrained by legacy. As long as the legacy elements have to be
> supported, the language is susceptible to abuse.

The problem with introducing a modern competitor is legacy code.  One
needs the legacy elements to remain in the language, or one needs a sugar
daddy with a ton of money to pay for the conversion.  *REAL* programs
aren't thrown away every year so that a new crop of students can write
new ones in the latest fad language.  *REAL* programs embody tremendous
amounts of lore that aren't written down in the design documents, and
that are frequently expressed in subtle ways.  I have a wonderful proof
of this theorem but the margin is too small to contain it.

I don't use dangerous features in my new code, so whether they're
"subject to abuse" is irrelevant.  It takes time and effort to replace
their use in old codes (where there were no alternatives at the time they
were developed) with newer safer features.  It would take far more time
and effort to rewrite the old codes entirely, certify them, wring out all
the bugs, revise the computational strategies to cope with idiosyncracies
of the semantics of the new language that force different optimization
strategies onto the processor, ....

--
Van Snyder                    |  What fraction of Americans believe
[log in to unmask]       |  Wrestling is real and NASA is fake?
Any alleged opinions are my own and have not been approved or disapproved
by JPL, CalTech, NASA, Sean O'Keefe, George Bush, the Pope, or anybody else.

Top of Message | Previous Page | Permalink

JiscMail Tools


RSS Feeds and Sharing


Advanced Options


Archives

December 2023
February 2023
November 2022
September 2022
February 2022
January 2022
June 2021
November 2020
September 2020
June 2020
May 2020
April 2020
December 2019
October 2019
September 2019
March 2019
February 2019
January 2019
November 2018
October 2018
September 2018
August 2018
July 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
June 2016
May 2016
April 2016
March 2016
February 2016
December 2015
November 2015
October 2015
September 2015
August 2015
June 2015
April 2015
March 2015
January 2015
December 2014
November 2014
October 2014
August 2014
July 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
July 2013
June 2013
May 2013
April 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
August 2010
July 2010
June 2010
March 2010
February 2010
January 2010
December 2009
October 2009
August 2009
July 2009
June 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
January 2007
2006
2005
2004
2003
2002
2001
2000
1999
1998
1997


JiscMail is a Jisc service.

View our service policies at https://www.jiscmail.ac.uk/policyandsecurity/ and Jisc's privacy policy at https://www.jisc.ac.uk/website/privacy-notice

For help and support help@jisc.ac.uk

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager