Re:On the impossibility of composing finalizers and FFI
by LispSporks22 on Tuesday February 27, 2024 @02:11AM
(#39521035)
I think the SDL2 bindings for Common Lisp went through a similar realization and any kind of finalization was removed.
[ Parent
| on HN ]
Re:On the impossibility of composing finalizers and FFI
by phoe-krk on Tuesday February 27, 2024 @03:14AM
(#39521463)
Yes. Yet another problem with finalizers is the question of "which thread does actually run the finalizers"? In case of some C libraries, objects must be released exactly by the thread in which they were allocated; this means that e.g. in Steel Bank Common Lisp it is impossible to use finalizers in these cases.