Efficient layer activation for switching context-dependent behavior

33Citations
Citations of this article
20Readers
Mendeley users who have this article in their library.
Get full text

Abstract

Today's programming platforms do not provide sufficient constructs that allow a program's behavior to depend on the context in which it is executing. This paper presents the design and implementation of programming language extensions that explicitly support our vision of Context-oriented Programming. In this model, programs can be partitioned into layers that can be dynamically activated and deactivated depending on their execution context. Layers are sets of partial program definitions that can be composed in any order. Context-oriented Programming encourages rich, dynamic modifications of program behavior at runtime, requiring an efficient implementation. We present a dynamic representation of layers that yields competitive performance characteristics for both layer activation/deactivation and overall program execution. We illustrate the performance of our implementation by providing an alternative solution for one of the prominent examples of aspect-oriented programming. © Springer-Verlag Berlin Heidelberg 2006.

Cite

CITATION STYLE

APA

Costanza, P., Hirschfeld, R., & De Meuter, W. (2006). Efficient layer activation for switching context-dependent behavior. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 4228 LNCS, pp. 84–103). Springer Verlag. https://doi.org/10.1007/11860990_7

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free