Re:Show HN: Neco – Coroutine Library for C
by keepamovin on Monday April 08, 2024 @01:55PM
(#39972144)
I like how your examples become progressively more comprehensive. What was your thinking going into this? How did you design this library? i think you wanted something this beautiful and perfect to exist, am i right? Or is it also an exercise to develop your own understanding? I wouldn't know where to begin with C gens/coroutines. Probably I would just fallback on kernel/sys calls to suspend and hack from there: yay my function is stopped; yay my code has been called again. Are you using setjmp/longjmp?
[ Parent
| on HN ]
There are no comments on this comment yet.