A flexible type system for fearless concurrency
A flexible type system for fearless concurrency
复制标题
灵活的类型系统,可实现无所畏惧的并发
DOI:
10.1145/3519939.3523443
复制
发表时间:
2022
期刊:
影响因子:
--
通讯作者:
Myers, Andrew C.
中科院分区:
文献类型:
--
作者:
Milano, Mae;Turcotti, Joshua;Myers, Andrew C.
This paper proposes a new type system for concurrent programs, allowing threads to exchange complex object graphs without risking destructive data races. While this goal is shared by a rich history of past work, existing solutions either rely on strictly enforced heap invariants that prohibit natural programming patterns or demand pervasive annotations even for simple programming tasks. As a result, past systems cannot express intuitively simple code without unnatural rewrites or substantial annotation burdens. Our work avoids these pitfalls through a novel type system that provides sound reasoning about separation in the heap while remaining flexible enough to support a wide range of desirable heap manipulations. This new sweet spot is attained by enforcing a heap domination invariant similarly to prior work, but tempering it by allowing complex exceptions that add little annotation burden. Our results include: (1) code examples showing that common data structure manipulations which are difficult or impossible to express in prior work are natural and direct in our system, (2) a formal proof of correctness demonstrating that well-typed programs cannot encounter destructive data races at run time, and (3) an efficient type checker implemented in Gallina and OCaml.
登录
查看更多内容
DOI:
--
发表时间:
2016
期刊:
European Conference on Object-Oriented Programming
影响因子:
--
作者:
Elias Castegren;Tobias Wrigstad
通讯作者:
Tobias Wrigstad
DOI:
--
发表时间:
2007
期刊:
影响因子:
--
作者:
D. Cunningham;S. Eisenbach;S. Drossopoulou
通讯作者:
S. Drossopoulou
DOI:
--
发表时间:
2015
期刊:
--
影响因子:
--
作者:
Eric C. Reed
通讯作者:
Eric C. Reed
DOI:
--
发表时间:
1999
期刊:
ACM-SIGACT Symposium on Principles of Programming Languages
影响因子:
--
作者:
Karl Crary;D. Walker;G. Morrisett
通讯作者:
G. Morrisett
影响因子:
1
作者:
V. Vasconcelos
通讯作者:
V. Vasconcelos