Open Scope: A Pragmatic JavaScript Pattern for Modular Instrumentation - Archive ouverte HAL Accéder directement au contenu
Pré-Publication, Document De Travail Année : 2015

Open Scope: A Pragmatic JavaScript Pattern for Modular Instrumentation

Résumé

We report on our experience instrumenting Narcissus, a JavaScript interpreter written in JavaScript, to allow the dynamic deployment of dynamic program analyses. Instrumenting an interpreter is a cross-cutting change that can affect many parts of the interpreter source code. We propose a simple open scope pattern that minimizes the changes to the interpreter, while allowing us to implement program analyses in their own files, and to compose them dynamically. We apply our pattern to Narcissus using standard JavaScript features, and find that the gain in extensibility offsets a small loss in performance.
Fichier principal
Vignette du fichier
main.pdf (176.81 Ko) Télécharger le fichier
reviews-dls.pdf (99.53 Ko) Télécharger le fichier
reviews-dls.txt (10.52 Ko) Télécharger le fichier
Origine : Fichiers produits par l'(les) auteur(s)
Origine : Fichiers produits par l'(les) auteur(s)
Origine : Fichiers produits par l'(les) auteur(s)

Dates et versions

hal-01181143 , version 1 (31-07-2015)
hal-01181143 , version 2 (10-08-2015)

Licence

Domaine public

Identifiants

  • HAL Id : hal-01181143 , version 1

Citer

Florent Marchand de Kerchove, Jacques Noyé, Mario Südholt. Open Scope: A Pragmatic JavaScript Pattern for Modular Instrumentation. 2015. ⟨hal-01181143v1⟩
387 Consultations
363 Téléchargements

Partager

Gmail Facebook X LinkedIn More