News for hackers. Stuff that matters.
Re:Pushing Nginx to its limit with Lua by neopallium on Saturday December 08, 2012 @10:25PM (#4893658)
> (though, imposing memory restrictions is much harder).

I developed an Emergency GC patch [1] for Lua 5.1 (Lua 5.2 come with this feature). With this feature it is easy set a per Lua State/script memory limit. The Emergency GC feature is needed to allow a custom allocator to force the GC to run when the script is at it's memory limit. My EGC patch has been in use by the eLua [2] for years to help run Lua scripts on Microcontrollers with as little as 64Kbytes of Ram.

Also Lua is fine for large projects [3].

1. http://lua-users.org/wiki/EmergencyGarbageCollector

2. http://www.eluaproject.net/

3. http://prosody.im/

There are no comments on this comment yet.