Tsoding - How Not to Market Your Language Features
Richard (Rikki) Andrew Cattermole
richard at cattermole.co.nz
Fri Mar 28 14:15:01 UTC 2025
On 29/03/2025 12:41 AM, Dukc wrote:
> Also many approaches are expecting async/await behavior
>
> Is this a problem for D? Doesn't Vibe.D, or even just Phobos, handle
> this just fine?
No.
D's Fiber's cannot move between threads safely, and there is a limit on
the number you can have at the kernel level due to the usage of pages.
We cannot recommend a solution to drive modern event loops (circa late
90's), due to safety concerns and these limitations. Note the word
recommend, it is important here!
Hence why we need stackless coroutines to fill in that gap ;)
More information about the Digitalmars-d
mailing list