Title
Revisiting coroutines
Abstract
This article advocates the revival of coroutines as a convenient general control abstraction. After proposing a new classification of coroutines, we introduce the concept of full asymmetric coroutines and provide a precise definition for it through an operational semantics. We then demonstrate that full coroutines have an expressive power equivalent to one-shot continuations and one-shot delimited continuations. We also show that full asymmetric coroutines and one-shot delimited continuations have many similarities, and therefore present comparable benefits. Nevertheless, coroutines are easier implemented and understood, especially in the realm of procedural languages.
Year
DOI
Venue
2009
10.1145/1462166.1462167
ACM Trans. Program. Lang. Syst.
Keywords
DocType
Volume
full coroutines,operational semantics,precise definition,coroutines,one-shot delimited continuation,one-shot continuation,present comparable benefit,new classification,convenient general control abstraction,continuations resumo: este artigo defende o resgate de corotinas como uma poderosa abstracao de controle. nele propomos uma nova classificacao para corotinas e introduzimos o conceito de corotinas assimetricas completas,full asymmetric coroutines,formalizado atraves de uma semantica operacional. demonstramos entao que coroti- nas completas tem poder expressivo equivalente ao de continuacoes one- shot e continuacoes parciais one-shot. mostramos tambem que corotinas assimetricas co,expressive power equivalent,control structures,Revisiting coroutines
Journal
31
Issue
Citations 
PageRank 
2
20
1.21
References 
Authors
25
2
Name
Order
Citations
PageRank
Ana Lúcia De Moura1443.56
Roberto Ierusalimschy246354.25