News for hackers. Stuff that matters.
Re:ProtoThreads: Lightweight, Stackless Threads in C by fjfaase on Monday September 23, 2019 @05:54AM (#21047370)
Actually, it is a way to represent state machines as 'code'. It is a way of seperating the data from the functions, such that the functions can be 'stopped' and 'continued' in the middle (turning them into coroutines). Each stop point (often hidden in an await) is a state of the state machine represented by the function.

There are no comments on this comment yet.