From: ···········@alcoa.com
Subject: Anyone have a working version of f2cl (Fortran to Lisp)?
Date: 
Message-ID: <7sdt3b$k48$1@nnrp1.deja.com>
I've tried out f2cl with little satisfaction. Anyone have a version
different from the ones below which will work on even tiny fortran
subroutines? Any pointers are welcome. Thanks.

I tried two different versions:

ftp://ftphost.cs.waikato.ac.nz/pub/lisp/f2cl
http://www.mindspring.com/~rtoy/software/f2cl/index.html

They both convert the following subroutine leaving out the array
assignment:

  SUBROUTINE TEST(N,ARR)
      REAL ARR(N)
      ARR(2)=ARR(1)
      RETURN
      END

(defun test (n arr)
  (declare (type fixnum n))
  (declare (type (simple-array single-float (*)) arr))
  (prog ()
        (return (values n arr))))

--
John Watton
Alcoa Inc.


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

From: ···········@alcoa.com
Subject: Re: Anyone have a working version of f2cl (Fortran to Lisp)?
Date: 
Message-ID: <7sfqsn$v62$1@nnrp1.deja.com>
My apologies to Raymond Toy. His version of f2cl at:

http://www.mindspring.com/~rtoy/software/f2cl/index.html

works after all. The problem was that I never did load it do to the fact
that defvar does not change a vars value on reloading. I learned this
lesson many times before and always use defparameter in my own coding.

--
John Watton
Alcoa Inc.


Sent via Deja.com http://www.deja.com/
Before you buy.
From: Howard R. Stearns
Subject: Re: Anyone have a working version of f2cl (Fortran to Lisp)?
Date: 
Message-ID: <37EBC172.27C071FC@elwood.com>
···········@alcoa.com wrote:
> 
> My apologies to Raymond Toy. His version of f2cl at:
> 
> http://www.mindspring.com/~rtoy/software/f2cl/index.html
> 
> works after all. The problem was that I never did load it do to the fact
> that defvar does not change a vars value on reloading. I learned this
> lesson many times before and always use defparameter in my own coding.
> 
> --
> John Watton
> Alcoa Inc.
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.

I don't want to distract you if you have things working.  I also don't
know if f2cl gives links to reference work.  

In any case, you might be interested in the paper "Fast Floating-Point
Processing Common Lisp", by Fateman, our friend Duane Rettig, and
others.  It addresses some Fortran vs. CL array issues.
From: Gareth McCaughan
Subject: Re: Anyone have a working version of f2cl (Fortran to Lisp)?
Date: 
Message-ID: <86r9jot1s7.fsf@g.local>
Howard R. Stearns wrote:

> In any case, you might be interested in the paper "Fast Floating-Point
> Processing Common Lisp", by Fateman, our friend Duane Rettig, and
> others.  It addresses some Fortran vs. CL array issues.

It was published, IIRC, in the ACM Transactions on Mathematical
Software, a few years ago. It should be noted that in a subsequent
issue someone objected to a number of things about the article;
I think Fateman replied to the objections too, but I might be
wrong.

-- 
Gareth McCaughan  ················@pobox.com
sig under construction