bohonghuang / cffi-object

A Common Lisp library that enables fast and convenient interoperation with foreign objects.
Apache License 2.0
22 stars 0 forks source link

+TITLE: cffi-object

Fast and convenient foreign object interoperation via CFFI.

~cffi-object~ adopts the third approach above and provides a uniform way to directly convert existing CFFI type definitions (which can be generated by autowrapping tools like [[https://github.com/borodust/claw][claw]]) into Lisp's struct and function definitions, allowing you to operate on foreign data types as if they were native types in Lisp, without having to write glue code by hand.

~cffi-object~ should run on any implementation that supports [[https://github.com/cffi/cffi][CFFI]] and [[https://github.com/trivial-garbage/trivial-garbage][trivial-garbage]]. To test the system, simply eval ~(asdf:test-system :cffi-object)~ in the REPL.