|
From: Stas B. <sta...@gm...> - 2011-08-18 17:05:04
|
Arne Klein <arn...@iw...> writes: > Hello, > > I started writing Lisp bindings for a C library with CFFI, but I'm not > sure that this is the best way to go, or if I should use SBCL FFI > instead. I couldn't find any good information about the advantages and > disadvantages of CFFI compared to the SBCL FFI (except that these are > limited to SBCL of course, but this isn't a problem for my use-case). > > Is there any recommendation which one to use? Is maybe one of them > (probably SBCL FFI) only kept for backward compatibility and its use > not recommended for new projects? I'd be very glad about any help on > this topic. CFFI uses SBCL's FFI. CFFI is a compatibility layer for FFIs across different implementations. So, if you choose to use SBCL's FFI, your code will run only on SBCL, while when using CFFI it will be portable among other implementations. -- With best regards, Stas. |