lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


>>>>> "Roberto" == Roberto Ierusalimschy <roberto@inf.puc-rio.br> writes:

 >> OK, so this is another big problem for embedded environments: there
 >> is no reasonable way for a single compile-time recursion count limit
 >> to be able to limit the C stack depth adequately. [...]

 Roberto> Lua has been using this system for many years, and it has been
 Roberto> doing quite well in embedded environments.

I wonder how many of them crash if you do

local function f(s) s:gsub(".", f) return "x" end f("foo")

and more to the point, how many of them will crash on that code if they
switch to 5.4 without realizing the default stack depth grew 10x.

-- 
Andrew.