Towards Introducing Asynchronous Tasks to an FRP Language for Small-Scale Embedded Systems

被引:0
|
作者
Yokoyama, Akihiko [1 ]
Moriguchi, Sosuke [1 ]
Watanabe, Takuo [1 ]
机构
[1] Tokyo Inst Technol, Tokyo, Japan
关键词
functional reactive programming; asynchronous tasks; promise; embedded systems;
D O I
10.1145/3563837.3568338
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
Emfrp is a functional reactive programming language designed for small embedded systems. By imposing certain restrictions on the language mechanism, the language guarantees the termination of the update process for each time-varying value and enables static determination of the amount of memory required for execution. This allows Emfrp programs to run safely even in resource-constrained execution environments. However, the abovementioned restrictions make it difficult to write time-consuming operations (heavy tasks) such as graph structure construction and exploration based on external data. Moreover, since Emfrp updates time-varying values synchronously, a naive implementation of such heavy tasks using external function calls will result in a slow response time to input. Some existing programming languages provide asynchronous processing mechanisms to ensure descriptiveness and responsiveness for heavy tasks. In this study, we propose a method to introduce heavy tasks into reactive programs naturally by introducing language mechanisms equivalent to asynchronous processing mechanisms, such as future and promise, into Emfrp. In this paper, we first discuss the problems with a naive implementation of heavy tasks in Emfrp, then explain the proposed method based on an example, and discuss the language runtime implementation.
引用
收藏
页码:1 / 12
页数:12
相关论文
共 50 条
  • [41] A Construction Process for Small-Scale Network Systems
    Kato, Yuka
    CHALLENGES FOR NEXT GENERATION NETWORK OPERATIONS AND SERVICE MANAGEMENT, PROCEEDINGS, 2008, 5297 : 543 - 546
  • [42] Mixing and Dispersion in Small-Scale Flow Systems
    Nagy, Kevin D.
    Shen, Bo
    Jamison, Timothy F.
    Jensen, Klavs F.
    ORGANIC PROCESS RESEARCH & DEVELOPMENT, 2012, 16 (05) : 976 - 981
  • [43] Small-scale systems put a dent in testing
    Rozgus, A
    R&D MAGAZINE, 2002, 44 (03): : 27 - 28
  • [44] Analysis of Small-Scale Hydraulic Actuation Systems
    Xia, Jicheng
    Durfee, William K.
    JOURNAL OF MECHANICAL DESIGN, 2013, 135 (09)
  • [46] The Small-Scale Treatment Plant Industry: Institutional Features of Companies, Problems and Functionality of Small-Scale Treatment Systems
    Altin, Ahmet
    Uysal, Hasan Tezcan
    Altin, Sureyya
    ENVIRONMENTAL MANAGEMENT, 2021, 67 (03) : 468 - 476
  • [47] The Small-Scale Treatment Plant Industry: Institutional Features of Companies, Problems and Functionality of Small-Scale Treatment Systems
    Ahmet Altin
    Hasan Tezcan Uysal
    Süreyya Altin
    Environmental Management, 2021, 67 : 468 - 476
  • [48] Prospects for the decentralised control of small-scale power networks with embedded generation
    Dudgeon, GJW
    Leithead, WE
    O'Reilly, J
    McDonald, JR
    2000 IEEE POWER ENGINEERING SOCIETY WINTER MEETING - VOLS 1-4, CONFERENCE PROCEEDINGS, 2000, : 1399 - 1404
  • [49] Small-scale embedded generation effect on voltage profile: an analytical method
    Conti, S
    Raiti, S
    Tina, G
    IEE PROCEEDINGS-GENERATION TRANSMISSION AND DISTRIBUTION, 2003, 150 (01) : 78 - 86
  • [50] Embedded-Based Small-Scale IoT Web Server System
    Yoon, Sungwook
    Kim, Andrew G.
    Kim, Hyenki
    ADVANCED SCIENCE LETTERS, 2018, 24 (03) : 2118 - 2121