An idea; Coroutines
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Tue Jan 16 20:43:19 UTC 2024
On 17/01/2024 9:23 AM, Sebastiaan Koppe wrote:
> On Tuesday, 16 January 2024 at 14:20:41 UTC, Richard (Rikki) Andrew
> Cattermole wrote:
>> Coroutines! Oh coroutines.
>
> Coroutines are nice, but for general asynchronous computation you'll
> want something more abstract.
>
> Have you seen the Sender/Receiver work in C++?
> https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2023/p2300r7.html#intro
>
> I highly recommend understanding its working principles. Happy to help
> answer questions of course.
>
> We did an implementation at
> https://github.com/symmetryinvestments/concurrency which I am (very
> slowly) cleaning up and prepping for inclusion into Phobos.
I think I did look at it at some point, but went yeah this is way more
complex than what I need.
It may be possible that the language coroutine support may be able to
drive it. Which could be worth considering.
More information about the Digitalmars-d
mailing list