Re:ProtoThreads: Lightweight, Stackless Threads in C
by bogomipz on Monday September 23, 2019 @02:02AM
(#21046305)
Interesting, does the async/await pattern always imply stackless then? Might you or someone else have any resources you could share on stackless vs stackful coroutines?
[ Parent
| on HN ]
Re:ProtoThreads: Lightweight, Stackless Threads in C
by gpderetta on Monday September 23, 2019 @03:24AM
(#21046647)
kinda; using a keyword instead of library call for suspend is done primarily to constrain suspension to a single stack frame (i.e. the calling continuation is not first class, same as for return), hence it is used to enforce the stackless-ness.