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 条
  • [1] Periodic and Aperiodic Task Description Mechanisms in an FRP Language for Small-Scale Embedded Systems
    Sogo, Kento
    Tsuji, Yuta
    Moriguchi, Sosuke
    Watanabe, Takuo
    PROCEEDINGS OF THE 10TH ACM SIGPLAN INTERNATIONAL WORKSHOP ON REACTIVE AND EVENT-BASED LANGUAGES AND SYSTEMS, REBLS 2023, 2023, : 43 - 53
  • [2] Emfrp: A Functional Reactive Programming Language for Small-Scale Embedded Systems
    Sawada, Kensuke
    Watanabe, Takuo
    COMPANION PROCEEDINGS OF THE 15TH INTERNATIONAL CONFERENCE ON MODULARITY (MODULARITY COMPANION'16), 2016, : 36 - 44
  • [3] CFRP: A Functional Reactive Programming Language for Small-Scale Embedded Systems
    Suzuki, Kohei
    Nagayama, Kanato
    Sawada, Kensuke
    Watanabe, Takuo
    THEORY AND PRACTICE OF COMPUTATION, 2018, : 1 - 13
  • [4] A PORTABLE QUERY LANGUAGE FOR SMALL-SCALE SYSTEMS
    PAPAZOGLOU, MP
    MICROPROCESSING AND MICROPROGRAMMING, 1988, 23 (1-5): : 299 - 304
  • [5] MU-ITRON FOR SMALL-SCALE EMBEDDED SYSTEMS
    TAKADA, H
    SAKAMURA, K
    IEEE MICRO, 1995, 15 (06) : 46 - 54
  • [6] INTRODUCING SMALL-SCALE MICRO-HYDRO TO ZIMBABWE
    不详
    APPROPRIATE TECHNOLOGY, 1993, 19 (04) : U2 - U2
  • [7] Introducing product lines in small embedded systems
    Stoermer, C
    Roeddiger, M
    SOFTWARE PRODUCT-FAMILY ENGINEERING, 2002, 2290 : 101 - 112
  • [8] Equating in small-scale language testing programs
    LaFlair, Geoffrey T.
    Isbell, Daniel
    May, L. D. Nicolas
    Arvizu, Maria Nelly Gutierrez
    Jamieson, Joan
    LANGUAGE TESTING, 2017, 34 (01) : 127 - 144
  • [9] A Typology of Tasks for Mobile-Assisted Language Learning: Recommendations from a Small-Scale Needs Analysis
    Park, Moonyoung
    Slater, Tammy
    TESL CANADA JOURNAL, 2014, 31 : 93 - 115
  • [10] THE SMALL-SCALE OUTFLOW STRUCTURE OF EMBEDDED SOURCES IN TAURUS
    CHANDLER, CJ
    TEREBEY, S
    BARSONY, M
    MOORE, TJT
    ASTROPHYSICS AND SPACE SCIENCE, 1995, 224 (1-2) : 109 - 112