News for hackers. Stuff that matters.
Re:Coroutines in one page of C by msteinert on Tuesday August 20, 2013 @12:24PM (#6244708)
I've always liked Russ Cox's solution [1]

[1]: http://swtch.com/libtask/

Re:Coroutines in one page of C by _ak on Tuesday August 20, 2013 @02:26PM (#6245581)
I concur. It's more code, but it's still really easy to understand, and basically precedes Go's concurrency model.
Re:Coroutines in one page of C by iambvk on Tuesday August 20, 2013 @05:09PM (#6246590)
Also, it is more powerful. You can return/resume from arbitrary function depths.