Functional reactive programming from first principles

Author:

Wan Zhanyong1,Hudak Paul1

Affiliation:

1. Yale University, Department of Computer Science, P.O. Box 208285, New Haven, Connecticut

Abstract

Functional Reactive Programming , or FRP , is a general framework for programming hybrid systems in a high-level, declarative manner. The key ideas in FRP are its notions of behaviors and events . Behaviors are time-varying, reactive values, while events are time-ordered sequences of discrete-time event occurrences. FRP is the essence of Fran , a domain-specific language embedded in Haskell for programming reactive animations, but FRP is now also being used in vision, robotics and other control systems applications. In this paper we explore the formal semantics of FRP and how it relates to an implementation based on streams that represent (and therefore only approximate) continuous behaviors. We show that, in the limit as the sampling interval goes to zero, the implementation is faithful to the formal, continuous semantics, but only when certain constraints on behaviors are observed. We explore the nature of these constraints, which vary amongst the FRP primitives. Our results show both the power and limitations of this approach to language design and implementation. As an example of a limitation, we show that streams are incapable of representing instantaneous predicate events over behaviors.

Publisher

Association for Computing Machinery (ACM)

Subject

Computer Graphics and Computer-Aided Design,Software

Reference16 articles.

1. Tom M. Apostol. Mathematical Analysis A Modern Approach to Advanced Calculus. Addison-Wesley 1957.]] Tom M. Apostol. Mathematical Analysis A Modern Approach to Advanced Calculus. Addison-Wesley 1957.]]

2. LUSTRE: a declarative language for real-time programming

Cited by 75 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Reactamole: functional reactive molecular programming;Natural Computing;2024-04-19

2. Learning Recovery Strategies for Dynamic Self-healing in Reactive Systems;Proceedings of the 19th International Symposium on Software Engineering for Adaptive and Self-Managing Systems;2024-04-15

3. Self-Organisation Programming: A Functional Reactive Macro Approach;2023 IEEE International Conference on Autonomic Computing and Self-Organizing Systems (ACSOS);2023-09-25

4. Reactive Software Architectures in IoT;Proceedings of the International Conference on Research in Adaptive and Convergent Systems;2023-08-06

5. Work in Progress: Response Time Analysis of Real-Time Quantum Computing Systems;2023 IEEE 29th Real-Time and Embedded Technology and Applications Symposium (RTAS);2023-05

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3