When programs have to watch paint dry

10/14/2022
by   Danel Ahman, et al.
0

We explore type systems and programming abstractions for the safe use of resources. In particular, we investigate how to use types to modularly specify and check when programs are allowed to use their resources, e.g., when programming a robot arm on a production line, it is crucial that painted parts are given enough time to dry before assembly. We capture such temporal resources using a time-graded variant of Fitch-style modal type systems, develop a corresponding modally typed, effectful core calculus, and equip it with a graded-monadic denotational semantics illustrated by a concrete presheaf model. Our calculus also includes temporally-aware graded algebraic effects and effect handlers. The former are given a novel temporal treatment, where operations' specifications include their execution times, and their continuations know that an operation's worth of additional time has passed before they start executing, making it possible to safely access further temporal resources in them, and where effect handlers have to respect this temporal discipline.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/04/2021

Contextual Modal Types for Algebraic Effects and Handlers

Programming languages with algebraic effects often rely on effect annota...
research
04/19/2023

A Calculus for Scoped Effects Handlers

Algebraic effects handlers have become a standard approach for side-...
research
10/25/2019

Runners in action

Runners of algebraic effects, also known as comodels, provide a mathemat...
research
12/29/2021

Effects of Plasticity Functions on Neural Assemblies

We explore the effects of various plasticity functions on assemblies of ...
research
03/14/2019

Simply RaTT: A Fitch-style Modal Calculus for Reactive Programming without Space Leaks

Functional reactive programming (FRP) is a paradigm for programming with...
research
03/04/2020

Asynchronous effects

We explore asynchronous programming with algebraic effects. We complemen...
research
03/29/2022

On Reinforcement Learning, Effect Handlers, and the State Monad

We study the algebraic effects and handlers as a way to support decision...

Please sign up or login with your details

Forgot password? Click here to reset