←back to thread

142 points jmillikin | 1 comments | | HN request time: 0.205s | source
Show context
throwaway81523 ◴[] No.44546779[source]
As the article acknowledges at the end, this is sort of like protothreads which has been around for ages. The article's CSS was so awful that I didn't read anything except the last paragraph, which seemed to tell me what I wanted to know.
replies(2): >>44546864 #>>44547166 #
1. mananaysiempre ◴[] No.44546864[source]
Right, this is more or less this blog author’s riff on (PuTTY author) Simon Tatham’s old page on coroutines using switch[1], which itself indicates that Tom Duff thought of this (which makes sense, it’s only a half-step away from Duff’s device) and described it as “revolting”. So in this sense the idea predates the standardization of C.

[1] https://www.chiark.greenend.org.uk/~sgtatham/coroutines.html