Re: Mixing programming with Fortran



You might try looking at Matlisp, as it calls BLAS and LAPACK. It
should give you some good ideas. I think the set of interfaces and
macros they came up for calling the BLAS and LAPACK routines are quite
good, and could provide good inspiration and / or some tools for
calling other Fortran routines.

You might also look at cffi. It might be possible to extend cffi to
know about Fortran. This might be simple or even a non-issue if
linking against g77 or g95 compiled libraries. Maybe some of the cffi
folks have thought about this, you might want to shoot their mailing
list a question about this.

Even though you only mentioned SBCL and CMUCL, I'd like to add that
Allegro's FFI already knows about Fortran, although I haven't done
anything other than read the docs on it.

http://matlisp.sourceforge.net/
http://common-lisp.net/project/cffi/

Glenn

Dmitry V. Gorbatovsky wrote:
I would highly appreciate
any link/help on mixing programming Fortran
with Common Lisp(SBCL or CMUCL) and/or
calling Fortran libraries/functions
from Lisp.

.



Relevant Pages

  • Re: Lapack/ CLapack
    ... > I need to convert a Fortran program I wrote some months ago. ... is it better to use the original LAPACK compiled from Fortran ... > less performant? ... probably just one for BLAS and one for LAPACK. ...
    (comp.lang.c)
  • Re: Who uses clapack?
    ... I have used Lapack as a reference to write a Divide and Conquer ... or C++ which are just as suitable as Fortran. ... No dynamic memory allocation but the eternal WORK and IWORK ... Lapack's use of a BLAS is great but Lapack is tailored to the ...
    (comp.lang.fortran)
  • Re: Who uses clapack?
    ... I have used Lapack as a reference to write a Divide and Conquer ... or C++ which are just as suitable as Fortran. ... No dynamic memory allocation but the eternal WORK and IWORK ... Lapack's use of a BLAS is great but Lapack is tailored to the ...
    (sci.math.num-analysis)
  • Re: BLAS vs VSIPL
    ... Can someone give me some insight into using BLAS. ... In the mid '90s I tried to use LAPACK with C. LAPACK ... LAPACK is writen for use with FORTRAN. ... meaning that portability and maintenance ...
    (comp.dsp)
  • Re: LAPACK
    ... >>what do I have to do for installing LAPACK on a pc with windows XP??? ... You need a Fortran compiler, unless you want to use CLAPACK. ... The speed of LAPACK is very dependent on the quality of your BLAS. ...
    (sci.math.num-analysis)