Using Standard Typing Algorithms Incrementally

Matteo Busi, Pierpaolo Degano, Letterio Galletta
8/1/2018
cs.PL

Official code: matteobusi/incremental-mincaml (7 stars, OCaml, last commit 2021-06-11).

Abstract

Modern languages are equipped with static type checking/inference that helps programmers to keep a clean programming style and to reduce errors. However, the ever-growing size of programs and their continuous evolution require building fast and efficient analysers.

Show full abstract

A promising solution is incrementality, so one only re-types those parts of the program that are new, rather than the entire codebase. We propose an algorithmic schema driving the definition of an incremental typing algorithm that exploits the existing, standard ones with no changes. Ours is a grey-box approach, meaning that just the shape of the input, that of the results and some domain-specific knowledge are needed to instantiate our schema. Here, we present the foundations of our approach and we show it at work to derive three different incremental typing algorithms. The first two implement type checking and inference for a functional language. The last one type-checks an imperative language to detect information flow and non-interference. We assessed our proposal on a prototypical implementation of an incremental type checker. Our experiments show that using the type checker incrementally is (almost) always rewarding.

View on arXivView PDF

Code Implementations(1)

Incremental typing for a small subset of OCaml

70OCaml, PythonMay 10, 20185 years agoNOASSERTION

Similar Papers

Cite this paper

@article{busi2018using,
  title  = {Using Standard Typing Algorithms Incrementally},
  author = {Matteo Busi and Pierpaolo Degano and Letterio Galletta},
  year   = {2018},
  eprint = {1808.00225},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1808.00225}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1808.00225.svg)](https://codeofpaper.com/paper/1808.00225)

Discussion