Towards Unifying Inheritance and Automatic Program Specialization
DOI:
https://doi.org/10.7146/dpb.v31i566.7123Abstract
Inheritance allows a class to be specialized and its attributes refined, but implementation specialization can only take place by overriding with manually implemented methods. Automatic program specialization can generate a specialized, efficient implementation. However, specialization of programs and specialization of classes (inheritance) are considered different abstractions. We present a new programming language, Lapis, that unifies inheritance and program specialization at the conceptual, syntactic, and semantic levels.This paper presents the initial development of Lapis, which uses inheritance with covariant specialization to control the automatic application of program specialization to class members. Lapis integrates object-oriented concepts, block structure, and techniques from automatic program specialization to provide both a language where object-oriented designs can be efficiently implemented and a simple yet powerful partial evaluator for an object-oriented language.
Downloads
Published
2002-12-01
How to Cite
Schultz, U. P. (2002). Towards Unifying Inheritance and Automatic Program Specialization. DAIMI Report Series, 31(566). https://doi.org/10.7146/dpb.v31i566.7123
Issue
Section
Articles
License
Articles published in DAIMI PB are licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.