Call C (or C++) with pointer to static function

Michael Stover michael.r.stover at gmail.com
Mon Oct 11 07:28:05 PDT 2010


Thank you, I have checked them out.  Both SciD and dstats look useful.  We
would have to supplement with our own math libraries and bindings to various
C/Fortran libraries I think.   I am just exploring possibilities because of
the endless troubles we have with compiling and linking C++ code on Mac,
Linux, and Windows and thus why we've never compiled our math models (which
makes them really slow).  For estimation problems, it's just not workable
without compiling the model at runtime to native code.  It was my thought
that D would make the step easier and faster than C++.  But is does have to
work on Mac, Windows, and Linux user desktops.

-Mike

On Mon, Oct 11, 2010 at 9:56 AM, Lars T. Kyllingstad
<public at kyllingen.nospamnet> wrote:

> On Sun, 10 Oct 2010 20:30:52 -0400, Michael Stover wrote:
>
> > Can one call fortran libraries from D?  Ie, say one wanted to use LAPACK
> > from D?
>
> Since it is possible in C, it should be possible in D.  A quick search
> turned up this page:
>
> http://www.yolinux.com/TUTORIALS/LinuxTutorialMixingFortranAndC.html
>
> When it comes to LAPACK (and BLAS), Bill Baxter has already written D1
> bindings.  I've converted them to D2 and published them (with his kind
> permission) as part of SciD (see scid.bindings.*).  Which brings me to
> your next question...
>
>
> > Also, know of any mathematical libraries written in D (like
> > implementations of runge-kutta, linear algebra routines and data
> > structures, optimization or curve-fitting algorithms)?
>
> Of the things you mention, SciD only contains a few linear algebra
> routines (see scid.linalg and the aforementioned BLAS/LAPACK bindings).
> There may be other things you'll find useful in there, though:
>
>  http://www.dsource.org/projects/scid
>
> Also, check out this list (may not be up to date):
>
>  http://www.prowiki.org/wiki4d/wiki.cgi?ScientificLibraries
>
>
> -Lats
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20101011/e53532f9/attachment.html>


More information about the Digitalmars-d mailing list