4 ms·
I have seen a pure C/C++ implementation of coroutines (it used setjmp/longjmp, and memcpy to copy stacks in and out of the native arena). Not the most portable
by kabdib 4mo ago
I have seen a pure C/C++ implementation of coroutines (it used setjmp/longjmp, and memcpy to copy stacks in and out of the native arena). Not the most portable of constructions, but it worked absurdly well.
Being able to write "async" code essentially in-line is a superpower.
- wglb 4mo agoAgree but nowhere as easy as what we did https://ciex-software.com/coroutines.html https://ciex-software.com/coroutines.html