Re: Usage of complex numbers?

From: Eric K. (ejko123_at_yahoo.com)
Date: 03/11/04


Date: 10 Mar 2004 20:47:36 -0800

Calum <calum.bulk@ntlworld.com> wrote in message news:<c2nh27$lge$1@newsg2.svr.pol.co.uk>...

> That's just the design of the language: push as much as possible out
> into libraries. Better in my opinion.

Not particularly. The most heavily used datatype in scientific programming
is the array, which C and C++ don't even support in the base language except
as a pointer to a block of storage. The C++ committee placed the support
for array-like objects in the library with two mutually incompatible
mechanisms, vector and valarray. It would have been much better from the point
of view of code reuse, efficiency, and clarity to have added Fortran-like
arrays to the base language.

In a more sophisticated context, it's easier to write and debug a code with
OpenMP, where you get help from the compiler, than to make a bunch of calls
to pthreads or MPI routines, which the compiler doesn't understand.

--Eric



Relevant Pages

  • Open Dylan 2011.1 released
    ... It is a pleasure for us to finally announce a release of Open Dylan. ... their code for the compiler and runtime libraries under the MIT ... The C back-end currently does not support multi-threaded programs. ...
    (comp.lang.dylan)
  • Re: Language Features Id Like To See
    ... the support for array manipulation in Delphi is relatively weak. ... either $ClassSerialized+ or $Serialized+, using an attribute, compiler ... any type with the memory manager to use. ...
    (borland.public.delphi.non-technical)
  • Problem with php5-dba build && install
    ... checking for C compiler default output file name... ... checking for QDBM support... ... checking whether the cc linker supports shared libraries... ... checking dynamic linker characteristics... ...
    (freebsd-questions)
  • Re: Who uses clapack?
    ... > with it and has a compatible compiler send me a line. ... wrapper for the BLAS/LAPACK or Intel MKL libraries. ... claim only to support a subset of the BLAS/LAPACK functionality (though ... I also support all of the ...
    (sci.math.num-analysis)
  • Re: It Hurts When I Do This
    ... Being an old libraries guy (I used to do compiler run-time libraries before working on compilers themselves), I'd have suggested moving this code to a library routine - just pass it the descriptors of the LHS and RHS. ... But adding a library routine isn't without cost - it creates support headaches when users try to link objects with older libraries. ... I was a compiler developer for 15 years. ...
    (comp.lang.fortran)