TinyCORP: A Calculus for Context-Oriented Reactive Programming

被引:1
作者
Kamina, Tetsuo [1 ]
Aotani, Tomoyuki [2 ]
机构
[1] Oita Univ, Oita, Japan
[2] Tokyo Inst Technol, Tokyo, Japan
来源
PROCEEDINGS OF THE WORKSHOP ON CONTEXT-ORIENTED PROGRAMMING (COP'19) | 2019年
关键词
context-oriented programming; signals; Featherweight [!text type='Java']Java[!/text;
D O I
10.1145/3340671.3343356
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Current trend of seamless connections between computing systems and their surrounding environments requires software to be more reactive and adaptable, and reactive programming (RP) and context-oriented programming (COP) have been studied to directly support reactive behavior and dynamic adaptation. Sometimes reactive behavior and dynamic adaptation interact with each other. One issue of such interactions is how to avoid a loop of reactive behavior and dynamic adaptation when there are mutually recursive dependencies between them. This paper proposes TinyCORP, a core calculus for context-oriented reactive programming that is designed in a main-stream, general-purpose language setting. This calculus is expressive enough to represent both features of signals (i.e., time-varying values in RP) and layer-based partial methods in COP, and their interactions including the ability to specify the mutually recursive dependencies between dynamic adaptation and reactive behavior. We also demonstrate that the computation in TinyCORP do not result in the loop of reactive behavior and dynamic adaptation.
引用
收藏
页码:1 / 8
页数:8
相关论文
共 29 条
[1]  
Aotani Tomoyuki, 2014, COP 14
[2]  
Aotani Tomoyuki, 2011, P 3 CONT OR PROGR WO
[3]  
Appeltauer Malte, 2011, Computer Software, V28, P272
[4]  
Appeltauer M, 2010, LECT NOTES COMPUT SC, V6144, P50, DOI 10.1007/978-3-642-14046-4_4
[5]  
Bainomugisha Engineer, 2012, ONWARD 2012, P67
[6]  
Clarke Dave, 2009, INT WORKSH CONT OR P, DOI 10.1145/1562112.1562122
[7]  
Cooper Gregory Harold, 2008, PhD dissertation
[8]  
Costanza P., 2005, P 2005 S DYN LANG DL
[9]   Functional reactive animation [J].
Elliott, C ;
Hudak, P .
ACM SIGPLAN NOTICES, 1997, 32 (08) :263-273
[10]  
Elliott C, 2009, HASKELL'09: PROCEEDINGS OF THE 2009 ACM SIGPLAN HASKELL SYMPOSIUM, P25