Efficient data representation in polymorphic languages - INRIA - Institut National de Recherche en Informatique et en Automatique Accéder directement au contenu
Communication Dans Un Congrès Année : 1990

Efficient data representation in polymorphic languages

Xavier Leroy

Résumé

Languages with polymorphic types (e.g. ML) have traditionally been implemented using Lisp-like data representations—everything has to fit in one word, if necessary by being heap-allocated and handled through a pointer. The reason is that, in contrast with conventional statically-typed languages such as Pascal, it is not possible to assign one unique type to each expression at compile-time, an absolute requirement for using more efficient representations (e.g. unallocated multi-word values). In this paper, we show how to take advantage of the static polymorphic typing to mix correctly two styles of data representation in the implementation of a polymorphic language: specialized, efficient representations are used when types are fully known at compile-time; uniform, Lisp-like representations are used otherwise.
Fichier principal
Vignette du fichier
data-representation-plilp.pdf (194.95 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Loading...

Dates et versions

hal-01499983 , version 1 (01-04-2017)

Identifiants

Citer

Xavier Leroy. Efficient data representation in polymorphic languages. PLILP 1990: Programming Language Implementation and Logic Programming, Aug 1990, Linköping, Sweden. ⟨10.1007/BFb0024189⟩. ⟨hal-01499983⟩
231 Consultations
74 Téléchargements

Altmetric

Partager

Gmail Facebook X LinkedIn More