[Haskell-cafe] Producing fortran/C code with haskell?

Gregory Wright gwright at comcast.net
Fri Jan 30 14:01:41 EST 2004


On Jan 30, 2004, at 1:32 PM, Vincenzo aka Nick Name wrote:

> I seem to recall a discussion, don't know if it was here or on
> comp.lang.functional, where somebody said he uses haskell to generate
> fortran code.
>
> That fascinated me a lot, because that would mean being able to 
> generate
> a program already specialized for a specific input, by first reading
> input in haskell and then producing code (fortran, but could be C
> either) - and because I guess it can add static safety exploiting
> haskell types. Since we already have that nice syntax for monads those
> programs should be readable, too.
>
> Where could I find information on such topics, or existing libraries to
> generate programs with haskell? Is somebody willing to share what (s)he
> already did?
>
> V.
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>

You might try looking at http://www.fftw.org. They use an Objective 
Caml program
to generate optimized C fourier transforms for various machine 
architectures.

Best Wishes,
Greg





More information about the Haskell-Cafe mailing list