News for hackers. Stuff that matters.
Re:On the impossibility of composing finalizers and FFI by epcoa on Tuesday February 27, 2024 @01:13AM (#39520695)
This is unnecessary. The blob argument binding itself is making the object reachable throughout the function. You can easily test it with collectgarbage('collect') The author's example is simply mistaken about the relatively straightforward semantics of LuaJIT.
Re:On the impossibility of composing finalizers and FFI by matheusmoreira on Tuesday February 27, 2024 @04:59PM (#39530680)
Reading your other comments I've realized you're right about that. I'm not very familiar with LuaJIT so I assumed the garbage collection semantics were undefined. That was the impression I got from the article at least.