Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On the Soundness of Coroutines with Snapshots #41

Open
brianhempel opened this issue Jul 9, 2018 · 0 comments
Open

On the Soundness of Coroutines with Snapshots #41

brianhempel opened this issue Jul 9, 2018 · 0 comments

Comments

@brianhempel
Copy link
Contributor

brianhempel commented Jul 9, 2018

On the Soundness of Coroutines with Snapshots
Aleksandar Prokopec, Fengyun Liu
https://arxiv.org/pdf/1806.01405

Coroutines are a general control flow construct that can eliminate control flow fragmentation inherent in event-driven programs, and are still missing in many popular languages. Coroutines with snapshots are a first-class, type-safe, stackful coroutine model, which unifies many variants of suspendable computing, and is sufficiently general to express iterators, single-assignment variables, async-await, actors, event streams, backtracking, symmetric coroutines and continuations. In this paper, we develop a formal model called λ⇝ (lambda-squiggly) that captures the essence of type-safe, stackful, delimited coroutines with snapshots. We prove the standard progress and preservation safety properties. Finally, we show a formal transformation from the λ⇝ calculus to the simply-typed lambda calculus with references.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant