Hello, Clemens Fruhwirth <[EMAIL PROTECTED]> writes: > Before we start with some features, we need to convert clisp-ffi to > cffi. I suggest we do the clisp ffi conversion to CFFI with a set of > macros. This might work well for the bulk of source, but sure it needs > some correction by hand. > Instead of using macros to convert clisp-ffi to cffi, I have written a SWIG back-end for cffi to do that. Also, most of the CLOS wrappers written for CLISP will also work for cffi. Auto-generated cffi wrappers should not need any correction by hand. But in some cases to call the cffi wrapper functions one may have to write some cffi related code[1].
The way I have been trying to design wxCL is that any FFI back-end can be used, this will allow one to have FFI back-end for each implementation, and the user then may (or may not need) to modify some parameters to ensure that the correct back-end is used. > Surendra: Are you interested in moving wxCL to CFFI? If yes, do you have > any estimate if that would be "hard"? I have seen you already tried > Verrazano and your own SWIG CFFI export. Of course, I'm willing to help > on these task. I have been facing some trouble in getting cffi bindings to work on allegro (segmentation fault and crash)[2], but they work fine on CLISP and lispworks. So, maybe it will take 2-3 days (depending upon the spare time which I get) before which cffi bindings will be available in wxCL CVS. [1] The CLISP FFI is very expressive, so it is almost one to one mapping between the CLISP FFI code and the CLOS wrapper code. From my limited cffi knowledge, with cffi in many cases one has to write some extra code, for example, if the foreign function returns a malloced string which the callee has to free. In this case with right CLISP FFI this can be done automatically but with cffi one has to write extra code to do so. [2]For more information see wxCL-devel mailing list. Cheers. -- Surendra Singhi http://www.public.asu.edu/~sksinghi/index.html ,---- | "War is Peace! Freedom is Slavery! Ignorance is Strength!" | -- Orwell, 1984, 1948 `---- _______________________________________________ Gardeners mailing list [email protected] http://www.lispniks.com/mailman/listinfo/gardeners
