{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2025,6,18]],"date-time":"2025-06-18T04:19:53Z","timestamp":1750220393465,"version":"3.41.0"},"reference-count":54,"publisher":"Association for Computing Machinery (ACM)","issue":"OOPSLA","license":[{"start":{"date-parts":[[2021,10,15]],"date-time":"2021-10-15T00:00:00Z","timestamp":1634256000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["dl.acm.org"],"crossmark-restriction":true},"short-container-title":["Proc. ACM Program. Lang."],"published-print":{"date-parts":[[2021,10,20]]},"abstract":"<jats:p>\n            Dynamically-typed languages offer easy interaction with ad hoc data such as JSON and S-expressions; statically-typed languages offer powerful tools for working with structured data, notably\n            <jats:italic>algebraic datatypes<\/jats:italic>\n            , which are a core feature of typed languages both functional and otherwise. Gradual typing aims to reconcile dynamic and static typing smoothly. The gradual typing literature has extensively focused on the computational aspect of types, such as type safety, effects, noninterference, or parametricity, but the application of graduality to data structuring mechanisms has been much less explored. While row polymorphism and set-theoretic types have been studied in the context of gradual typing, algebraic datatypes in particular have not, which is surprising considering their wide use in practice. We develop, formalize, and prototype a novel approach to gradually structured data with algebraic datatypes. Gradually structured data bridges the gap between traditional algebraic datatypes and flexible data management mechanisms such as tagged data in dynamic languages, or polymorphic variants in OCaml. We illustrate the key ideas of gradual algebraic datatypes through the evolution of a small server application from dynamic to progressively more static checking, formalize a core functional language with gradually structured data, and establish its metatheory, including the gradual guarantees.\n          <\/jats:p>","DOI":"10.1145\/3485503","type":"journal-article","created":{"date-parts":[[2021,10,15]],"date-time":"2021-10-15T19:18:28Z","timestamp":1634325508000},"page":"1-29","update-policy":"https:\/\/doi.org\/10.1145\/crossmark-policy","source":"Crossref","is-referenced-by-count":4,"title":["Gradually structured data"],"prefix":"10.1145","volume":"5","author":[{"given":"Stefan","family":"Malewski","sequence":"first","affiliation":[{"name":"University of Chile, Chile"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0014-7670","authenticated-orcid":false,"given":"Michael","family":"Greenberg","sequence":"additional","affiliation":[{"name":"Stevens Institute of Technology, USA"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"\u00c9ric","family":"Tanter","sequence":"additional","affiliation":[{"name":"University of Chile, Chile \/ IMFD, Chile"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"320","published-online":{"date-parts":[[2021,10,15]]},"reference":[{"key":"e_1_2_2_1_1","doi-asserted-by":"publisher","DOI":"10.1145\/1926385.1926409"},{"key":"e_1_2_2_2_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110283"},{"key":"e_1_2_2_3_1","doi-asserted-by":"publisher","DOI":"10.1145\/3434342"},{"key":"e_1_2_2_4_1","doi-asserted-by":"publisher","DOI":"10.1145\/2692915.2628149"},{"key":"e_1_2_2_5_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796816000162"},{"key":"e_1_2_2_6_1","doi-asserted-by":"publisher","DOI":"10.1145\/3133878"},{"key":"e_1_2_2_7_1","doi-asserted-by":"publisher","DOI":"10.1145\/944705.944711"},{"key":"e_1_2_2_8_1","doi-asserted-by":"publisher","DOI":"10.1145\/263661.263675"},{"key":"e_1_2_2_9_1","doi-asserted-by":"publisher","DOI":"10.1145\/3236793"},{"key":"e_1_2_2_10_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110285"},{"key":"e_1_2_2_11_1","doi-asserted-by":"publisher","DOI":"10.1145\/3290329"},{"key":"e_1_2_2_12_1","doi-asserted-by":"publisher","DOI":"10.1145\/2499370.2462161"},{"volume-title":"Proceedings of IFIP Working Conference on Formal Descriptions of Programming Concepts, Martin Wirsing (Ed.)","author":"Felleisen Matthias","key":"e_1_2_2_14_1"},{"key":"e_1_2_2_15_1","doi-asserted-by":"publisher","DOI":"10.1145\/2775051.2676992"},{"key":"e_1_2_2_16_1","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837670"},{"key":"e_1_2_2_17_1","doi-asserted-by":"publisher","DOI":"10.1145\/2629609"},{"volume-title":"ML Workshop. 13","year":"1998","author":"Garrigue Jacques","key":"e_1_2_2_18_1"},{"key":"e_1_2_2_19_1","unstructured":"Panicz Maciej Godek. 2020. SRFI 200: Pattern Matching. https:\/\/srfi.schemers.org\/srfi-200\/srfi-200.html  Panicz Maciej Godek. 2020. SRFI 200: Pattern Matching. https:\/\/srfi.schemers.org\/srfi-200\/srfi-200.html"},{"key":"e_1_2_2_20_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.SNAPL.2019.6"},{"key":"e_1_2_2_21_1","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796818000217"},{"key":"e_1_2_2_22_1","doi-asserted-by":"publisher","DOI":"10.1007\/s10990-011-9066-z"},{"key":"e_1_2_2_23_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110282"},{"key":"e_1_2_2_24_1","doi-asserted-by":"publisher","DOI":"10.1145\/3110284"},{"key":"e_1_2_2_25_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009865"},{"key":"e_1_2_2_26_1","unstructured":"Richard Kelsey. 1999. SRFI 9: Defining Record Types. https:\/\/srfi.schemers.org\/srfi-9\/srfi-9.html  Richard Kelsey. 1999. SRFI 9: Defining Record Types. https:\/\/srfi.schemers.org\/srfi-9\/srfi-9.html"},{"key":"e_1_2_2_27_1","unstructured":"Steve Klabnik and Carol Nichols. 2018. The Rust Programming Language. No Starch Press.  Steve Klabnik and Carol Nichols. 2018. The Rust Programming Language. No Starch Press."},{"key":"e_1_2_2_28_1","doi-asserted-by":"publisher","DOI":"10.1145\/3314221.3314627"},{"key":"e_1_2_2_29_1","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009856"},{"key":"e_1_2_2_30_1","doi-asserted-by":"publisher","DOI":"10.1145\/3093333.3009872"},{"key":"e_1_2_2_31_1","unstructured":"Xavier Leroy Damien Doligez Alain Frisch Jacques Garrigue Didier R\u00e9my and J\u00e9r\u00f4me Vouillon. 2021. The OCaml system release 4.12 Documentation and user\u2019s manual.. 27 Jan. https:\/\/ocaml.org\/releases\/4.12\/ocaml-4.12-refman.pdf  Xavier Leroy Damien Doligez Alain Frisch Jacques Garrigue Didier R\u00e9my and J\u00e9r\u00f4me Vouillon. 2021. The OCaml system release 4.12 Documentation and user\u2019s manual.. 27 Jan. https:\/\/ocaml.org\/releases\/4.12\/ocaml-4.12-refman.pdf"},{"key":"e_1_2_2_32_1","doi-asserted-by":"publisher","DOI":"10.1145\/3371114"},{"key":"e_1_2_2_33_1","unstructured":"Martin Odersky Philippe Altherr Vincent Cremet Burak Emir Sebastian Maneth St\u00e9phane Micheloud Nikolay Mihaylov Michel Schinz Erik Stenman and Matthias Zenger. 2006. An overview of the Scala programming language. EPFL. https:\/\/www.scala-lang.org\/docu\/files\/ScalaOverview.pdf  Martin Odersky Philippe Altherr Vincent Cremet Burak Emir Sebastian Maneth St\u00e9phane Micheloud Nikolay Mihaylov Michel Schinz Erik Stenman and Matthias Zenger. 2006. An overview of the Scala programming language. EPFL. https:\/\/www.scala-lang.org\/docu\/files\/ScalaOverview.pdf"},{"volume-title":"Oxford Advanced Learner\u2019s Dictionary","edition":"10","key":"e_1_2_2_34_1"},{"volume-title":"Workshop on Gradual Typing (WGT).","year":"2020","author":"Sekiyama Taro","key":"e_1_2_2_35_1"},{"key":"e_1_2_2_36_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-28869-2_29"},{"volume-title":"Proceedings of the Scheme and Functional Programming Workshop. 81\u201392","year":"2006","author":"Siek Jeremy","key":"e_1_2_2_37_1"},{"key":"e_1_2_2_38_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-73589-2_2"},{"key":"e_1_2_2_39_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-30936-1_21"},{"key":"e_1_2_2_40_1","doi-asserted-by":"publisher","DOI":"10.1145\/1707801.1706342"},{"key":"e_1_2_2_41_1","doi-asserted-by":"publisher","DOI":"10.4230\/LIPIcs.SNAPL.2015.274"},{"key":"e_1_2_2_42_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-46669-8_18"},{"key":"e_1_2_2_43_1","doi-asserted-by":"publisher","DOI":"10.1145\/1190315.1190324"},{"key":"e_1_2_2_44_1","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837630"},{"key":"e_1_2_2_45_1","doi-asserted-by":"publisher","DOI":"10.1145\/2398857.2384674"},{"key":"e_1_2_2_46_1","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328486"},{"key":"e_1_2_2_47_1","unstructured":"Sam Tobin-Hochstadt Vincent St-Amour and Eric Dobson. 2014. The Typed Racket Reference.  Sam Tobin-Hochstadt Vincent St-Amour and Eric Dobson. 2014. The Typed Racket Reference."},{"key":"e_1_2_2_48_1","doi-asserted-by":"publisher","DOI":"10.1145\/3290330"},{"key":"e_1_2_2_49_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-66706-5_19"},{"key":"e_1_2_2_50_1","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2020.102496"},{"key":"e_1_2_2_51_1","doi-asserted-by":"publisher","DOI":"10.1145\/3276502"},{"volume-title":"Proceedings of the Symposium on Logic in Computer Science (LICS","year":"1987","author":"Wand Mitchell","key":"e_1_2_2_52_1"},{"key":"e_1_2_2_53_1","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(91)90050-C"},{"key":"e_1_2_2_54_1","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-22655-7_22"},{"key":"e_1_2_2_55_1","doi-asserted-by":"publisher","DOI":"10.1145\/507635.507665"}],"container-title":["Proceedings of the ACM on Programming Languages"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3485503","content-type":"unspecified","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/dl.acm.org\/doi\/pdf\/10.1145\/3485503","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,6,17]],"date-time":"2025-06-17T20:18:40Z","timestamp":1750191520000},"score":1,"resource":{"primary":{"URL":"https:\/\/dl.acm.org\/doi\/10.1145\/3485503"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,10,15]]},"references-count":54,"journal-issue":{"issue":"OOPSLA","published-print":{"date-parts":[[2021,10,20]]}},"alternative-id":["10.1145\/3485503"],"URL":"https:\/\/doi.org\/10.1145\/3485503","relation":{},"ISSN":["2475-1421"],"issn-type":[{"type":"electronic","value":"2475-1421"}],"subject":[],"published":{"date-parts":[[2021,10,15]]},"assertion":[{"value":"2021-10-15","order":2,"name":"published","label":"Published","group":{"name":"publication_history","label":"Publication History"}}]}}