Re: [Dwarf-discuss] Coroutines

2024-02-28 Thread Kyle Huey via Dwarf-discuss
On Wed, Feb 28, 2024 at 10:02 AM Adrian Prantl wrote: > > > > On Feb 27, 2024, at 1:53 PM, Kyle Huey via Dwarf-discuss > wrote: > > Put another way (forgive my pseudo code), if you have > > function silly_print() { > delay = rand(); > // Point 1 > async_sleep(delay).await; > //

Re: [Dwarf-discuss] Coroutines

2024-02-28 Thread Adrian Prantl via Dwarf-discuss
> On Feb 27, 2024, at 1:53 PM, Kyle Huey via Dwarf-discuss > wrote: > > Put another way (forgive my pseudo code), if you have > > function silly_print() { > delay = rand(); > // Point 1 > async_sleep(delay).await; > // Point 2 > printf("Hello" ); > } > > function

Re: [Dwarf-discuss] Coroutines

2024-02-27 Thread Kyle Huey via Dwarf-discuss
On Tue, Feb 27, 2024 at 1:07 PM Adrian Prantl wrote: > > > On Feb 27, 2024, at 10:32 AM, Kyle Huey wrote: > > On Wed, Feb 21, 2024 at 9:12 AM Adrian Prantl wrote: > >> Can you clarify what kind of information you are interested in? Are you >> talking about representing variables inside of

Re: [Dwarf-discuss] Coroutines

2024-02-27 Thread Adrian Prantl via Dwarf-discuss
> On Feb 27, 2024, at 10:32 AM, Kyle Huey wrote: > > On Wed, Feb 21, 2024 at 9:12 AM Adrian Prantl > wrote: >> Can you clarify what kind of information you are interested in? Are you >> talking about representing variables inside of coroutines, function pointers >>

Re: [Dwarf-discuss] Coroutines

2024-02-27 Thread Kyle Huey via Dwarf-discuss
On Wed, Feb 21, 2024 at 9:12 AM Adrian Prantl wrote: > Can you clarify what kind of information you are interested in? Are you > talking about representing variables inside of coroutines, function > pointers to coroutines, linetables for coroutines, ...? > > LLDB's Swift plugin for example

Re: [Dwarf-discuss] Coroutines

2024-02-21 Thread Adrian Prantl via Dwarf-discuss
Can you clarify what kind of information you are interested in? Are you talking about representing variables inside of coroutines, function pointers to coroutines, linetables for coroutines, ...? LLDB's Swift plugin for example supports Swift async functions (which are effectively coroutines)

Re: [Dwarf-discuss] Coroutines

2024-02-20 Thread David Blaikie via Dwarf-discuss
Not that I'm aware of - there might be some existing features that are used by languages that've had coroutines longer than C++? Not sure. I think LLVM does produce some DWARF for coroutines, but I haven't looked at it/seen how viable it is/how much consumers would need to know really specific

[Dwarf-discuss] Coroutines

2024-02-20 Thread Kyle Huey via Dwarf-discuss
Has anyone proposed or discussed DWARF structures to represent coroutines or similar constructs? I skimmed the open issues list and didn't see anything relevant. - Kyle -- Dwarf-discuss mailing list Dwarf-discuss@lists.dwarfstd.org https://lists.dwarfstd.org/mailman/listinfo/dwarf-discuss