Behavioural Types for Memory and Method Safety in a Core Object-Oriented Language

Mario Bravetti, Adrian Francalanza, Iaroslav Golovanov, Hans Hüttel, Mathias Steen Jakobsen +2 more
2/28/2020
cs.PL

Official code: MungoTypesystem/Mungo-Typechecker (3 stars, Haskell, BSD-3-Clause, last commit 2020-06-05).

Abstract

We present a type-based analysis ensuring memory safety and object protocol completion in the Java-like language Mungo. Objects are annotated with usages, typestates-like specifications of the admissible sequences of method calls.

Show full abstract

The analysis entwines usage checking, controlling the order in which methods are called, with a static check determining whether references may contain null values. The analysis prevents null pointer dereferencing and memory leaks and ensures that the intended usage protocol of every object is respected and completed. The type system has been implemented in the form of a type checker.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause
30Haskell, Modula-3Sep 24, 20196 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{bravetti2020behavioural,
  title  = {Behavioural Types for Memory and Method Safety in a Core Object-Oriented Language},
  author = {Mario Bravetti and Adrian Francalanza and Iaroslav Golovanov and Hans Hüttel and Mathias Steen Jakobsen and Mikkel Klinke Kettunen and António Ravara},
  year   = {2020},
  eprint = {2002.12793},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.12793}
}

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/2002.12793.svg)](https://codeofpaper.com/paper/2002.12793)

Discussion