File Download
Links for fulltext
(May Require Subscription)
- Publisher Website: 10.4230/LIPIcs.ECOOP.2021.12
- Scopus: eid_2-s2.0-85115203711
- Find via
Supplementary
-
Citations:
- Scopus: 0
- Appears in Collections:
Conference Paper: Type-Directed Operational Semantics for Gradual Typing
Title | Type-Directed Operational Semantics for Gradual Typing |
---|---|
Authors | |
Keywords | Gradual Typing Type Systems Operational Semantics |
Issue Date | 2021 |
Publisher | Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik GmbH. The Journal's web site is located at hhttp://www.dagstuhl.de/publikationen/lipics/ |
Citation | The 35th European Conference on Object-Oriented Programming (ECOOP 2021), Virtual Conference, Aarhus, Denmark, 12-16 July 2021. In Møller, A & Sridharan, M (Eds.). LIPICS - Leibniz International Proceedings in Informatics, 2021, v. 194, article no. 12, p. 12:1-12:30 How to Cite? |
Abstract | The semantics of gradually typed languages is typically given indirectly via an elaboration into a cast calculus. This contrasts with more conventional formulations of programming language semantics, where the semantics of a language is given directly using, for instance, an operational semantics.
This paper presents a new approach to give the semantics of gradually typed languages directly. We use a recently proposed variant of small-step operational semantics called type-directed operational semantics (TDOS). In TDOS type annotations become operationally relevant and can affect the result of a program. In the context of a gradually typed language, such type annotations are used to trigger type-based conversions on values. We illustrate how to employ TDOS on gradually typed languages using two calculi. The first calculus, called λ B^g, is inspired by the semantics of the blame calculus, but it has implicit type conversions, enabling it to be used as a gradually typed language. The second calculus, called λ B^r, explores a different design space in the semantics of gradually typed languages. It uses a so-called blame recovery semantics, which enables eliminating some false positives where blame is raised but normal computation could succeed. For both calculi, type safety is proved. Furthermore we show that the semantics of λ B^g is sound with respect to the semantics of the blame calculus, and that λ B^r comes with a gradual guarantee. All the results have been mechanically formalized in the Coq theorem prover. |
Description | ECOOP 2021 ECOOP Technical Papers: Types (time band 2) at ECOOP 1 & Potpourri (time band 3) at ECOOP 1 |
Persistent Identifier | http://hdl.handle.net/10722/301311 |
ISSN | 2023 SCImago Journal Rankings: 0.796 |
DC Field | Value | Language |
---|---|---|
dc.contributor.author | Ye, W | - |
dc.contributor.author | Dos Santos Oliveira, BC | - |
dc.contributor.author | Huang, X | - |
dc.date.accessioned | 2021-07-27T08:09:15Z | - |
dc.date.available | 2021-07-27T08:09:15Z | - |
dc.date.issued | 2021 | - |
dc.identifier.citation | The 35th European Conference on Object-Oriented Programming (ECOOP 2021), Virtual Conference, Aarhus, Denmark, 12-16 July 2021. In Møller, A & Sridharan, M (Eds.). LIPICS - Leibniz International Proceedings in Informatics, 2021, v. 194, article no. 12, p. 12:1-12:30 | - |
dc.identifier.issn | 1868-8969 | - |
dc.identifier.uri | http://hdl.handle.net/10722/301311 | - |
dc.description | ECOOP 2021 ECOOP Technical Papers: Types (time band 2) at ECOOP 1 & Potpourri (time band 3) at ECOOP 1 | - |
dc.description.abstract | The semantics of gradually typed languages is typically given indirectly via an elaboration into a cast calculus. This contrasts with more conventional formulations of programming language semantics, where the semantics of a language is given directly using, for instance, an operational semantics. This paper presents a new approach to give the semantics of gradually typed languages directly. We use a recently proposed variant of small-step operational semantics called type-directed operational semantics (TDOS). In TDOS type annotations become operationally relevant and can affect the result of a program. In the context of a gradually typed language, such type annotations are used to trigger type-based conversions on values. We illustrate how to employ TDOS on gradually typed languages using two calculi. The first calculus, called λ B^g, is inspired by the semantics of the blame calculus, but it has implicit type conversions, enabling it to be used as a gradually typed language. The second calculus, called λ B^r, explores a different design space in the semantics of gradually typed languages. It uses a so-called blame recovery semantics, which enables eliminating some false positives where blame is raised but normal computation could succeed. For both calculi, type safety is proved. Furthermore we show that the semantics of λ B^g is sound with respect to the semantics of the blame calculus, and that λ B^r comes with a gradual guarantee. All the results have been mechanically formalized in the Coq theorem prover. | - |
dc.language | eng | - |
dc.publisher | Schloss Dagstuhl - Leibniz-Zentrum fuer Informatik GmbH. The Journal's web site is located at hhttp://www.dagstuhl.de/publikationen/lipics/ | - |
dc.relation.ispartof | LIPICS - Leibniz International Proceedings in Informatics | - |
dc.relation.ispartof | The 35th European Conference on Object-Oriented Programming (ECOOP 2021) | - |
dc.rights | This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. | - |
dc.subject | Gradual Typing | - |
dc.subject | Type Systems | - |
dc.subject | Operational Semantics | - |
dc.title | Type-Directed Operational Semantics for Gradual Typing | - |
dc.type | Conference_Paper | - |
dc.identifier.email | Dos Santos Oliveira, BC: bruno@cs.hku.hk | - |
dc.identifier.authority | Dos Santos Oliveira, BC=rp01786 | - |
dc.description.nature | published_or_final_version | - |
dc.identifier.doi | 10.4230/LIPIcs.ECOOP.2021.12 | - |
dc.identifier.scopus | eid_2-s2.0-85115203711 | - |
dc.identifier.hkuros | 323744 | - |
dc.identifier.volume | 194 | - |
dc.identifier.spage | 12:1 | - |
dc.identifier.epage | 12:30 | - |
dc.publisher.place | Germany | - |