Information Processing Society of Japan;Tokyo: Information Processing Society of Japan
摘要:
摘要: In event-driven programming we can react to an event by binding methods to it as handlers, but such a handler binding in current event systems is explicit and requires explicit reason about the graph of event propagation even for straightforward cases. On the other hand, the handler binding in reactive programming is implicit and constructed through signals. Recent approaches to support either event-driven programming or reactive programming show the need of using both the two styles in a program. We propose an extension to expand event systems to support reactive programming by enabling the automation of handler bindings. With such an extension programmers can use events to cover both the implicit style in reactive programming and the explicit style in event-driven programming. We first describe the essentials of reactive programming, signals and signal assignments, in terms of events, handlers, and bindings, then point out the lack of automation in existing event systems. Unlike most research activities we expand event systems to support signals rather than port signals to event systems. In this paper we also show a prototype implementation and translation examples to evaluate the concept of automation. Furthermore, the comparison with the predicate pointcuts in aspect-oriented programming and the details of the experimental compiler are discussed.(en) 其他題名: Journal of Information Processing 出版者: Tokyo: Information Processing Society of Japan 出版日期: 2016 出處: Journal of Information Processing, 2016, Vol.24(4), pp.620-634 資源來源: J-STAGE - Japan Science and Technology Aggregator, Electronic 版權: 2016 by the Information Processing Society of Japan 版權: Copyright Japan Science and Technology Agency 2016 識別號: ISSN: 1882-6652 識別號: EISSN: 1882-6652 識別號: DOI: 10.2197/ipsjjip.24.620