News for hackers. Stuff that matters.
Re:My tutorial and take on C++20 coroutines by hctaw on Monday February 22, 2021 @04:16PM (#26230751)
Modern stackful coroutines don't (or shouldn't) use context switching (at least not anything like ucontext_t, just use threads if you're going to spend the cycles to preserve the signal mask) or setjmp/longjmp. Those tricks are slow and hazardous, especially when code needs to cross language boundaries or remain exception safe.

There are no comments on this comment yet.