Skip to main navigation Skip to search Skip to main content

First-class effect reflection for effect-guided programming

Research output: Contribution to journalArticlepeer-review

Abstract

This paper introduces a novel type-and-effect calculus, first-class effects, where the computational effect of an expression can be programmatically reflected, passed around as values, and analyzed at run time. A broad range of designs "hard-coded" in existing effect-guided analyses - from thread scheduling, version-consistent software updating, to data zeroing - can be naturally supported through the programming abstractions. The core technical development is a type system with a number of features, including a hybrid type system that integrates static and dynamic effect analyses, a refinement type system to verify application-specific effect management properties, a double-bounded type system that computes both over-approximation of effects and their under-approximation. We introduce and establish a notion of soundness called trace consistency, defined in terms of how the effect and trace correspond. The property sheds foundational insight on "good" first-class effect programming.

Original languageEnglish
Pages (from-to)820-837
Number of pages18
JournalACM SIGPLAN Notices
Volume51
Issue number10
DOIs
StatePublished - Oct 19 2016

Keywords

  • first-class effect
  • hybrid typing
  • type system

Fingerprint

Dive into the research topics of 'First-class effect reflection for effect-guided programming'. Together they form a unique fingerprint.

Cite this