[racket] Efficiency of tight loops in Racket

From: Eli Barzilay (eli at barzilay.org)
Date: Sat Jan 15 02:57:01 EST 2011

20 minutes ago, Noel Welsh wrote:
> On Fri, Jan 14, 2011 at 8:12 PM, Harry Spier <harryspier at hotmail.com> wrote:
> > From whats been said perhaps the way to go is to make a C wrapper
> > to the C interface to the latest version of ImageMagick and then
> > go through the FFI to interface to Racket.
> 
> I doubt you need that C wrapper. The ImageMagick API is large but
> fairly straightforward IIRC. You should be able to wrap the bits you
> want directly.

It's not just straightforward -- it's a very glue-friendly API.  The
code that is in the ffi collection might be outdated, but my guess is
that most of it is still useful.  (That was a complete set of bindings
at the time -- I went over their header file.)

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.