Implementing Modular Class-based Reuse Mechanisms on Top of a Single Inheritance VM
Autor: | Noury Bouraqadi, Pablo Tesone, Guillermo Polito, Stéphane Ducasse, Luc Fabresse |
---|---|
Přispěvatelé: | Centre for Digital Systems (CERI SN), Ecole nationale supérieure Mines-Télécom Lille Douai (IMT Lille Douai), Institut Mines-Télécom [Paris] (IMT)-Institut Mines-Télécom [Paris] (IMT), Analyses and Languages Constructs for Object-Oriented Application Evolution (RMOD), Inria Lille - Nord Europe, Institut National de Recherche en Informatique et en Automatique (Inria)-Institut National de Recherche en Informatique et en Automatique (Inria)-Centre de Recherche en Informatique, Signal et Automatique de Lille - UMR 9189 (CRIStAL), Centrale Lille-Université de Lille-Centre National de la Recherche Scientifique (CNRS)-Centrale Lille-Université de Lille-Centre National de la Recherche Scientifique (CNRS), Centre de Recherche en Informatique, Signal et Automatique de Lille - UMR 9189 (CRIStAL), Centrale Lille-Université de Lille-Centre National de la Recherche Scientifique (CNRS), ACM/SIGAPP, Centre for Digital Systems (CERI SN - IMT Nord Europe), Ecole nationale supérieure Mines-Télécom Lille Douai (IMT Nord Europe), Unité de Recherche Informatique et Automatique ( URIA ), École des Mines de Douai ( Mines Douai EMD ), Institut Mines-Télécom [Paris]-Institut Mines-Télécom [Paris]-PRES Université Lille Nord de France, Analyses and Languages Constructs for Object-Oriented Application Evolution ( RMOD ), Institut National de Recherche en Informatique et en Automatique ( Inria ) -Institut National de Recherche en Informatique et en Automatique ( Inria ) -Centre de Recherche en Informatique, Signal et Automatique de Lille (CRIStAL) - UMR 9189 ( CRIStAL ), Institut National de Recherche en Informatique et en Automatique ( Inria ) -Ecole Centrale de Lille-Institut Mines-Télécom [Paris]-Université de Lille-Centre National de la Recherche Scientifique ( CNRS ) -Ecole Centrale de Lille-Institut Mines-Télécom [Paris]-Université de Lille-Centre National de la Recherche Scientifique ( CNRS ), Centre de Recherche en Informatique, Signal et Automatique de Lille (CRIStAL) - UMR 9189 ( CRIStAL ), Institut National de Recherche en Informatique et en Automatique ( Inria ) -Ecole Centrale de Lille-Institut Mines-Télécom [Paris]-Université de Lille-Centre National de la Recherche Scientifique ( CNRS ) |
Jazyk: | angličtina |
Rok vydání: | 2018 |
Předmět: |
code reuse
composable language features [INFO.INFO-PL]Computer Science [cs]/Programming Languages [cs.PL] Computer science business.industry Programming language Multiple inheritance Code reuse Software development 020207 software engineering 02 engineering and technology computer.software_genre 020202 computer hardware & architecture Inheritance (object-oriented programming) [ INFO.INFO-PL ] Computer Science [cs]/Programming Languages [cs.PL] 0202 electrical engineering electronic engineering information engineering Programming paradigm business Protocol (object-oriented programming) Execution model computer Implementation performance |
Zdroj: | SAC 2018:-The 33rd ACM/SIGAPP Symposium On Applied Computing SAC 2018:-The 33rd ACM/SIGAPP Symposium On Applied Computing, ACM/SIGAPP, Apr 2018, Pau, France. ⟨10.1145/3167132.3167244⟩ SAC 2018: SAC 2018: Symposium on Applied Computing SAC 2018: SAC 2018: Symposium on Applied Computing, Apr 2018, Pau, France. 2018, 〈10.1145/3167132.3167244〉 SAC |
DOI: | 10.1145/3167132.3167244⟩ |
Popis: | International audience; Code reuse is a good strategy to avoid code duplication and speed up software development. Existing object-oriented programming languages propose different ways of combining existing and new code such as e.g., single inheritance, multiple inheritance, Traits or Mixins. All these mechanisms present advantages and disadvantages and there are situations that require the use of one over the other. To avoid the complexity of implementing a virtual machine (VM), many of these mechanisms are often implemented on top of an existing high-performance VM, originally meant to run a single inheritance object-oriented language. These implementations require thus a mapping between the programming model they propose and the execution model provided by the VM. Moreover, reuse mechanisms are not usually composable, nor it is easy to implement new ones for a given language. In this paper, we propose a modular meta-level runtime architecture to implement and combine different code reuse mechanisms. This architecture supports dynamic combination of several mechanisms without affecting runtime performance in a single inheritance object-oriented VM. It includes moreover a reflective Meta-Object Protocol to query and modify classes using the programming logical model instead of the underlying low-level runtime model. Thanks to this architecture, we implemented Stateful Traits, Mixins, CLOS multiple inheritance, CLOS Standard Method Combinations and Beta prefixing in a modular and composable way. |
Databáze: | OpenAIRE |
Externí odkaz: |