A Functional Abstraction of Typed Invocation Contexts

10/14/2021
by   Youyou Cong, et al.
0

In their paper "A Functional Abstraction of Typed Contexts", Danvy and Filinski show how to derive a type system of the shift and reset operators from a CPS semantics. In this paper, we show how this method scales to Felleisen's control and prompt operators. Compared to shift and reset, control and prompt exhibit a more dynamic behavior, in that they can manipulate a trail of contexts surrounding the invocation of previously captured continuations. Our key observation is that, by adopting a functional representation of trails in the CPS semantics, we can derive a type system that encodes all and only constraints imposed by the CPS semantics.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
05/04/2023

Type System for Four Delimited Control Operators

The operational behavior of control operators has been studied comprehen...
research
03/16/2023

Full Abstraction for Free

Structured recursion schemes such as folds and unfolds have been widely ...
research
11/10/2020

Data Flow Refinement Type Inference

Refinement types enable lightweight verification of functional programs....
research
07/07/2017

Complete Call-by-Value Calculi of Control Operators, I

We give new call-by-value calculi of control operators that are complete...
research
02/22/2018

On Looking for Local Expansion Invariants in Argumentation Semantics

We study invariant local expansion operators for conflict-free and admis...
research
08/06/2014

The functional mean-shift algorithm for mode hunting and clustering in infinite dimensions

We introduce the functional mean-shift algorithm, an iterative algorithm...
research
08/05/2019

A Unifying Analysis of Shift Operators on a Graph

The maximum entropy principle is employed to introduce a general class o...

Please sign up or login with your details

Forgot password? Click here to reset