[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available)
- From: Coroutines <coroutines@...>
- Date: Wed, 9 Jul 2014 20:40:33 -0700
On Wed, Jul 9, 2014 at 8:35 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> there is a limit on the recursion depth of C function calls
>
> Otherwise, a Lua client might crash the host app:
>
> function tostring(x) print(x) end
> print(1)
>
> C function calls use the system's call stack, which is not infinite.
I kinda wish calling a C function would push a placeholder of sorts on
the Lua stack, so it could overflow the Lua stack before the host C
stack -- and there were no by-default limit on C calls for recursion
- References:
- Re: [ANN] Lua 5.3.0 (work3) now available, Leo Razoumov
- Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), David Demelier
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Rena
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Rena
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Coroutines
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Sean Conner
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Hao Wu
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Coroutines
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Hao Wu
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Coroutines
- Re: Why I leave Lua (Was: Re: [ANN] Lua 5.3.0 (work3) now available), Luiz Henrique de Figueiredo