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.
[ Parent
| on HN ]
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.