maybe CFFI:USE-FOREIGN-LIBRARY should not be at toplevel, but rather in the startup code of the apps? if so, then it should be documented.
a slight annoyance with that would be that some lisps (IIRC e.g. SBCL) spit out a lot of warnings when the underlying dlsym is not available at the time of the loading (or also at compilation?) of the DEFCFUN.
or maybe CFFI could add some smarts that transparently delays dlopen? e.g. a one-time initialization code delayed until the first use? this would bring in some concurrency headaches, though.
maybe CFFI:USE- FOREIGN- LIBRARY should not be at toplevel, but rather in the startup code of the apps? if so, then it should be documented.
a slight annoyance with that would be that some lisps (IIRC e.g. SBCL) spit out a lot of warnings when the underlying dlsym is not available at the time of the loading (or also at compilation?) of the DEFCFUN.
or maybe CFFI could add some smarts that transparently delays dlopen? e.g. a one-time initialization code delayed until the first use? this would bring in some concurrency headaches, though.