Journal article

Title:
Effects, capabilities, and boxes: from scope-based reasoning to type-based reasoning and back
Authors:
J. Brachthäuser, P. Schuster, E. Lee, A. Boruch-Gruszecki
Publication:
Artifact of the paper "Effects, Capabilities, and Boxes: From Scope-based Reasoning to Type-based Reasoning and Back" 6 (OOPSLA1)
DOI:
Year:
2022
Link:

Abstract:
Reasoning about the use of external resources is an important aspect of many practical applications. Effect systems enable tracking such information in types, but at the cost of complicating signatures of common functions. Capabilities coupled with escape analysis offer safety and natural signatures, but are often overly coarse grained and restrictive. We present System C, which builds on and generalizes ideas from type-based escape analysis and demonstrates that capabilities and effects can be reconciled harmoniously. By assuming that all functions are second class, we can admit natural signatures for many common programs. By introducing a notion of boxed values, we can lift the restrictions of second-class values at the cost of needing to track degree-of-impurity information in types. The system we present is expressive enough to support effect handlers in full capacity. We practically evaluate System C in an implementation and prove its soundness.

BibTeX:
@article{brachthauser_effects_2022,
    title = {{Effects, capabilities, and boxes: from scope-based reasoning to type-based reasoning and back}},
    author = {Brachthäuser, Jonathan Immanuel and Schuster, Philipp and Lee, Edward and Boruch-Gruszecki, Aleksander},
    year = {2022},
    journal = {{Artifact of the paper "Effects, Capabilities, and Boxes: From Scope-based Reasoning to Type-based Reasoning and Back"}},
    number = {OOPSLA1},
    doi = {10.1145/3527320},
    pages = {76:1--76:30},
    url = {https://dl.acm.org/doi/10.1145/3527320},
    volume = {6},
    shorttitle = {Effects, capabilities, and boxes},
}