3 ms·
Lua's garbage collector can be driven 'manually' quite easily. That is, one can start it, stop it, run it to completion, run a 'step', tune the size of the ste
by samatman 5y ago
Lua's garbage collector can be driven 'manually' quite easily.
That is, one can start it, stop it, run it to completion, run a 'step', tune the size of the step and the aggressiveness of collection, all from within Lua.
It's true that you can't get hard realtime guarantees while using Lua naively, you do have to be aware of what you're doing. If you need to be 'cycle perfect', probably use something else.
But there are an enormous number of applications where what Lua offers is just fine, and there's no reason a Lua program should have GC 'stalls', if that means unexpected and lengthy pauses in execution.
This is a really cool project imho.