Managed Data: Modular Strategies For Data Abstraction

Alex Loh Tijs Van Der Storm 1 William Cook
1 ATEAMS - Analysis and Transformation based on rEliAble tool coMpositionS
Inria Lille - Nord Europe, CWI - Centrum Wiskunde & Informatica
Abstract : Managed Data is a two-level approach to data abstraction in which programmers first define data description and manipulation mechanisms, and then use these mechanisms to define specific kinds of data. Managed Data allows programmers to take control of many important aspects of data, including persistence, access/change control, reactivity, logging, bidirectional relationships, resource management, invariants and validation. These features are implemented once as reusable strategies that can apply to many different data types. Managed Data is a general concept that can be implemented in several ways, including reflection, metaclasses, and macros. In this paper we argue for the importance of Managed Data and present a novel implementation of Managed Data based on interpretation of data models. We show how to inherit and compose interpreters to implement the features described above. Our approach allows Managed Data to be used in object-oriented languages that support reflection over field access (overriding the "dot" operator) or dynamic method creation. We also show how self-describing data models are useful for bootstrapping, allowing Managed Data to be used definition of Data Managers themselves. As a case study, we used Managed Data in a web development framework from the Ensō project to reuse database management and access control mechanisms across different data definitions.
Type de document :
Communication dans un congrès
Proceedings of the ACM international symposium on New ideas, new paradigms, and reflections on programming and software 2012, Oct 2012, Tucson, United States. ACM, pp.179 - 194, 2012
Liste complète des métadonnées

https://hal.inria.fr/hal-00756886
Contributeur : Jurgen Vinju <>
Soumis le : vendredi 23 novembre 2012 - 22:21:14
Dernière modification le : mercredi 29 novembre 2017 - 15:06:59

Identifiants

  • HAL Id : hal-00756886, version 1

Collections

Citation

Alex Loh, Tijs Van Der Storm, William Cook. Managed Data: Modular Strategies For Data Abstraction. Proceedings of the ACM international symposium on New ideas, new paradigms, and reflections on programming and software 2012, Oct 2012, Tucson, United States. ACM, pp.179 - 194, 2012. 〈hal-00756886〉

Partager

Métriques

Consultations de la notice

121