News for hackers. Stuff that matters.
Re:What Lua scripting means for Wikimedia and open source by StavrosK on Monday March 18, 2013 @04:09PM (#5396806)
Run a process per script and let the OS handle it, probably.
Re:What Lua scripting means for Wikimedia and open source by gngeal on Monday March 18, 2013 @05:30PM (#5397268)
You don't even need to do that, you can run Lua in a multithreaded program, as long as no lua_State is accessed from multiple threads. You can spawn independent interpreter states, have them do their job and terminate. The whole Lua codebase as such is completely stateless (apart from the state that you keep for your code). The shorter the scripts actually run, the smaller overhead you get by this.
Re:What Lua scripting means for Wikimedia and open source by pekk on Monday March 18, 2013 @06:11PM (#5397504)
That isn't what I asked about and isn't really helpful
Re:What Lua scripting means for Wikimedia and open source by StavrosK on Monday March 18, 2013 @06:20PM (#5397548)
Don't read it, I guess? I don't know any other way to do it, unfortunately. I'm sorry I wasted your time.