{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,30]],"date-time":"2026-07-30T03:22:35Z","timestamp":1785381755849,"version":"3.55.0"},"reference-count":105,"publisher":"Cambridge University Press (CUP)","license":[{"start":{"date-parts":[[2019,11,18]],"date-time":"2019-11-18T00:00:00Z","timestamp":1574035200000},"content-version":"unspecified","delay-in-days":321,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["J. Funct. Prog."],"published-print":{"date-parts":[[2019]]},"abstract":"<jats:title>Abstract<\/jats:title>\n                  <jats:p>Session types are a rich type discipline, based on linear types, that lifts the sort of safety claims that come with type systems to communications. However, web-based applications and microservices are often written in a mix of languages, with type disciplines in a spectrum between static and dynamic typing. Gradual session types address this mixed setting by providing a framework which grants seamless transition between statically typed handling of sessions and any required degree of dynamic typing. We propose Gradual GV as a gradually typed extension of the functional session type system GV. Following a standard framework of gradual typing, Gradual GV consists of an external language, which relaxes the type system of GV using dynamic types; an internal language with casts, for which operational semantics is given; and a cast-insertion translation from the former to the latter. We demonstrate type and communication safety as well as blame safety, thus extending previous results to functional languages with session-based communication. The interplay of linearity and dynamic types requires a novel approach to specifying the dynamics of the language.<\/jats:p>","DOI":"10.1017\/s0956796819000169","type":"journal-article","created":{"date-parts":[[2019,11,18]],"date-time":"2019-11-18T06:06:28Z","timestamp":1574057188000},"source":"Crossref","is-referenced-by-count":8,"title":["Gradual session types"],"prefix":"10.1017","volume":"29","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-5143-9764","authenticated-orcid":false,"given":"ATSUSHI","family":"IGARASHI","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-9000-1239","authenticated-orcid":false,"given":"PETER","family":"THIEMANN","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7420-2575","authenticated-orcid":false,"given":"YUYA","family":"TSUDA","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"VASCO T.","family":"VASCONCELOS","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"PHILIP","family":"WADLER","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"56","published-online":{"date-parts":[[2019,11,18]]},"reference":[{"key":"S0956796819000169_ref103","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-22655-7_22"},{"key":"S0956796819000169_ref102","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.238.8"},{"key":"S0956796819000169_ref101","unstructured":"Williams, J. , Morris, J. G. , Wadler, P. & Zalewski, J. (2017) Mixed messages: Measuring conformance and non-interference in TypeScript. In European Conference on Object-Oriented Programming (ECOOP). LIPIcs, vol. 74. Dagstuhl, Germany: Schloss Dagstuhl, pp. 28:1\u201328:29."},{"key":"S0956796819000169_ref100","first-page":"3","volume-title":"Advanced Topics in Types and Programming Languages","author":"Walker","year":"2005"},{"key":"S0956796819000169_ref98","unstructured":"Wadler, P. (2015) A complement to blame. In 1st Summit on Advances in Programming Languages (SNAPL). LIPIcs, vol. 32. Schloss Dagstuhl, pp. 309\u2013320."},{"key":"S0956796819000169_ref97","doi-asserted-by":"publisher","DOI":"10.1017\/S095679681400001X"},{"key":"S0956796819000169_ref45","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-49665-7_24"},{"key":"S0956796819000169_ref58","first-page":"1","article-title":"Chaperone contracts for higher-order sessions","volume":"1","author":"Melgratti","year":"2017","journal-title":"PACMPL"},{"key":"S0956796819000169_ref21","doi-asserted-by":"publisher","DOI":"10.1016\/j.scico.2016.06.006"},{"key":"S0956796819000169_ref40","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-19056-8_4"},{"key":"S0956796819000169_ref79","first-page":"2","volume-title":"ECOOP","volume":"4609","author":"Siek","year":"2007"},{"key":"S0956796819000169_ref5","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-44202-9_11"},{"key":"S0956796819000169_ref30","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837670"},{"key":"S0956796819000169_ref18","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-23217-6_19"},{"key":"S0956796819000169_ref34","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-30936-1_5"},{"key":"S0956796819000169_ref104","doi-asserted-by":"crossref","unstructured":"Yoshida, N. , Hu, R. , Neykova, R. & Ng, N. (2014) The Scribble protocol language. In International Symposium on Trustworthy Global Computing. LNCS, vol. 8358. Springer, pp. 22\u201341.","DOI":"10.1007\/978-3-319-05119-2_3"},{"key":"S0956796819000169_ref3","doi-asserted-by":"publisher","DOI":"10.1145\/2628136.2628149"},{"key":"S0956796819000169_ref27","doi-asserted-by":"publisher","DOI":"10.1145\/1111037.1111059"},{"key":"S0956796819000169_ref28","doi-asserted-by":"publisher","DOI":"10.4204\/EPTCS.223.3"},{"key":"S0956796819000169_ref41","doi-asserted-by":"publisher","DOI":"10.1007\/BFb0053567"},{"key":"S0956796819000169_ref90","first-page":"17:1","article-title":"Gradual parametricity, revisited","volume":"3","author":"Toro","year":"2019","journal-title":"PACMPL"},{"key":"S0956796819000169_ref25","unstructured":"Fennell, L. & Thiemann, P. (2016) LJGS: Gradual security types for object-oriented languages. In Krishnamurthi, S. & Lerner, B. S. (eds), 30th European Conference on Object-Oriented Programming, ECOOP 2016, July 18\u201322, 2016, Rome, Italy. LIPIcs, vol. 56. Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik, pp. 9:1\u20139:26."},{"key":"S0956796819000169_ref56","doi-asserted-by":"publisher","DOI":"10.1145\/3022670.2951921"},{"key":"S0956796819000169_ref24","doi-asserted-by":"publisher","DOI":"10.1109\/CSF.2013.22"},{"key":"S0956796819000169_ref33","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796809990268"},{"key":"S0956796819000169_ref22","doi-asserted-by":"publisher","DOI":"10.1145\/1217935.1217953"},{"key":"S0956796819000169_ref59","doi-asserted-by":"publisher","DOI":"10.1016\/0890-5401(92)90008-4"},{"key":"S0956796819000169_ref61","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-43376-8_9"},{"key":"S0956796819000169_ref23","unstructured":"Fennell, L. & Thiemann, P. (2012). The blame theorem for a linear lambda calculus with type dynamic. In Trends in Functional Programming, Loidl, H-W. & Pe\u00f1a, R. (eds). LNCS, vol. 7829. Springer, pp. 37\u201352."},{"key":"S0956796819000169_ref15","first-page":"1","article-title":"Fast and precise type checking for JavaScript","volume":"48","author":"Chaudhuri","year":"2017","journal-title":"PACMPL"},{"key":"S0956796819000169_ref86","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328486"},{"key":"S0956796819000169_ref29","unstructured":"Franco, J. & Vasconcelos, V. T. (2013) A concurrent programming language with refined session types. In SEFM. LNCS, vol. 8368. Springer, pp. 15\u201328."},{"key":"S0956796819000169_ref84","first-page":"144","volume-title":"TGC","volume":"8902","author":"Thiemann","year":"2014"},{"key":"S0956796819000169_ref7","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-38592-6_5"},{"key":"S0956796819000169_ref26","doi-asserted-by":"publisher","DOI":"10.1145\/581478.581484"},{"key":"S0956796819000169_ref20","unstructured":"Disney, T. & Flanagan, C. (2011) Gradual information flow typing. In STOP. Available at: https:\/\/users.soe.ucsc.edu\/~cormac\/papers\/stop11.pdf"},{"key":"S0956796819000169_ref4","unstructured":"Barendregt, H. P. (1984) The Lambda Calculus: Its Syntax and Semantics. North-Holland."},{"key":"S0956796819000169_ref99","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-00590-9_1"},{"key":"S0956796819000169_ref6","unstructured":"Bierman, G. M. , Meijer, E. & Torgersen, M. (2010) Adding dynamic types to C#. In European Conference on Object-Oriented Programming (ECOOP). LNCS. Springer, pp. 76\u2013100."},{"key":"S0956796819000169_ref8","doi-asserted-by":"publisher","DOI":"10.1016\/j.tcs.2017.02.009"},{"key":"S0956796819000169_ref11","doi-asserted-by":"publisher","DOI":"10.1017\/S0960129514000218"},{"key":"S0956796819000169_ref94","unstructured":"Verlaguet, J. (2013) Facebook: Analysing PHP statically. In Workshop on Commercial Uses of Functional Programming (CUFP)."},{"key":"S0956796819000169_ref1","doi-asserted-by":"publisher","DOI":"10.1145\/1926385.1926409"},{"key":"S0956796819000169_ref12","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-71316-6_2"},{"key":"S0956796819000169_ref105","first-page":"73","article-title":"Language primitives and type discipline for structured communication-based programming revisited: Two systems for higher-order session communication","volume":"171","author":"Yoshida","year":"2007","journal-title":"Entcs"},{"key":"S0956796819000169_ref55","doi-asserted-by":"publisher","DOI":"10.1145\/3241625.2976018"},{"key":"S0956796819000169_ref32","doi-asserted-by":"publisher","DOI":"10.1007\/s00236-005-0177-z"},{"key":"S0956796819000169_ref10","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-15375-4_16"},{"key":"S0956796819000169_ref48","first-page":"40:1","article-title":"On polymorphic gradual typing","volume":"1","author":"Igarashi","year":"2017","journal-title":"PACMPL"},{"key":"S0956796819000169_ref81","unstructured":"Siek, J. G. , Vitousek, M. M. , Cimini, M. & Boyland, J. T. (2015b) Refined criteria for gradual typing. In Summit on Advances in Programming Languages (SNAPL). LIPIcs, vol. 32. Schloss Dagstuhl, pp. 274\u2013293."},{"key":"S0956796819000169_ref88","first-page":"128","volume-title":"FoSSaCS","volume":"10803","author":"Toninho","year":"2018"},{"key":"S0956796819000169_ref31","doi-asserted-by":"publisher","DOI":"10.1145\/2629609"},{"key":"S0956796819000169_ref13","doi-asserted-by":"publisher","DOI":"10.1145\/2220365.2220367"},{"key":"S0956796819000169_ref65","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-04652-0_5"},{"key":"S0956796819000169_ref91","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-11957-6_29"},{"key":"S0956796819000169_ref17","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-74792-5_12"},{"key":"S0956796819000169_ref46","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-540-70592-5_22"},{"key":"S0956796819000169_ref72","doi-asserted-by":"publisher","DOI":"10.1145\/1411286.1411290"},{"key":"S0956796819000169_ref39","doi-asserted-by":"publisher","DOI":"10.1007\/3-540-57208-2_35"},{"key":"S0956796819000169_ref16","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837632"},{"key":"S0956796819000169_ref47","first-page":"38:1","article-title":"Gradual session types","volume":"1","author":"Igarashi","year":"2017","journal-title":"PACMPL"},{"key":"S0956796819000169_ref42","doi-asserted-by":"publisher","DOI":"10.1145\/1328438.1328472"},{"key":"S0956796819000169_ref49","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009865"},{"key":"S0956796819000169_ref50","doi-asserted-by":"publisher","DOI":"10.1145\/2808098.2808100"},{"key":"S0956796819000169_ref51","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837662"},{"key":"S0956796819000169_ref54","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009856"},{"key":"S0956796819000169_ref87","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-37036-6_20"},{"key":"S0956796819000169_ref37","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-89884-1_27"},{"key":"S0956796819000169_ref57","unstructured":"Lindley, S. & Morris, J. G. (2017) Lightweight functional session types. In Behavioural Types: From Theory to Tools. River Publishers."},{"key":"S0956796819000169_ref60","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-21464-6_7"},{"key":"S0956796819000169_ref62","doi-asserted-by":"publisher","DOI":"10.1145\/3033019.3033031"},{"key":"S0956796819000169_ref66","doi-asserted-by":"publisher","DOI":"10.1145\/2837614.2837634"},{"key":"S0956796819000169_ref52","doi-asserted-by":"publisher","DOI":"10.1145\/330249.330251"},{"key":"S0956796819000169_ref67","doi-asserted-by":"publisher","DOI":"10.1007\/1-4020-8141-3_34"},{"key":"S0956796819000169_ref68","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796816000289"},{"key":"S0956796819000169_ref35","doi-asserted-by":"publisher","DOI":"10.1145\/1706299.1706335"},{"key":"S0956796819000169_ref14","first-page":"1","article-title":"Gradual typing: A new perspective","volume":"16","author":"Castagna","year":"2019","journal-title":"PACMPL"},{"key":"S0956796819000169_ref69","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-662-46678-0_1"},{"key":"S0956796819000169_ref36","doi-asserted-by":"publisher","DOI":"10.1016\/0304-3975(87)90045-4"},{"key":"S0956796819000169_ref70","volume-title":"Types and Programming Languages","author":"Pierce","year":"2002"},{"key":"S0956796819000169_ref71","doi-asserted-by":"publisher","DOI":"10.1145\/2804302.2804309"},{"key":"S0956796819000169_ref74","unstructured":"Scalas, A. & Yoshida, N. (2016) Lightweight session programming in Scala. In European Conference on Object-Oriented Programming (ECOOP). LIPIcs. Schloss Dagstuhl, pp. 21:1\u201321:28."},{"key":"S0956796819000169_ref75","doi-asserted-by":"publisher","DOI":"10.1017\/S0956796816000162"},{"key":"S0956796819000169_ref38","doi-asserted-by":"publisher","DOI":"10.1145\/1706299.1706341"},{"key":"S0956796819000169_ref19","doi-asserted-by":"publisher","DOI":"10.1007\/s10703-014-0218-8"},{"key":"S0956796819000169_ref9","doi-asserted-by":"publisher","DOI":"10.1017\/S095679681300018X"},{"key":"S0956796819000169_ref76","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-28869-2_29"},{"key":"S0956796819000169_ref64","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-30561-0_15"},{"key":"S0956796819000169_ref93","first-page":"132:1","article-title":"Gradual liquid type inference","volume":"2","author":"Vazou","year":"2018","journal-title":"PACMPL"},{"key":"S0956796819000169_ref2","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-73721-8_2"},{"key":"S0956796819000169_ref77","doi-asserted-by":"publisher","DOI":"10.1145\/2813885.2737968"},{"key":"S0956796819000169_ref63","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-40787-1_25"},{"key":"S0956796819000169_ref78","unstructured":"Siek, J. G. , & Taha, W. (2006) Gradual typing for functional languages. In Scheme and Functional Programming Workshop (Scheme), pp. 81\u201392. Available at: http:\/\/scheme2006.cs.uchicago.edu and the paper URL is http:\/\/scheme2006.cs.uchicago.edu\/13-siek.pdf"},{"key":"S0956796819000169_ref73","unstructured":"Sackman, M. & Eisenbach, S. (2008) Session Types in Haskell: Updating Message Passing for the 21st Century. Available at: https:\/\/spiral.imperial.ac.uk:8443\/handle\/10044\/1\/5918."},{"key":"S0956796819000169_ref80","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-319-30936-1_21"},{"key":"S0956796819000169_ref82","unstructured":"The Coq Development Team (2019) The coq proof assistant, version 8.9.0."},{"key":"S0956796819000169_ref44","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-14107-2_16"},{"key":"S0956796819000169_ref83","unstructured":"The Dart Team (2014) Dart programming language specification. Google, 1.2 edition."},{"key":"S0956796819000169_ref85","doi-asserted-by":"publisher","DOI":"10.1007\/978-3-642-54833-8_4"},{"key":"S0956796819000169_ref43","doi-asserted-by":"publisher","DOI":"10.1145\/2827695"},{"key":"S0956796819000169_ref89","doi-asserted-by":"publisher","DOI":"10.1145\/3229061"},{"key":"S0956796819000169_ref92","doi-asserted-by":"publisher","DOI":"10.1016\/j.ic.2012.05.002"},{"key":"S0956796819000169_ref95","doi-asserted-by":"publisher","DOI":"10.1145\/3009837.3009849"},{"key":"S0956796819000169_ref53","doi-asserted-by":"publisher","DOI":"10.1145\/2967973.2968595"},{"key":"S0956796819000169_ref96","doi-asserted-by":"publisher","DOI":"10.1145\/2364527.2364568"}],"container-title":["Journal of Functional Programming"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.cambridge.org\/core\/services\/aop-cambridge-core\/content\/view\/S0956796819000169","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,26]],"date-time":"2026-05-26T22:36:49Z","timestamp":1779835009000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.cambridge.org\/core\/product\/identifier\/S0956796819000169\/type\/journal_article"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2019]]},"references-count":105,"alternative-id":["S0956796819000169"],"URL":"https:\/\/doi.org\/10.1017\/s0956796819000169","relation":{},"ISSN":["0956-7968","1469-7653"],"issn-type":[{"value":"0956-7968","type":"print"},{"value":"1469-7653","type":"electronic"}],"subject":[],"published":{"date-parts":[[2019]]},"article-number":"e17"}}