Correctness of compiling polymorphism to dynamic typing*. (12th December 2016)
- Record Type:
- Journal Article
- Title:
- Correctness of compiling polymorphism to dynamic typing*. (12th December 2016)
- Main Title:
- Correctness of compiling polymorphism to dynamic typing*
- Authors:
- HOU (Favonia), KUEN-BANG
BENTON, NICK
HARPER, ROBERT - Abstract:
- Abstract: The connection between polymorphic and dynamic typing was originally considered by Curry et al. (1972, Combinatory Logic, vol. ii) in the form of "polymorphic type assignment" for untyped λ-terms. Types are assigned after the fact to what is, in modern terminology, a dynamic language. Interest in type assignment was revitalized by the proposals of Bracha et al. (1998, OOPSLA) and Bank et al. (1997, POPL) to enrich Java with polymorphism (generics), which in turn sparked the development of other languages, such as Scala, with similar combinations of features. In such a setting, where the target language already has a monomorphic type system, it is desirable to compile polymorphism to dynamic typing in such a way that as much static typing as possible is preserved, relying on dynamics only insofar as genericity is actually required. The basic approach is to compile polymorphism using embeddings from each type into a universal "top" type, ${\mathbb{D}}$, and partial projections that go in the other direction. This scheme is intuitively reasonable, and, indeed, has been used in practice many times. Proving its correctness, however, is non-trivial. This paper studies the compilation of SystemF to an extension of Moggi's computational meta-language with a dynamic type and shows how the compilation may be proved correct using a logical relation.
- Is Part Of:
- Journal of functional programming. Volume 27(2017)
- Journal:
- Journal of functional programming
- Issue:
- Volume 27(2017)
- Issue Display:
- Volume 27, Issue 2017 (2017)
- Year:
- 2017
- Volume:
- 27
- Issue:
- 2017
- Issue Sort Value:
- 2017-0027-2017-0000
- Page Start:
- Page End:
- Publication Date:
- 2016-12-12
- Subjects:
- Functional programming (Computer science) -- Periodicals
- Journal URLs:
- http://journals.cambridge.org/action/displayJournal?jid=JFP ↗
http://firstsearch.oclc.org ↗ - DOI:
- 10.1017/S0956796816000265 ↗
- Languages:
- English
- ISSNs:
- 0956-7968
- Deposit Type:
- Legaldeposit
- View Content:
- Available online (eLD content is only available in our Reading Rooms) ↗
- Physical Locations:
- British Library STI - ELD Digital store
- Ingest File:
- 2477.xml