Hacker News new | ask | show | jobs
by LispSporks22 848 days ago
I think the SDL2 bindings for Common Lisp went through a similar realization and any kind of finalization was removed.
1 comments

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.