inria-00498377, version 1
Read-Only Execution for Dynamic Languages
Jean-Baptiste Arnaud a, 1Marcus Denker
a, 1Stéphane Ducasse
1Damien Pollet a, 1Alexandre Bergel b, 2Mathieu Suen 1
TOOLS (2010)
Résumé : Supportingread-onlyandsideeffectfreeexecutionhasbeenthefocus of a large body of work in the area of statically typed programming languages. Read-onlyness in dynamically typed languages is difficult to achieve because of the absence of a type checking phase and the support of an open-world assumption in which code can be constantly added and modified. To address this issue, we propose Dynamic Read-Only references (DRO) that provide a view on an object where this object and its object graph are protected from modification. The read- only view dynamically propagates to aggregated objects, without changing the object graph itself; it acts as a read-only view of complex data structures, without making them read-only globally. We implement dynamic read-only references by using smart object proxies that lazily propagate the read-only view, following the object graph and driven by control flow and applied them to realize side-effect free assertions.
- a – INRIA
- b – University of Chile
- 1 : RMOD (INRIA Lille - Nord Europe)
- INRIA – CNRS : UMR8022 – Université Lille 1 - Sciences et Technologies
- 2 : Department of Computer Science of University of Chile (DCC)
- University of Chile
- Domaine : Informatique/Langage de programmation
- inria-00498377, version 1
- http://hal.inria.fr/inria-00498377
- oai:hal.inria.fr:inria-00498377
- Contributeur : Lse Lse
- Soumis le : Mercredi 7 Juillet 2010, 14:14:19
- Dernière modification le : Mercredi 7 Juillet 2010, 14:45:36






Documents associés
Exporter