Study of the Subtyping Machine of Nominal Subtyping with Variance (full version)

09/08/2021
by   Ori Roth, et al.
0

This is a study of the computing power of the subtyping machine behind Kennedy and Pierce's nominal subtyping with variance. We depict the lattice of fragments of Kennedy and Pierce's type system and characterize their computing power in terms of regular, context-free, deterministic, and non-deterministic tree languages. Based on the theory, we present Treetop – a generator of C# implementations of subtyping machines. The software artifact constitutes the first feasible (yet POC) fluent API generator to support context-free API protocols in a decidable type system fragment.

READ FULL TEXT

page 1

page 27

page 29

research
11/02/2022

Fluent APIs in Functional Languages (full version)

Fluent API is an object-oriented pattern for elegant APIs and embedded D...
research
02/09/2018

The language (and series) of Hammersley-type processes

We study languages and formal power series associated to (variants of) H...
research
11/05/2020

Multicloud API binding generation from documentation

We present industry experience from implementing retargetable cloud API ...
research
07/19/2023

On the work of dynamic constant-time parallel algorithms for regular tree languages and context-free languages

Previous work on Dynamic Complexity has established that there exist dyn...
research
09/09/2020

Ties between Parametrically Polymorphic Type Systems and Finite Control Automata

We present a correspondence and bisimulation between variants of paramet...
research
10/19/2020

Verifying Correct Usage of Context-Free API Protocols (Extended Version)

Several real-world libraries (e.g., reentrant locks, GUI frameworks, ser...
research
04/17/2019

On Resolving Non-determinism in Choreographies

Choreographies specify multiparty interactions via message passing. A re...

Please sign up or login with your details

Forgot password? Click here to reset