{"publisher":"Association for Computing Machinery","user_id":"8b945eb4-e2f2-11eb-945a-df72226e66a9","date_created":"2021-10-19T12:48:44Z","oa":1,"oa_version":"Published Version","status":"public","title":"Transitioning from structural to nominal code with efficient gradual typing","quality_controlled":"1","tmp":{"legal_code_url":"https://creativecommons.org/licenses/by-nd/4.0/legalcode","name":"Creative Commons Attribution-NoDerivatives 4.0 International (CC BY-ND 4.0)","image":"/image/cc_by_nd.png","short":"CC BY-ND (4.0)"},"date_updated":"2021-11-12T11:30:07Z","month":"10","article_processing_charge":"No","day":"15","file":[{"relation":"main_file","checksum":"71011efd2da771cafdec7f0d9693f8c1","content_type":"application/pdf","file_name":"monnom-oopsla21.pdf","creator":"fmuehlbo","access_level":"open_access","date_updated":"2021-10-19T12:52:23Z","file_id":"10154","success":1,"date_created":"2021-10-19T12:52:23Z","file_size":770269}],"type":"journal_article","license":"https://creativecommons.org/licenses/by-nd/4.0/","abstract":[{"text":"Gradual typing is a principled means for mixing typed and untyped code. But typed and untyped code often exhibit different programming patterns. There is already substantial research investigating gradually giving types to code exhibiting typical untyped patterns, and some research investigating gradually removing types from code exhibiting typical typed patterns. This paper investigates how to extend these established gradual-typing concepts to give formal guarantees not only about how to change types as code evolves but also about how to change such programming patterns as well.\r\n\r\nIn particular, we explore mixing untyped \"structural\" code with typed \"nominal\" code in an object-oriented language. But whereas previous work only allowed \"nominal\" objects to be treated as \"structural\" objects, we also allow \"structural\" objects to dynamically acquire certain nominal types, namely interfaces. We present a calculus that supports such \"cross-paradigm\" code migration and interoperation in a manner satisfying both the static and dynamic gradual guarantees, and demonstrate that the calculus can be implemented efficiently.","lang":"eng"}],"department":[{"_id":"ToHe"}],"publication_status":"published","date_published":"2021-10-15T00:00:00Z","year":"2021","volume":5,"intvolume":" 5","ddc":["005"],"project":[{"grant_number":"Z211","name":"The Wittgenstein Prize","_id":"25F42A32-B435-11E9-9278-68D0E5697425","call_identifier":"FWF"}],"file_date_updated":"2021-10-19T12:52:23Z","keyword":["gradual typing","gradual guarantee","nominal","structural","call tags"],"acknowledgement":"We thank the reviewers for their valuable suggestions towards improving the paper. We also \r\nthank Mae Milano and Adrian Sampson, as well as the members of the Programming Languages Discussion Group at Cornell University and of the Programming Research Laboratory at Northeastern University, for their helpful feedback on preliminary findings of this work.\r\n\r\nThis material is based upon work supported in part by the National Science Foundation (NSF) through grant CCF-1350182 and the Austrian Science Fund (FWF) through grant Z211-N23 (Wittgenstein~Award).\r\nAny opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the NSF or the FWF.","publication_identifier":{"eissn":["2475-1421"]},"doi":"10.1145/3485504","has_accepted_license":"1","publication":"Proceedings of the ACM on Programming Languages","author":[{"orcid":"0000-0003-1548-0177","last_name":"Mühlböck","first_name":"Fabian","id":"6395C5F6-89DF-11E9-9C97-6BDFE5697425","full_name":"Mühlböck, Fabian"},{"first_name":"Ross","last_name":"Tate","full_name":"Tate, Ross"}],"language":[{"iso":"eng"}],"_id":"10153","article_number":"127","conference":{"name":"OOPSLA: Object-Oriented Programming, Systems, Languages, and Applications","start_date":"2021-10-17","end_date":"2021-10-23","location":"Chicago, IL, United States"},"citation":{"ieee":"F. Mühlböck and R. Tate, “Transitioning from structural to nominal code with efficient gradual typing,” Proceedings of the ACM on Programming Languages, vol. 5. Association for Computing Machinery, 2021.","mla":"Mühlböck, Fabian, and Ross Tate. “Transitioning from Structural to Nominal Code with Efficient Gradual Typing.” Proceedings of the ACM on Programming Languages, vol. 5, 127, Association for Computing Machinery, 2021, doi:10.1145/3485504.","short":"F. Mühlböck, R. Tate, Proceedings of the ACM on Programming Languages 5 (2021).","ama":"Mühlböck F, Tate R. Transitioning from structural to nominal code with efficient gradual typing. Proceedings of the ACM on Programming Languages. 2021;5. doi:10.1145/3485504","ista":"Mühlböck F, Tate R. 2021. Transitioning from structural to nominal code with efficient gradual typing. Proceedings of the ACM on Programming Languages. 5, 127.","apa":"Mühlböck, F., & Tate, R. (2021). Transitioning from structural to nominal code with efficient gradual typing. Proceedings of the ACM on Programming Languages. Chicago, IL, United States: Association for Computing Machinery. https://doi.org/10.1145/3485504","chicago":"Mühlböck, Fabian, and Ross Tate. “Transitioning from Structural to Nominal Code with Efficient Gradual Typing.” Proceedings of the ACM on Programming Languages. Association for Computing Machinery, 2021. https://doi.org/10.1145/3485504."},"article_type":"original"}