Corpse reviver: sound and efficient gradual typing via contract verification
Corpse reviver: sound and efficient gradual typing via contract verification
复制标题
尸体复活者:通过合约验证健全高效的逐步打字
DOI:
10.1145/3434334
复制
发表时间:
2021
影响因子:
--
通讯作者:
Van Horn, David
中科院分区:
文献类型:
--
作者:
Moy, Cameron;Nguyễn, Phúc C.;Tobin-Hochstadt, Sam;Van Horn, David
Gradually typed programming languages permit the incremental addition of static types to untyped programs. To remain sound, languages insert run-time checks at the boundaries between typed and untyped code. Unfortunately, performance studies have shown that the overhead of these checks can be disastrously high, calling into question the viability of sound gradual typing. In this paper, we show that by building on existing work on soft contract verification, we can reduce or eliminate this overhead.Our key insight is that while untyped code cannot be trusted by a gradual type system, there is no need to consider only the worst case when optimizing a gradually typed program. Instead, we statically analyze the untyped portions of a gradually typed program to prove that almost all of the dynamic checks implied by gradual type boundaries cannot fail, and can be eliminated at compile time. Our analysis is modular, and can be applied to any portion of a program.We evaluate this approach on a dozen existing gradually typed programs previously shown to have prohibitive performance overhead—with a median overhead of 2.5× and up to 80.6× in the worst case—and eliminate all overhead in most cases, suffering only 1.5× overhead in the worst case.
登录
查看更多内容
影响因子:
--
作者:
P. Meunier;R. Findler;M. Felleisen
通讯作者:
M. Felleisen
DOI:
10.1145/174675.177847
发表时间:
1994
期刊:
ACM Trans. Program. Lang. Syst.
影响因子:
--
作者:
A. Aiken;E. Wimmers;T. K. Lakshman
通讯作者:
T. K. Lakshman
影响因子:
--
作者:
G. Richards;Francesco Zappa Nardelli;J. Vitek
通讯作者:
J. Vitek
影响因子:
1.3
作者:
Leif Andersen;Vincent St;J. Vitek;M. Felleisen
通讯作者:
M. Felleisen
DOI:
10.1007/978-3-540-73589-2_2
发表时间:
2007-07
期刊:
--
影响因子:
--
作者:
Jeremy G. Siek;Walid Taha
通讯作者:
Jeremy G. Siek;Walid Taha