Dala: A Simple Capability-Based Dynamic Language Design For Data Race-Freedom

Kiko Fernandez-Reyes, Isaac Oscar Gariano, James Noble, Erin Greenwood-Thessman, Michael Homer +1 more
9/15/2021
cs.PLcs.DC

Official code: gracelang/moth-SOMns (4 stars, Java, MIT, last commit 2022-02-18).

Abstract

Dynamic languages like Erlang, Clojure, JavaScript, and E adopted data-race freedom by design. To enforce data-race freedom, these languages either deep copy objects during actor (thread) communication or proxy back to their owning thread.

Show full abstract

We present Dala, a simple programming model that ensures data-race freedom while supporting efficient inter-thread communication. Dala is a dynamic, concurrent, capability-based language that relies on three core capabilities: immutable values can be shared freely; isolated mutable objects can be transferred between threads but not aliased; local objects can be aliased within their owning thread but not dereferenced by other threads. Objects with capabilities can co-exist with unsafe objects, that are unchecked and may suffer data races, without compromising the safety of safe objects. We present a formal model of Dala, prove data race-freedom and state and prove a dynamic gradual guarantee. These theorems guarantee data race-freedom when using safe capabilities and show that the addition of capabilities is semantics preserving modulo permission and cast errors.

View on arXivView PDF

Code Implementations(1)

MIT

SOMns: A Newspeak for Concurrency Research

44Java, TypeScriptMar 22, 20194 years agoMIT

Similar Papers

Cite this paper

@article{fernandezreyes2021dala,
  title  = {Dala: A Simple Capability-Based Dynamic Language Design For Data Race-Freedom},
  author = {Kiko Fernandez-Reyes and Isaac Oscar Gariano and James Noble and Erin Greenwood-Thessman and Michael Homer and Tobias Wrigstad},
  year   = {2021},
  eprint = {2109.07541},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2109.07541}
}

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

Discussion