A Library-Based Approach to Context-Dependent Computation with Reactive Values
Language constructs for programming context-dependent computation are required in recent software development, where context information influences program behavior, whose description often scattered around several modules as conditional expressions. The Context-Oriented Programming (COP) community has revealed that context-dependent computations should be modularized into partially defined methods, those partial methods should be adaptable at run-time, and a method dispatching mechanism should take context information into account. Such language constructs enhance modularity of a program. Although contexts are usually reactively changeable, however, many existing COP approaches do not consider the relation between contexts and reactive information. In this paper, we develop a Scala library for context-dependent computations, based on the idea of contexts as reactive values, which are well studied in the field of Functional Reactive Programming. We also show that dynamic binding is useful to control how reactive values influence context dependent functions; it provides value caching to prevent unexpected reactions.
Tue 15 MarDisplayed time zone: Belfast change
10:30 - 12:30 | |||
10:30 30mTalk | Toward a New Constraint Imperative Programming Language for Interactive Graphics CROW | ||
11:00 30mTalk | Emfrp: A Functional Reactive Programming Language for Small-Scale Embedded Systems CROW Link to publication DOI | ||
11:30 30mTalk | Wallingford: Toward a Constraint Reactive Programming Language CROW Alan Borning CDG Labs | ||
12:00 30mTalk | A Library-Based Approach to Context-Dependent Computation with Reactive Values CROW |