Csound Csound-dev Csound-tekno Search About

[Cs-dev] Bindings for Csound 5

Date2005-10-14 03:50
From"Michael Gogins"
Subject[Cs-dev] Bindings for Csound 5
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

Date2005-10-14 06:12
FromAnthony Kozar
SubjectRe: [Cs-dev] Bindings for Csound 5
This is good news!  Once again, Mike, thanks for looking into these issues.
I know that they can be time consuming.

Anthony

Michael Gogins wrote on 10/13/05 10:50 PM:

> The good news is, once you have a LISP FFI file, that's all you need. No
> extra binary compilation.
[...]
> 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.



-------------------------------------------------------
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