{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,9,10]],"date-time":"2026-09-10T17:06:49Z","timestamp":1789060009787,"version":"build-2803163510"},"reference-count":41,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2017,10,12]],"date-time":"2017-10-12T00:00:00Z","timestamp":1507766400000},"content-version":"vor","delay-in-days":0,"URL":"http:\/\/www.acm.org\/publications\/policies\/copyright_policy#Background"}],"funder":[{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["1518844"],"award-info":[{"award-number":["1518844"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]},{"name":"EPSRC Cooler","award":["EP\/K01790X\/1"],"award-info":[{"award-number":["EP\/K01790X\/1"]}]}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2017,10,12]]},"abstract":"<jats:p>While gradual typing has proven itself attractive to programmers, many systems have avoided sound gradual typing due to the run time overhead of enforcement. In the context of sound gradual typing, both anecdotal and systematic evidence has suggested that run time costs are quite high, and often unacceptable, casting doubt on the viability of soundness as an approach.<\/jats:p>\n                  <jats:p>\n                    We show that these overheads are not fundamental, and that with appropriate improvements,\n                    <jats:bold>just-in-time compilers can greatly reduce the overhead of sound gradual typing<\/jats:bold>\n                    . Our study takes benchmarks published in a recent paper on gradual typing performance in Typed Racket (Takikawa et al., POPL 2016) and evaluates them using a experimental tracing JIT compiler for Racket, called Pycket. On typical benchmarks, Pycket is able to eliminate more than 90% of the gradual typing overhead. While our current results are not the final word in optimizing gradual typing, we show that the situation is not dire, and where more work is needed.\n                  <\/jats:p>\n                  <jats:p>\n                    Pycket's performance comes from several sources, which we detail and measure individually. First, we apply a sophisticated tracing JIT compiler and optimizer, automatically generated in Pycket using the RPython framework originally created for PyPy. Second, we focus our optimization efforts on the challenges posed by run time checks, implemented in Racket by\n                    <jats:italic toggle=\"yes\">chaperones and impersonators<\/jats:italic>\n                    . We introduce representation improvements, including a novel use of\n                    <jats:italic toggle=\"yes\">hidden classes<\/jats:italic>\n                    to optimize these data structures.\n                  <\/jats:p>","DOI":"10.1145\/3133878","type":"journal-article","created":{"date-parts":[[2017,10,13]],"date-time":"2017-10-13T11:15:45Z","timestamp":1507893345000},"page":"1-24","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":21,"title":["Sound gradual typing: only mostly dead"],"prefix":"10.1145","volume":"1","author":[{"given":"Spenser","family":"Bauman","sequence":"first","affiliation":[{"name":"Indiana University, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Carl Friedrich","family":"Bolz-Tereick","sequence":"additional","affiliation":[{"name":"King's College London, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Jeremy","family":"Siek","sequence":"additional","affiliation":[{"name":"Indiana University, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Sam","family":"Tobin-Hochstadt","sequence":"additional","affiliation":[{"name":"Indiana University, USA"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"320","published-online":{"date-parts":[[2017,10,12]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/12276.13333"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2013.06.006"},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/2069172.2069175"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/2508168.2508171"},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.1145\/2384577.2384586"},{"key":"e_1_2_2_6_1","volume-title":"Rebecca Killick, Vincent Knight, Sarah Mount, and Laurence Tratt.","author":"Barrett Edd","year":"2016","unstructured":"Edd Barrett, Carl Friedrich Bolz, Rebecca Killick, Vincent Knight, Sarah Mount, and Laurence Tratt. 2016. Virtual machine warmup blows hot and cold. arXiv preprint arXiv:1602.00602 (2016)."},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/2784731.2784740"},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-44202-9_11"},{"key":"e_1_2_2_9_1","volume-title":"European Conference on ObjectOriented Programming. Springer, 76\u2013100","author":"Bierman Gavin","year":"2010","unstructured":"Gavin Bierman, Erik Meijer, and Mads Torgersen. 2010. Adding Dynamic Types to C#. In European Conference on ObjectOriented Programming. Springer, 76\u2013100."},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/2069172.2069181"},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/1565824.1565827"},{"key":"e_1_2_2_12_1","volume-title":"Workshop on Dynamic Languages and Applications.","author":"Bolz Carl Friedrich","year":"2014","unstructured":"Carl Friedrich Bolz, Tobias Pape, Jeremy G. Siek, and Sam Tobin-Hochstadt. 2014. Meta-tracing makes a fast Racket. In Workshop on Dynamic Languages and Applications."},{"key":"e_1_2_2_13_1","volume-title":"Practical Optional Types for Clojure. European Symposium on Programming 25","author":"Bonnaire-Sergeant Ambrose","year":"2016","unstructured":"Ambrose Bonnaire-Sergeant, Rowan Davies, and Sam Tobin-Hochstadt. 2016. Practical Optional Types for Clojure. European Symposium on Programming 25 (2016)."},{"key":"e_1_2_2_14_1","doi-asserted-by":"publisher","DOI":"10.1145\/74877.74884"},{"key":"e_1_2_2_15_1","unstructured":"Olivier Danvy. 1991. Three Steps for the CPS Transformation. Technical Report CIS-92-02. Kansas State University."},{"key":"e_1_2_2_16_1","unstructured":"Facebook. 2017a. Flow Documentation. (2017). http:\/\/flowtype.org\/docs\/about-flow.html"},{"key":"e_1_2_2_17_1","volume-title":"https:\/\/docs.hhvm.com\/hack\/","author":"Documentation Hack","year":"2017","unstructured":"Facebook. 2017b. Hack Documentation. (2017). https:\/\/docs.hhvm.com\/hack\/"},{"key":"e_1_2_2_18_1","volume-title":"Friedman","author":"Felleisen Matthias","year":"1987","unstructured":"Matthias Felleisen and Daniel P. Friedman. 1987. Control operators, the SECD-machine and the lambda-calculus. In Working Conf. on Formal Description of Programming Concepts - III. Elsevier, 193\u2013217."},{"key":"e_1_2_2_19_1","doi-asserted-by":"publisher","DOI":"10.1145\/581478.581484"},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.1145\/155090.155113"},{"key":"e_1_2_2_21_1","unstructured":"Google. 2015. Dart Programming Language Specification. Technical Report. EMCA International. https:\/\/www.dartlang. org\/docs\/spec\/"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1145\/2254064.2254094"},{"key":"e_1_2_2_23_1","volume-title":"Proceedings of International Workshop on Scripts to Programs (STOP).","author":"Lehtosalo Jukka","year":"2011","unstructured":"Jukka Lehtosalo and David J Greaves. 2011. Language with a Pluggable Type System and Optional Runtime Monitoring of Type Errors. In Proceedings of International Workshop on Scripts to Programs (STOP)."},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/2617548.2617553"},{"key":"e_1_2_2_25_1","volume-title":"A New Crankshaft for V8. The Chromium Blog 7","author":"Millikin Kevin","year":"2010","unstructured":"Kevin Millikin and Florian Schneider. 2010. A New Crankshaft for V8. The Chromium Blog 7 (2010)."},{"key":"e_1_2_2_26_1","doi-asserted-by":"publisher","DOI":"10.1145\/2676726.2676971"},{"key":"e_1_2_2_27_1","unstructured":"Rob Reiner. 1987. The Princess Bride. (1987)."},{"key":"e_1_2_2_28_1","volume-title":"LIPIcs-Leibniz International Proceedings in Informatics","volume":"37","author":"Richards Gregor","year":"2015","unstructured":"Gregor Richards, Francesco Zappa Nardelli, and Jan Vitek. 2015. Concrete types for TypeScript. In LIPIcs-Leibniz International Proceedings in Informatics, Vol. 37. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik."},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/1176617.1176753"},{"key":"e_1_2_2_30_1","doi-asserted-by":"crossref","unstructured":"Thomas Schilling. 2013. Trace-based Just-in-time Compilation for Lazy Functional Programming Languages. Ph.D. Dissertation. University of Kent.","DOI":"10.1007\/978-3-642-34407-7_4"},{"key":"e_1_2_2_31_1","volume-title":"Scheme and Functional Programming Workshop","volume":"6","author":"Siek Jeremy G","year":"2006","unstructured":"Jeremy G Siek and Walid Taha. 2006. Gradual typing for functional languages. In Scheme and Functional Programming Workshop, Vol. 6. 81\u201392."},{"key":"e_1_2_2_32_1","volume-title":"Programming Languages and Systems","author":"Siek Jeremy G","unstructured":"Jeremy G Siek, Michael M Vitousek, Matteo Cimini, Sam Tobin-Hochstadt, and Ronald Garcia. 2015. Monotonic references for efficient gradual typing. In Programming Languages and Systems. Springer, 432\u2013456."},{"key":"e_1_2_2_33_1","doi-asserted-by":"publisher","DOI":"10.1145\/2384616.2384685"},{"key":"e_1_2_2_34_1","volume-title":"LIPIcs-Leibniz International Proceedings in Informatics","volume":"37","author":"Takikawa Asumu","year":"2015","unstructured":"Asumu Takikawa, Daniel Feltey, Earl Dean, Matthew Flatt, Robert Bruce Findler, Sam Tobin-Hochstadt, and Matthias Felleisen. 2015. Towards practical gradual typing. In LIPIcs-Leibniz International Proceedings in Informatics, Vol. 37. Schloss Dagstuhl-Leibniz-Zentrum fuer Informatik."},{"key":"e_1_2_2_35_1","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837630"},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.1145\/1176617.1176755"},{"key":"e_1_2_2_37_1","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328486"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1145\/1993498.1993514"},{"key":"e_1_2_2_39_1","doi-asserted-by":"publisher","DOI":"10.1145\/2661088.2661101"},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009849"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.1145\/1706299.1706343"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3133878","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3133878","content-type":"application\/pdf","content-version":"vor","intended-application":"syndication"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3133878","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,9,10]],"date-time":"2026-09-10T16:10:52Z","timestamp":1789056652000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3133878"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2017,10,12]]},"references-count":41,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2017,10,12]]}},"alternative-id":["10.1145\/3133878"],"URL":"https:\/\/doi.org\/10.1145\/3133878","relation":{},"ISSN":["2475-1421"],"issn-type":[{"value":"2475-1421","type":"electronic"}],"subject":[],"published":{"date-parts":[[2017,10,12]]},"assertion":[{"value":"2017-10-12","order":3,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}