public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Gabriel Dos Reis <Gabriel.Dos-Reis@dptmaths.ens-cachan.fr>
To: Nathan Myers <ncm@cygnus.com>
Cc: egcs@cygnus.com
Subject: Re: valarray
Date: Fri, 08 May 1998 19:52:00 -0000	[thread overview]
Message-ID: <199805082147.XAA27433@piano.dptmaths.ens-cachan.fr> (raw)
In-Reply-To: <3552B91E.10D06AAD@cygnus.com>

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1619 bytes --]

>>>>> «Nathan», Nathan Myers <ncm@cygnus.com> wrote:

Nathan> You should know that (as much as we appreciate Gabriel's contribution) 
Nathan> that valarray is generally a poor way to accomplish what it was intended 
Nathan> for.  A much better choice is something like Blitz++ or its kin, which you 
Nathan> can find at (or by following links from)

Nathan>   http://monet.uwaterloo.ca/blitz/

Nathan> To perform well, valarray really needs special compiler support, and because
Nathan> projects like Blitz++ have been so successful, valarray is unlikely ever to 
Nathan> get that support.


Any efficient C/C++ library in numerical computation *needs* some
support from the compiler (e.g. keyword "restrict" in C). I know (in
some extent) very well the blitz project. Todd is aware (at least it
was pointed to him when he visited CERN recently) that the blitz
project, as it is now, is not usable in real world scientific
computing (e.g. in finite elements, large linear systems, systems from
physics). Nevertheless it introduced new concepts which deserve new
ways of optimization. 

Actually (as Bjarne told me in Sophia last March), the sade state of
valarray is a consequence of a lack of numerical computation expert in
the committee. It's just recently that I gained interest in using C++
in scientific computing. Anyway, I would really like to support an
efficient, usable valarray but for that I *need* some support form
folks here. I'm not a compiler designer but I can spend time to
learn gcc internals in order to get an efficient valarray if there
guys to explain me how things are made up.

-- Gaby

  reply	other threads:[~1998-05-08 19:52 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-06  2:02 valarray Jochen.K
1998-05-06 23:49 ` valarray Gabriel Dos Reis
     [not found] ` <199805070112.DAA16347.cygnus.egcs@piano.dptmaths.ens-cachan.fr>
1998-05-08  0:54   ` valarray Nathan Myers
1998-05-08 19:52     ` Gabriel Dos Reis [this message]
     [not found]       ` <355392BA.21A86073@cislunar.com>
1998-05-10  6:17         ` valarray Gabriel Dos Reis
1998-05-07  5:15 valarray Jochen.K
1998-05-08 12:13 valarray Mike Stump
     [not found] <199805081913.MAA19580.cygnus.egcs@kankakee.wrs.com>
1998-05-08 16:04 ` valarray Ulrich Drepper
1998-11-08  6:43 valarray Tobias Naehring
1998-11-09  7:21 ` valarray Gabriel Dos Reis
1999-04-23 14:05 valarray Jason Molenda
1999-04-30 23:15 ` valarray Jason Molenda

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199805082147.XAA27433@piano.dptmaths.ens-cachan.fr \
    --to=gabriel.dos-reis@dptmaths.ens-cachan.fr \
    --cc=egcs@cygnus.com \
    --cc=ncm@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).