Re: (not) handling new programming idioms with grace
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: (not) handling new programming idioms with grace
- From: Dibyendu Majumdar <mobile@...>
- Date: 2018年7月16日 20:30:26 +0100
Hi,
On 16 July 2018 at 19:50, Jay Carlson <nop@nop.com> wrote:
> On 2018年07月16日, at 1:54 PM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> 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?
Regards
Dibyendu