Implementing Modular Class-based Reuse Mechanisms on Top of a Single Inheritance VM

Abstract : 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.
Type de document :
Communication dans un congrès
SAC 2018:- The 33rd ACM/SIGAPP Symposium On Applied Computing, Apr 2018, Pau, France. ACM New York, NY, USA, 2018, SAC 2018 Symposium on Applied Computing. 〈10.1145/3167132.3167244〉
Liste complète des métadonnées

Littérature citée [19 références]  Voir  Masquer  Télécharger

https://hal.archives-ouvertes.fr/hal-01812612
Contributeur : Lse Lse <>
Soumis le : lundi 11 juin 2018 - 15:58:31
Dernière modification le : mercredi 5 décembre 2018 - 16:47:43
Document(s) archivé(s) le : mercredi 12 septembre 2018 - 21:29:42

Fichier

main.pdf
Fichiers produits par l'(les) auteur(s)

Identifiants

Collections

Citation

Pablo Tesone, Guillermo Polito, Luc Fabresse, Noury Bouraqadi, Stéphane Ducasse. Implementing Modular Class-based Reuse Mechanisms on Top of a Single Inheritance VM. SAC 2018:- The 33rd ACM/SIGAPP Symposium On Applied Computing, Apr 2018, Pau, France. ACM New York, NY, USA, 2018, SAC 2018 Symposium on Applied Computing. 〈10.1145/3167132.3167244〉. 〈hal-01812612〉

Partager

Métriques

Consultations de la notice

295

Téléchargements de fichiers

101