On Sat, Sep 11, 2010 at 18:38, JTK <jetm...@gmail.com> wrote:
> I'm using cffi, and I need to perform the common task of passing Lisp arrays 
> to foreign code.
>
> This task comes up a lot in scientific code, matrix math, image processing, 
> etc.
>
> Normally, it involves a lot of boilerplate to allocate a pointer, copy data 
> Lisp  to foreign
> memory, copy the data back, and deallocate the memory.   Getting the copying 
> to run
> fast can be tricky.
>
> Hence I wrote a package to automate it.

You might be disappointed (or pleased, perhaps) to see that someone
(Tamas K. Papp, in particular) has already done this:

http://tkpapp.blogspot.com/2007/12/announcement-ffa.html

mfh

_______________________________________________
cffi-devel mailing list
cffi-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel

Reply via email to