Mirrors
Gilad Bracha, David Ungar · ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications (OOPSLA) · 2004
We identify three design principles for reflection and metaprogramming facilities in object oriented programming languages. Encapsulation: meta-level facilities must encapsulate their implementation. Stratification: meta-level facilities must be separated from base-level functionality. Ontological correspondence: the ontology of meta-level facilities should correspond to the ontology of the language they manipulate. Traditional/mainstream reflective architectures do not follow these precepts. In contrast, reflective APIs built around the concept of mirrors are characterized by adherence to these three principles. Consequently, mirror-based architectures have significant advantages with respect to distribution, deployment and general purpose metaprogramming.
Cited by 169 works. doi:10.1145/1028976.1029004
Authors
References
- Smalltalk-80: The Language and its Implementation
- The Java Language Specification
- Actors: A Model of Concurrent Computation in Distributed Systems
- Self: The power of simplicity
- The art of the metaobject protocol
- Object-Oriented Programming in the Beta Programming Language
- Concepts and experiments in computational reflection
- Reflection and semantics in LISP
- A metaobject protocol for C++
- Generative Programming