The Declarative Nature of Implicit Layer Activation
Context-oriented programming (cop) directly addresses context variability by providing dedicated language concepts: layers, units of modularity, store context-dependent behavior. During runtime, layers can be applied dynamically depending on the current context of the program. Various activation means for layers have been proposed. Most of them require developers to model context switches explicitly. In contrast, implicit layer activation (ila) allows developers to bind the activation status of a layer to a declarative expression. The associated layer stays automatically active as long as the given expression evaluates to true. Despite its declarative semantics, ila is usually implemented in an imperative fashion. In this paper, we present and compare two implementation variants for ila in ContextJS: an imperative and a reactive implementation. Furthermore, we discuss trade-offs regarding code complexity as well as runtime overhead.
Tue 20 JunDisplayed time zone: Amsterdam, Berlin, Bern, Rome, Stockholm, Vienna change
11:00 - 12:30 | |||
11:00 30mTalk | The Declarative Nature of Implicit Layer Activation COP Stefan Ramson Hasso Plattner Institute, Potsdam, Jens Lincke Hasso Plattner Institute, Robert Hirschfeld HPI | ||
11:30 30mTalk | Push-based Reactive Layer Activation in Context-Oriented Programming COP Tetsuo Kamina Ritsumeikan University, Tomoyuki Aotani Tokyo Institute of Technology, Hidehiko Masuhara Tokyo Institute of Technology | ||
12:00 30mTalk | Petri-Net Based Testing Environment for Context-Oriented Programming COP |