The reviewed record of science sign in
Pith

arxiv: 2109.07541 · v1 · pith:EVIFXARQ · submitted 2021-09-15 · cs.PL · cs.DC

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

Reviewed by Pith T0 review T1 audit T2 compute T3 formal T4 kernel pith:EVIFXARQrecord.jsonopen to challenge →

classification cs.PL cs.DC
keywords objectscapabilitiesdaladatadynamicdata-racefreedomrace-freedom
0
0 comments X
read the original 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. 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.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.