News for hackers. Stuff that matters.
Re:Lunatik: Lunatik is a framework for scripting the Linux k... by Log_out_ on Monday April 22, 2024 @01:30PM (#40116623)
Could this allow for a hard real time Lua programmable system if you replace gc?
Re:Lunatik: Lunatik is a framework for scripting the Linux k... by lneto on Monday April 22, 2024 @05:09PM (#40120812)
Potentially, yes. However, I didn't try it. You could even disable GC completely. Lunatik provides some facilities that could be useful in this scenario as well, such as RCU tables and shared objects. For instance, you could pre-allocate the entire memory to be used by your Lua states and treat them as volatile. In this case, you could persist state on the shared objects stored and synchronized through a RCU table. Of course, you could implement your own GC or tune the existent GC modes as well.