Deconfined intersection types in java

Mariangiola Dezani-Ciancaglini, Paola Giannini, Betti Venneri

Risultato della ricerca: Capitolo in libro/report/atti di convegnoContributo a conferenzapeer review

Abstract

We show how Java intersection types can be freed from their confinement in type casts, in such a way that the proposed Java extension is safe and fully compatible with the current language. To this aim, we exploit two calculi which formalise the simple Java core and the extended language, respectively. Namely, the second calculus extends the first one by allowing an intersection type to be used anywhere in place of a nominal type. We define a translation algorithm, compiling programs of the extended language into programs of the former calculus. The key point is the interaction between λ-expressions and intersection types, that adds safe expressiveness while being the crucial matter in the translation. We prove that the translation preserves typing and semantics. Thus, typed programs in the proposed extension are translated to typed Java programs. Moreover, semantics of translated programs coincides with the one of the source programs.

Lingua originaleInglese
Titolo della pubblicazione ospiteRecent Developments in the Design and Implementation of Programming Languages - Gabbrielli's Festschrift
EditorFrank S. de Boer, Jacopo Mauro
EditoreSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (elettronico)9783959771719
DOI
Stato di pubblicazionePubblicato - 1 nov 2020
Evento2020 Recent Developments in the Design and Implementation of Programming Languages - Gabbrielli's Festschrift - Bologna, Italy
Durata: 27 nov 2020 → …

Serie di pubblicazioni

NomeOpenAccess Series in Informatics
Volume86
ISSN (stampa)2190-6807

???event.eventtypes.event.conference???

???event.eventtypes.event.conference???2020 Recent Developments in the Design and Implementation of Programming Languages - Gabbrielli's Festschrift
Paese/TerritorioItaly
CittàBologna
Periodo27/11/20 → …

Fingerprint

Entra nei temi di ricerca di 'Deconfined intersection types in java'. Insieme formano una fingerprint unica.

Cita questo