Sciweavers

POPL
1992
ACM

A Compilation Method for ML-Style Polymorphic Record Calculi

14 years 4 months ago
A Compilation Method for ML-Style Polymorphic Record Calculi
Polymorphic record calculi have recently attracted much attention as a typed foundation for objectoriented programming. This is based on the fact that a function that selects a field l of a record can be given a polymorphic type that enables it to be applied to various records containing a field l. Recent studies have established techniques to develop an ML-style type inference algorithm for such a polymorphic type system. There seems to be, however, no established method to compile an ML-style polymorphic record calculus into efficient code. The purpose of this paper is to present one such method. We define a polymorphic record calculus as an extension of Damas and Milner's proof system for ML. For this calculus, we define an implementation calculus where records are represented as arrays of (references to) values and field selection is performed by direct indexing. To represent polymorphic field selection, the implementation calculus an abstraction mechanism over indexes. We th...
Atsushi Ohori
Added 10 Aug 2010
Updated 10 Aug 2010
Type Conference
Year 1992
Where POPL
Authors Atsushi Ohori
Comments (0)