{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,11]],"date-time":"2026-07-11T21:16:37Z","timestamp":1783804597532,"version":"3.55.0"},"reference-count":53,"publisher":"Association for Computing Machinery (ACM)","issue":"POPL","license":[{"start":{"date-parts":[[2021,1,4]],"date-time":"2021-01-04T00:00:00Z","timestamp":1609718400000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["1763922,1846350"],"award-info":[{"award-number":["1763922,1846350"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2021,1,4]]},"abstract":"<jats:p>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.<\/jats:p>\n                  <jats:p>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.<\/jats:p>\n                  <jats:p>We evaluate this approach on a dozen existing gradually typed programs previously shown to have prohibitive performance overhead\u2014with a median overhead of 2.5\u00d7 and up to 80.6\u00d7 in the worst case\u2014and eliminate all overhead in most cases, suffering only 1.5\u00d7 overhead in the worst case.<\/jats:p>","DOI":"10.1145\/3434334","type":"journal-article","created":{"date-parts":[[2021,1,4]],"date-time":"2021-01-04T12:34:24Z","timestamp":1609763664000},"page":"1-28","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":13,"title":["Corpse reviver: sound and efficient gradual typing via contract verification"],"prefix":"10.1145","volume":"5","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-4384-6351","authenticated-orcid":false,"given":"Cameron","family":"Moy","sequence":"first","affiliation":[{"name":"Northeastern University, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Ph\u00fac C.","family":"Nguy\u1ec5n","sequence":"additional","affiliation":[{"name":"University of Maryland, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Sam","family":"Tobin-Hochstadt","sequence":"additional","affiliation":[{"name":"Indiana University, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9201-6864","authenticated-orcid":false,"given":"David","family":"Van Horn","sequence":"additional","affiliation":[{"name":"University of Maryland, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2021,1,4]]},"reference":[{"key":"e_1_2_1_1_1","doi-asserted-by":"publisher","unstructured":"Alexander Aiken Edward L. Wimmers and T. K. Lakshman. 1994. Soft Typing with Conditional TypesP.rIinnciples of Programming Languages (POPL). DOI:http:\/\/dx.doi.org\/10.1145\/174675.177847 10.1145\/174675.177847","DOI":"10.1145\/174675.177847"},{"key":"e_1_2_1_2_1","doi-asserted-by":"publisher","unstructured":"Leif Andersen Vincent St-Amour Jan Vitek and Mathias Felleisen. 2018. Feature-Specific ProfilinTgra. nsactions on Programming Languages and Systems (TOPLAS) ( 2018 ). DOI:http:\/\/dx.doi.org\/10.1145\/3275519 10.1145\/3275519","DOI":"10.1145\/3275519"},{"key":"e_1_2_1_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/3133878"},{"key":"e_1_2_1_4_1","doi-asserted-by":"publisher","unstructured":"Gavin Bierman Erik Meijer and Mads Torgersen. 2010. Adding Dynamic Types to C#E. uInropean Conference on ObjectOriented Programming (ECOOP). DOI:http:\/\/dx.doi.org\/10.1007\/978-3-642-14107-2_5 10.1007\/978-3-642-14107-2_5","DOI":"10.1007\/978-3-642-14107-2_5"},{"key":"e_1_2_1_5_1","doi-asserted-by":"publisher","unstructured":"Andrew P. Black Kim B. Bruce Michael Homer and James Noble. 2012. Grace: The Absence of (Inessential) Dificulty. In New Ideas New Paradigms and Reflections on Programming and Software (Onward!). DOI:http:\/\/dx.doi.org\/10.1145\/ 2384592.2384601 10.1145\/2384592.2384601","DOI":"10.1145\/2384592.2384601"},{"key":"e_1_2_1_6_1","doi-asserted-by":"publisher","unstructured":"Robert Cartwright and Mike Fagan. 1991. Soft Typing. IPnrogramming Language Design and Implementation (PLDI). DOI: http:\/\/dx.doi.org\/10.1145\/113445.113469 10.1145\/113445.113469","DOI":"10.1145\/113445.113469"},{"key":"e_1_2_1_7_1","doi-asserted-by":"publisher","unstructured":"Avik Chaudhuri Panagiotis Vekris Sam Goldman Marshall Roch and Gabriel Levi. 2017. Fast and Precise Type Checking for JavaScript. InObject-Oriented Programming Systems Languages and Applications (OOPSLA). DOI:http:\/\/dx.doi.org\/ 10.1145\/3133872 10.1145\/3133872","DOI":"10.1145\/3133872"},{"key":"e_1_2_1_8_1","doi-asserted-by":"publisher","unstructured":"William D. Clinger. 1998. Proper Tail Recursion and Space Eficiency. PInrogramming Language Design and Implementation (PLDI). DOI:http:\/\/dx.doi.org\/10.1145\/277650.277719 10.1145\/277650.277719","DOI":"10.1145\/277650.277719"},{"key":"e_1_2_1_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110256"},{"key":"e_1_2_1_10_1","volume-title":"Robert Bruce Findler, and Mathew Flat","author":"Felleisen Mathias","year":"2009","unstructured":"Mathias Felleisen, Robert Bruce Findler, and Mathew Flat. 2009. Semantics Engineering with PLT Redex."},{"key":"e_1_2_1_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276503"},{"key":"e_1_2_1_12_1","doi-asserted-by":"publisher","unstructured":"Robert Bruce Findler and Mathias Felleisen. 2002. Contracts for Higher-Order FunctioInntse.rInnational Conference on Functional Programming (ICFP). DOI:http:\/\/dx.doi.org\/10.1145\/581478.581484 10.1145\/581478.581484","DOI":"10.1145\/581478.581484"},{"key":"e_1_2_1_13_1","doi-asserted-by":"publisher","unstructured":"Cormac Flanagan and Mathias Felleisen. 1999. Componential Set-Based AnaTlryasnis. actions on Programming Languages and Systems (TOPLAS) ( 1999 ). DOI:http:\/\/dx.doi.org\/10.1145\/316686.316703 10.1145\/316686.316703","DOI":"10.1145\/316686.316703"},{"key":"e_1_2_1_14_1","unstructured":"Google Inc. 2018. Dart. ( 2018 ) h. ttps:\/\/dart.dev\/"},{"key":"e_1_2_1_15_1","doi-asserted-by":"publisher","unstructured":"Michael Greenberg. 2016. Space-Eficient Latent ContractsT.rIennds in Functional Programming (TFP). DOI:http:\/\/dx.doi. org\/10.1007\/978-3-030-14805-8_1 10.1007\/978-3-030-14805-8_1","DOI":"10.1007\/978-3-030-14805-8_1"},{"key":"e_1_2_1_16_1","doi-asserted-by":"publisher","unstructured":"Ben Greenman and Mathias Felleisen. 2018. A Spectrum of Type Soundness and PerformanceIn. tIenrnational Conference on Functional Programming (ICFP). DOI:http:\/\/dx.doi.org\/10.1145\/3236766 10.1145\/3236766","DOI":"10.1145\/3236766"},{"key":"e_1_2_1_17_1","doi-asserted-by":"publisher","unstructured":"Ben Greenman and Zeina Migeed. 2017. On the Cost of Type-Tag SoundnesPsa.rItnial Evaluation and Program Manipulation (PEPM). DOI:http:\/\/dx.doi.org\/10.1145\/3162066 10.1145\/3162066","DOI":"10.1145\/3162066"},{"key":"e_1_2_1_18_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796818000217"},{"key":"e_1_2_1_19_1","doi-asserted-by":"publisher","DOI":"10.1016\/0167-6423(94)00004-2"},{"key":"e_1_2_1_20_1","doi-asserted-by":"publisher","unstructured":"David Herman Aaron Tomb and Cormac Flanagan. 2010. Space-Eficient Gradual TypinHgi.gher-Order and Symbolic Computation ( 2010 ). DOI:http:\/\/dx.doi.org\/10.1007\/s10990-011-9066-z 10.1007\/s10990-011-9066-z","DOI":"10.1007\/s10990-011-9066-z"},{"key":"e_1_2_1_21_1","doi-asserted-by":"publisher","DOI":"10.1145\/3314221.3314627"},{"key":"e_1_2_1_22_1","unstructured":"Jukka Lehtosalo. 2017. MyPy: Optional Static Typing for Python. ( 2h0t1t7p ).:\/\/mypy-lang.org\/"},{"key":"e_1_2_1_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/1111037.1111057"},{"key":"e_1_2_1_24_1","unstructured":"Microsoft Corp. 2014. TypeScript Language Specification. ( 2014 ).http:\/\/www.typescriptlang.org"},{"key":"e_1_2_1_25_1","doi-asserted-by":"publisher","unstructured":"Fabian Muehlboeck and Ross Tate. 2017. Sound Gradual Typing is Nominally Alive and WOebljelc.tI-nOriented Programming Systems Languages and Applications (OOPSLA). DOI:http:\/\/dx.doi.org\/10.1145\/3133880 10.1145\/3133880","DOI":"10.1145\/3133880"},{"key":"e_1_2_1_26_1","doi-asserted-by":"publisher","unstructured":"Ph\u00fac C. Nguy\u1ec5n Thomas Gilray Sam Tobin-Hochstadt and David Van Horn. 2018. Soft Contract Verification for HigherOrder Stateful Programs. PInrinciples of Programming Languages (POPL). DOI:http:\/\/dx.doi.org\/10.1145\/3158139 10.1145\/3158139","DOI":"10.1145\/3158139"},{"key":"e_1_2_1_27_1","doi-asserted-by":"publisher","unstructured":"Ph\u00fac C. Nguy\u1ec5n Sam Tobin-Hochstadt and David Van Horn. 2014. Soft Contract VerificatioInn.tIenrnational Conference on Functional Programming (ICFP). DOI:http:\/\/dx.doi.org\/10.1145\/2628136.2628156 10.1145\/2628136.2628156","DOI":"10.1145\/2628136.2628156"},{"key":"e_1_2_1_28_1","doi-asserted-by":"publisher","unstructured":"Ph\u00fac C. Nguy\u1ec5n Sam Tobin-Hochstadt and David Van Horn. 2017. Higher-Order Symbolic Execution for Contract Verification and RefutatioJnou.rnal of Functional Programming (JFP) ( 2017 ). DOI:http:\/\/dx.doi.org\/10.1017\/S0956796816000216 10.1017\/S0956796816000216","DOI":"10.1017\/S0956796816000216"},{"key":"e_1_2_1_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/2737924.2737971"},{"key":"e_1_2_1_30_1","doi-asserted-by":"publisher","unstructured":"Aseem Rastogi Nikhil Swamy C\u00e9dric Fournet Gavin Bierman and Panagiotis Vekris. 2015. Safe & Eficient Gradual Typing for TypeScript. InPrinciples of Programming Languages (POPL). DOI:http:\/\/dx.doi.org\/10.1145\/2676726.2676971 10.1145\/2676726.2676971","DOI":"10.1145\/2676726.2676971"},{"key":"e_1_2_1_31_1","doi-asserted-by":"publisher","unstructured":"Gregor Richards Ellen Arteca and Alexi Turcote. 2017. The VM Already Knew That: Leveraging Compile-Time Knowledge to Optimize Gradual Typing. IOnbject-Oriented Programming Systems Languages and Applications (OOPSLA). DOI: http:\/\/dx.doi.org\/10.1145\/3133879 10.1145\/3133879","DOI":"10.1145\/3133879"},{"key":"e_1_2_1_32_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP"},{"key":"e_1_2_1_33_1","volume-title":"Siek and Walid Taha","author":"Jeremy","year":"2006","unstructured":"Jeremy G. Siek and Walid Taha. 2006. Gradual Typing for Functional LanguagSecsh. eImne and Functional Programming Workshop."},{"key":"e_1_2_1_34_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-46669-8_18"},{"key":"e_1_2_1_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/1706299.1706342"},{"key":"e_1_2_1_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/2384616.2384685"},{"key":"e_1_2_1_37_1","unstructured":"Stripe Inc. 2019. Sorbet. ( 2019 ) h.ttps:\/\/sorbet.org\/"},{"key":"e_1_2_1_38_1","doi-asserted-by":"publisher","unstructured":"Nikhil Swamy Cedric Fournet Aseem Rastogi Karthikeyan Bhargavan Juan Chen Pierre-Yves Strub and Gavin Bierman. 2014. Gradual Typing Embedded Securely in JavaScript.PIrninciples of Programming Languages (POPL). DOI:http:\/\/dx.doi.org\/10.1145\/2535838.2535889 10.1145\/2535838.2535889","DOI":"10.1145\/2535838.2535889"},{"key":"e_1_2_1_39_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP"},{"key":"e_1_2_1_40_1","doi-asserted-by":"publisher","unstructured":"Asumu Takikawa Daniel Feltey Ben Greenman Max S. New Jan Vitek and Mathias Felleisen. 2016. Is Sound Gradual Typing Dead?. InPrinciples of Programming Languages (POPL). DOI:http:\/\/dx.doi.org\/10.1145\/2837614.2837630 10.1145\/2837614.2837630","DOI":"10.1145\/2837614.2837630"},{"key":"e_1_2_1_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/1176617.1176755"},{"key":"e_1_2_1_42_1","doi-asserted-by":"publisher","unstructured":"Sam Tobin-Hochstadt and Mathias Felleisen. 2008. The Design and Implementation of Typed SchemeP.rIinnciples of Programming Languages (POPL). DOI:http:\/\/dx.doi.org\/10.1145\/1328438.1328486 10.1145\/1328438.1328486","DOI":"10.1145\/1328438.1328486"},{"key":"e_1_2_1_43_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.SNAPL"},{"key":"e_1_2_1_44_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.ECOOP"},{"key":"e_1_2_1_45_1","doi-asserted-by":"publisher","unstructured":"David Van Horn and Mathew Might. 2010. Abstracting Abstract MachineIsn.teIrnnational Conference on Functional Programming (ICFP). DOI:http:\/\/dx.doi.org\/10.1145\/1863543.1863553 10.1145\/1863543.1863553","DOI":"10.1145\/1863543.1863553"},{"key":"e_1_2_1_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/2661088.2661101"},{"key":"e_1_2_1_47_1","doi-asserted-by":"publisher","DOI":"10.1145\/3359619.3359742"},{"key":"e_1_2_1_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009849"},{"key":"e_1_2_1_49_1","doi-asserted-by":"publisher","DOI":"10.1145\/2429069.2429121"},{"key":"e_1_2_1_50_1","doi-asserted-by":"publisher","DOI":"10.1145\/239912.239917"},{"key":"e_1_2_1_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/1706299.1706343"},{"key":"e_1_2_1_52_1","doi-asserted-by":"publisher","unstructured":"Dana N. Xu. 2012. Hybrid Contract Checking via Symbolic SimplificationP.aIrntial Evaluation and Program Manipulation (PEPM). DOI:http:\/\/dx.doi.org\/10.1145\/2103746.2103767 10.1145\/2103746.2103767","DOI":"10.1145\/2103746.2103767"},{"key":"e_1_2_1_53_1","doi-asserted-by":"publisher","DOI":"10.1145\/1480881.1480889"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3434334","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3434334","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3434334","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,6,19]],"date-time":"2026-06-19T07:27:19Z","timestamp":1781854039000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3434334"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,1,4]]},"references-count":53,"journal-issue":{"issue":"POPL","published-print":{"date-parts":[[2021,1,4]]}},"alternative-id":["10.1145\/3434334"],"URL":"https:\/\/doi.org\/10.1145\/3434334","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,1,4]]},"assertion":[{"value":"2021-01-04","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}