[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: (not) handling new programming idioms with grace
- From: Dibyendu Majumdar <mobile@...>
- Date: Mon, 16 Jul 2018 20:30:26 +0100
On 16 July 2018 at 19:50, Jay Carlson <firstname.lastname@example.org> wrote:
> On 2018-07-16, at 1:54 PM, Roberto Ierusalimschy <email@example.com> wrote:
>> However, a main issue of any "deterministic cleanup" in Lua is its
>> interaction with coroutines. A coroutine can enter a block and never
>> leave it.
> Yeah, last time the proposal was, "Don't let that happen, and if you do, at least the garbage collector will get to it eventually."
I am not sure if this is a problem? If you think of coroutine as a new
thread with its own stack, then any cleanup in the original thread
need not be called unless the coroutine returned to the original
thread. Have I missed the point here?