Back to Search Start Over

A Simple Context-Oriented Programming Extension to an FRP Language for Small-Scale Embedded Systems

Authors :
Takuo Watanabe
Source :
COP@ECOOP
Publication Year :
2018
Publisher :
ACM, 2018.

Abstract

This paper presents the design of a simple context-oriented programming extension to Emfrp, a purely functional reactive programming language for resource-constrained embedded systems. The language provides declarative and straightforward ways to describe various reactive behaviors in embedded systems. However, because of the static nature of the language, Emfrp lacks suitable capabilities to modularize adaptive behaviors. The proposed extension introduces a simple layer mechanism with implicit layer activation. It also provides a feature to describe responses to events that correspond to the moments of layer activations and deactivations. The extension can improve the modularity of Emfrp programs by separating the descriptions of context-dependent behaviors, and hence eliminating various cross-cutting code fragments.

Details

Language :
English
Database :
OpenAIRE
Journal :
Proceedings of the 10th International Workshop on Context-Oriented Programming (COP 2018)
Accession number :
edsair.doi.dedup.....9e49e6ae5a8d66310a08bdc8c9b40399