4 ms·
>There are at least two portable libraries to do this. What are they?
by vram22 9y ago
>There are at least two portable libraries to do this.
What are they?
- e12e 9y agoI'd guess one is cffi: https://www.quicklisp.org/beta/UNOFFICIAL/docs/cffi/doc/Introduction.html#Introduction https://www.quicklisp.org/beta/UNOFFICIAL/docs/cffi/doc/Intr... Maybe with the help of cl-autowrap: https://github.com/rpav/cl-autowrap/blob/master/README.md https://github.com/rpav/cl-autowrap/blob/master/README.md There are others... : http://www.cliki.net/FFI http://www.cliki.net/FFI
- flavio81 9y agoOne is CFFI, widely known and well documented, with tutorial and tooling: https://common-lisp.net/project/cffi/ https://common-lisp.net/project/cffi/ The other was UFFI, older; but then there are others. In fact, there are a ton of other projects for doing FFI in Common Lisp! http://www.cliki.net/FFI http://www.cliki.net/FFI And then you can also use the FFI functionalities provided by the particular Lisp implementation (i.e. SBCL, LispWorks, ABCL, etc.) However, the use of a portable library like CFFI means that you can take your code that runs correctly in SBCL, and then run the very same code in CLISP (other Lisp implementation) with no change at all. CFFI works for the following Lisp implementations or "compilers": ABCL, Allegro CL, Clasp, CLISP, Clozure CL, CMUCL, Corman CL, ECL, GCL, LispWorks, MCL, SBCL and the Scieneer CL. That's a lot of implementations!
- vram22 9y agoSure is a lot. Thanks!
- deleted 9y ago[deleted]