Ghost: A uniform and general-purpose proxy implementation

Abstract : A proxy object is a surrogate or placeholder that controls access to another target object. Proxy objects are a widely used solution for different scenarios such as remote method invocation, future objects, behavioral reflection, object databases, inter-languages communications and bindings, access control, lazy or parallel evaluation, security, among others. Most proxy implementations support proxies for regular objects but are unable to create proxies for objects with an important role in the runtime infrastructure such as classes or methods. Proxies can be complex to install, they can have a significant overhead, they can be limited to certain kind of classes, etc. Moreover, proxy implementations are often not stratified and they do not have a clear separation between proxies (the objects intercepting messages) and handlers (the objects handling interceptions). In this paper, we present Ghost: a uniform and general-purpose proxy implementation for the Pharo programming language. Ghost provides low memory consuming proxies for regular objects as well as for classes and methods. When a proxy takes the place of a class, it intercepts both the messages received by the class and the lookup of methods for messages received by its instances. Similarly, if a proxy takes the place of a method, then the method execution is intercepted too.
Document type :
Journal articles
Complete list of metadatas

https://hal.inria.fr/hal-01081236
Contributor : Lse Lse <>
Submitted on : Friday, November 7, 2014 - 1:16:49 PM
Last modification on : Thursday, February 21, 2019 - 11:02:54 AM
Long-term archiving on : Friday, April 14, 2017 - 2:15:07 PM

File

Mart14z-Ghost-Final.pdf
Files produced by the author(s)

Identifiers

Citation

Mariano Martinez Peck, Noury Bouraqadi, Luc Fabresse, Marcus Denker, Camille Teruel. Ghost: A uniform and general-purpose proxy implementation. Science of Computer Programming, Elsevier, 2015, Special Issue on Advances in Dynamic Languages, 98 (3), pp.339-359. ⟨10.1016/j.scico.2014.05.015⟩. ⟨hal-01081236⟩

Share

Metrics

Record views

724

Files downloads

489