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 条
  • [31] What Does Google Trends Tell Us about the Impact of Brexit on the Unemployment Rate in the UK?
    Simionescu, Mihaela
    Streimikiene, Dalia
    Strielkowski, Wadim
    SUSTAINABILITY, 2020, 12 (03)
  • [32] WHAT DO PUBLIC POLICIES TEACH US ABOUT RURAL DEPOPULATION: THE CASE STUDY OF SPAIN
    Pinilla, Vicente
    Saez, Luis Antonio
    EUROPEAN COUNTRYSIDE, 2021, 13 (02): : 330 - 351
  • [33] What about Them? The (Un)Realized American Dream of the Family in Prashant Nair's Umrika
    Gupta, Gunjan
    AGATHOS-AN INTERNATIONAL REVIEW OF THE HUMANITIES AND SOCIAL SCIENCES, 2023, 14 (02) : 161 - 174
  • [34] What fishers' local ecological knowledge can reveal about the changes in exploited fish catches
    Martins, Ivan Machado
    Medeiros, Rodrigo Pereira
    Di Domenico, Maikon
    Hanazaki, Natalia
    FISHERIES RESEARCH, 2018, 198 : 109 - 116
  • [35] Fleeing mass starvation: what we (do not) know about the famine-migration nexus
    Sadliwala, Batul K.
    DISASTERS, 2021, 45 (02) : 255 - 277
  • [36] Migrating microbes: what pathogens can tell us about population movements and human evolution
    Houldcroft, Charlotte J.
    Ramond, Jean-Baptiste
    Rifkin, Riaan F.
    Underdown, Simon J.
    ANNALS OF HUMAN BIOLOGY, 2017, 44 (05) : 397 - 407
  • [37] What have we learnt about CO2 leakage from CO2 release field experiments, and what are the gaps for the future?
    Roberts, Jennifer J.
    Stalker, Linda
    EARTH-SCIENCE REVIEWS, 2020, 209
  • [38] What Is the Nexus between Migration and Mobility? A Framework to Understand the Interplay between Different Ideal Types of Human Movement
    Piccoli, Lorenzo
    Gianni, Matteo
    Ruedin, Didier
    Achermann, Christin
    Dahinden, Janine
    Hoffmeyer-Zlotnik, Paula
    Nedelcu, Mihaela
    Zittoun, Tania
    SOCIOLOGY-THE JOURNAL OF THE BRITISH SOCIOLOGICAL ASSOCIATION, 2024, 58 (05): : 1019 - 1037
  • [39] What do we know about the experiences of belonging for [Black] Africans in Australia? A systematic scoping review
    Gatwiri, Kathomi
    James, Samara
    AUSTRALIAN JOURNAL OF SOCIAL ISSUES, 2024,
  • [40] Keeping time without a spine: what can the insect clock teach us about seasonal adaptation?
    Denlinger, David L.
    Hahn, Daniel A.
    Merlin, Christine
    Holzapfel, Christina M.
    Bradshaw, William E.
    PHILOSOPHICAL TRANSACTIONS OF THE ROYAL SOCIETY B-BIOLOGICAL SCIENCES, 2017, 372 (1734)