News for hackers. Stuff that matters.
Re:On the impossibility of composing finalizers and FFI by irq-1 on Tuesday February 27, 2024 @02:50PM (#39528844)
LuaJIT lets you remove a finalizer:

> An existing finalizer can be removed by setting a nil finalizer, e.g. right before explicitly deleting a resource:

    ffi.C.free(ffi.gc(p, nil)) -- Manually free the memory.
https://luajit.org/ext_ffi_api.html#ffi_gc

There are no comments on this comment yet.