| I have played a bit with SWIG-generated CLisp FFI for csound.h on Windows.
This will take some time to do properly. The SWIG generator for CLisp is
buggy and immature and the generated code needs much hand work.
Doing this may introduce changes to the Csound API since LISP FFI does not
seem to play well with ..., va_list, int argc char **argv, and other ways of
getting variable numbers of arguments into C functions.
The good news is, once you have a LISP FFI file, that's all you need. No
extra binary compilation. LISP does it all for you: loads the shared
library, builds stack frames, etc.
So, once the csound.lisp FFI package is defined, no further dependencies or
extra build steps. I wish other languages had this (actually, .NET has
PInvoke and Mathematica has something similar too; I wish Python and Java
had this, is what I mean).
If this approach proves out I will probably translate the CLisp FFI code to
CFFI or UFFI code that should work with several or most implementations of
LISP.
Regards,
Mike
-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |