Repository logo

Infoscience

  • English
  • French
Log In
Logo EPFL, École polytechnique fédérale de Lausanne

Infoscience

  • English
  • French
Log In
  1. Home
  2. Academic and Research Output
  3. Journal articles
  4. Effects, Capabilities, and Boxes From Scope-Based Reasoning to Type-Based Reasoning and Back
 
research article

Effects, Capabilities, and Boxes From Scope-Based Reasoning to Type-Based Reasoning and Back

Brachthaeuser, Jonathan Immanuel
•
Schuster, Philipp
•
Lee, Edward
Show more
April 1, 2022
Proceedings of the ACM on Programming Languages

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.

  • Details
  • Metrics
Type
research article
DOI
10.1145/3527320
Web of Science ID

WOS:000790329300012

Author(s)
Brachthaeuser, Jonathan Immanuel
Schuster, Philipp
Lee, Edward
Boruch-Gruszecki, Aleksander  
Date Issued

2022-04-01

Publisher

ASSOC COMPUTING MACHINERY

Published in
Proceedings of the ACM on Programming Languages
Volume

6

Issue

OOPSLA

Start page

76

Subjects

Computer Science, Software Engineering

•

Computer Science

•

effect systems

•

effect polymorphism

•

second-class values

•

capabilities

Editorial or Peer reviewed

REVIEWED

Written at

EPFL

EPFL units
LAMP1  
Available on Infoscience
May 23, 2022
Use this identifier to reference this record
https://infoscience.epfl.ch/handle/20.500.14299/188027
Logo EPFL, École polytechnique fédérale de Lausanne
  • Contact
  • infoscience@epfl.ch

  • Follow us on Facebook
  • Follow us on Instagram
  • Follow us on LinkedIn
  • Follow us on X
  • Follow us on Youtube
AccessibilityLegal noticePrivacy policyCookie settingsEnd User AgreementGet helpFeedback

Infoscience is a service managed and provided by the Library and IT Services of EPFL. © EPFL, tous droits réservés