What Is Decidable about Gradual Types?

被引:9
|
作者
Migeed, Zeina [1 ]
Palsberg, Jens [1 ]
机构
[1] Univ Calif Los Angeles, Comp Sci Dept, 4732 Boelter Hall, Los Angeles, CA 90095 USA
来源
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL | 2020年 / 4卷 / POPL期
关键词
Types; migration; algorithms;
D O I
10.1145/3371097
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Programmers can use gradual types to migrate programs to have more precise type annotations and thereby improve their readability, efficiency, and safety. Such migration requires an exploration of the migration space and can benefit from tool support, as shown in previous work. Our goal is to provide a foundation for better tool support by settling decidability questions about migration with gradual types. We present three algorithms and a hardness result for deciding key properties and we explain how they can be useful during an exploration. In particular, we show how to decide whether the migration space is finite, whether it has a top element, and whether it is a singleton. We also show that deciding whether it has a maximal element is NP-hard. Our implementation of our algorithms worked as expected on a suite of microbenchmarks.
引用
收藏
页数:29
相关论文
共 50 条
  • [21] What Is Solidarity About? Views of Transnational Organisations' Activists in Germany, Poland, and Greece
    Zschache, Ulrike
    Theiss, Maria
    Paschou, Maria
    SOCIOLOGICAL RESEARCH ONLINE, 2021, 26 (03): : 628 - 648
  • [22] Why Liveness for Timed Automata Is Hard, and What We Can Do About It
    Herbreteau, Frederic
    Srivathsan, B.
    Tran, Thanh-Tung
    Walukiewicz, Igor
    ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2020, 21 (03)
  • [23] What You Always Wanted to Know About Evolution Strategies, But Never Dared to Ask
    Beyer, Hans-Georg
    PROCEEDINGS OF THE 2023 GENETIC AND EVOLUTIONARY COMPUTATION CONFERENCE COMPANION, GECCO 2023 COMPANION, 2023, : 878 - 894
  • [24] Modo tenet Normannus. What names tell us about the Norman conquest
    Lestremau, Arnaud
    CAHIERS DE CIVILISATION MEDIEVALE, 2022, 65 : 275 - 304
  • [25] What do Pakistani women know about New Zealand's healthcare system?
    Akhtar, Sumera Saeed
    Heydon, Susan
    Norris, Pauline
    JOURNAL OF PRIMARY HEALTH CARE, 2022, 14 (03) : 214 - 220
  • [26] What Do Migrants Know About Their Childcare Rights? A First Exploration in West Germany
    Seibel, Verena
    JOURNAL OF INTERNATIONAL MIGRATION AND INTEGRATION, 2021, 22 (03) : 1181 - 1202
  • [27] What do we know about dermal bioaccessibility of metals coated on antibacterial films?
    Kwon, Seon-Woo
    Park, Junyoung
    Baek, Dong-Jun
    Kim, Haeun
    Choi, Suk Soon
    Kwon, Jung-Hwan
    An, Jinsung
    ECOTOXICOLOGY AND ENVIRONMENTAL SAFETY, 2024, 274
  • [28] Boundary conditions of the Menzerath-Altmann Law. What should be taken: Tokens, types or lemmas?
    Wang, Yaqin
    Kelih, Emmerich
    GLOTTOMETRICS, 2024, 57
  • [29] What Do Immigrants Value Most About Switzerland? Evidence of the Relative Importance of Income Taxes
    Morger, Mario
    FINANZARCHIV, 2017, 73 (04): : 424 - 453
  • [30] What do climate impacts, health, and migration reveal about vulnerability and adaptation in the Marshall Islands?
    David Krzesni
    Laura Brewington
    Climate Action, 1 (1):