libera/#sbcl - IRC Chatlog
Search
15:45:46
Gleefre
re sbcl as a shared library: One more issue that I encountered is that after the initialize_lisp call the floating point traps are enabled, instead of being "reset" to the way they were before the call. This sometimes leads to crashes in native libraries which by default, if I understand correctly, assume that traps are disabled.
15:50:00
Gleefre
Although I'm not sure if initialize_lisp and/or alien callables should take care of setting up floating point modes, or if it's something that needs to be done in the surrounding code similarly to how sb-int:with-float-traps-masked is used in FFI libraries.
20:00:17
aeth
hmm, so there's some sort of optimization to (static-vector:static-vector-pointer ...) which inline calls (cffi:make-pointer ...) which inline calls (sb-sys:int-sap ...) -- which should make it effectively just an sb-sys:int-sap -- when FFI calling?