3 ms·
Are there authoritative definitions of fibres, green threads and coroutines ? I would really love getting a pointer to that. I see a lot of these defined intech
by srean 8y ago
Are there authoritative definitions of fibres, green threads and coroutines ? I would really love getting a pointer to that. I see a lot of these defined intechangeably
- wahern 8y agoThe best and most careful description of all these concepts in a single source is the Project Loom proposal: http://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.html http://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.htm... Other than this paper, http://www.inf.puc-rio.br/~roberto/docs/corosblp.pdf http://www.inf.puc-rio.br/~roberto/docs/corosblp.pdf, which revived interest in coroutines, I don't have links handy for authoritative sources in the academic literature regarding nomenclature. "Stackful" and "stackless" are relatively recent descriptions and not too long ago they could have meant the complete opposite--Stackless Python (http://www.stackless.com/spcpaper.htm http://www.stackless.com/spcpaper.htm) implements what would now be called stackful coroutines.[1] But I think it's fair to say that today there's a relatively fixed nomenclature about the concepts. But people still create unnecessary confusion by conflating implementation details (often coincidental or accidental) with the abstract concepts. [1] The Stackless Python website talks about microthreads and tasklets, but the original paper begins the discussion with continuations, generators, and coroutines, and builds up from there.
- srean 8y agoI see. Thanks for the links. I would have thought standardization in terminology goes back much further in history than Java, like PDP-9~11 back. But better late than never.