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:

Monospaced Font

LISTSERV Archives

LISTSERV Archives

COMP-FORTRAN-90 Home

COMP-FORTRAN-90 Home

COMP-FORTRAN-90  1997

COMP-FORTRAN-90 1997

Options

Subscribe or Unsubscribe

Subscribe or Unsubscribe

Log In

Log In

Get Password

Get Password

Subject:

Re: wishlist

From:

Swietanowski Artur <[log in to unmask]>

Reply-To:

Swietanowski Artur <[log in to unmask]>

Date:

Fri, 21 Nov 1997 13:18:35 +0100

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (117 lines)

Pierre Hugonnet wrote:
> Swietanowski Artur wrote:
> > I support the above statements:
> > a) speed and ease of development are much more important than high
> > levels of optimization,
> > b) the improvements of theoretical knowledge can lead to reduction
> > of computational complexity (say, by reducing the power in
> > the polynominal complexity case) whereas compiler optimization
> > may just provide linear reductions.
> >
> > In numerical optimization / OR environment I work in a large part
> > of the new software, including commercial, is already written in C
> > or C++. Fortran has to reverse the trend to stay alive much longer.
> > And I can tell you, switching from a fully object oriented language
> > like C++ to F90 is mostly a big and unpleasant step back. For now,
> > at least.
>
> Sorry, but when a program is 50% slower and requires 100% more memory
> with f90 compared with f77, you have some difficulties to make it
> included in industrial packages.

You didn't get the point: some F77 codes would never come into
existence because it would take too many man-hours of labour to
write them.

You also didn't get the other point (complexity). An O(n**2)
algorithm in all non-trivial cases will be better than O(n**3)
or O(e**n). Achieving better complexity practically always
requires more complex processing. And compiler optimization
simply can't reduce the complexity, just scale down the running
time, which corresponds to moving from O(e**n) to O(0.1*e**n).
That's going nowhere.

So with a better language you may end up:
a) having a running program,
b) having lower algorithm complexity and finally
c) having after all a faster program, too.

I repeat: even in the (relatively simple) area like linear
programming many commercial and research codes now are written
in C (CPLEX a prominent case, LOQO another good example).
I can name many other examples from many other fields of research.

> I need only a few and simple OO features. I don't need powerful
> pointer features, I don't need C++ classes... What I need is an
> *efficient* and easy to write and read code.
> Seismic data processing consists in the application of generally
> quite simple algorithms to a *huge* amount of data.

That's a very narrow application field. Numerical optimization
applies huge amounts of highly complex processing to relatively
small amounts of data. And most optimization problems we'd like
to solve are unsolvable because we need better algorithms (and
not better compiler optimizations).

> Each langage has a specific domain of
> applications. Scientific computing needs a langage: f77 was a good
> one for that (much better than C),

Many researchers think otherwise and voted with their feet.

> f90 is still a good one in my
> opinion (there are still optimization problems with compilers, but
> I hope this will be better and better). But please don't transform
> fortran into C++, or we will have to create a new langage to
> replace Fortran! If you need C++ features, then use C++ or Java
> (in the same way I've always said to C fanatics to use Fortran for
> scientific computing). Should Fortran also include all features
> from Lisp, Prolog, or in other specific langages ?

No. I just say that Fortran should be a good lanuguage for all
numerical analysts, engineers, researchers and not just for
seismic data analysis. I see it as a more democratic view.

As I work in the field for which Fortran is supposedly designed
I feel free (in fact, obliged to) let the other interested parties
know what I need and expect from the language.

> I would like to be sure to that any intruction I use will be
> fully optimized (if find it exhausting to always asking myself:
> wouldn't it be more efficient to write this with a do loop rather than
> with this new and nice compact instruction?).

You should memorize some famous quotes along the lines of:
 "Premature optimization is the root of all evil" or
 "Make it run than make it run fast" (with a longer version
 also available).

> <large snip>
> In f90 I like (and use) array syntaxes, genericity, interfaces. I also
> like, but use less, pointers. I like a lot parallel oriented features,
> because it allows to write easy to parallelise (by compilers) code
> (parallelisation is much more important for me than OO features!).

1) Learn and use what you like and need. Ignore the rest. And don't
   tell others (who may need more) to use another language.
2) Automatic parallelization works best for so-called embarassingly
   parallel problems. In more complex cases it's again down to
   the algorithm (which often has to be totally redesigned
   or simply replaced by a completely different one).

In my problems automatic parallelization (as allowed by F90 now)
is 100% useless. I'm sorry about that because it would make my
life easier if I could use it. But that's just a fact. And I'm
not going to argue with a fact.

Regards,
----------------------------------------------------------------------
Artur Swietanowski mailto:[log in to unmask]
Institut fuer Statistik, Operations Research und Computerverfahren,
Universitaet Wien, Universitaetsstr. 5, A-1010 Wien, Austria
tel. +43 (1) 407 63 55 - 120 fax +43 (1) 406 41 59
----------------------------------------------------------------------


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

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