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 条
  • [21] Business and socioeconomic assessment of introducing heat pumps with heat storage in small-scale district heating systems
    Ostergaard, Poul Alberg
    Jantzen, Jan
    Marczinkowski, Hannah Mareike
    Kristensen, Michael
    RENEWABLE ENERGY, 2019, 139 : 904 - 914
  • [22] A framework towards resilient Mediterranean eco-solutions for small-scale farming systems
    Lamonaca, Emilia
    Bouzid, Amel
    Caroprese, Mariangela
    Ciliberti, Maria Giovanna
    Cordovil, Claudia M. d. S.
    Karatzia, Maria-Anastasia
    Keskin, Mahmut
    Lazereg, Messaoud
    Lidga, Christina
    Panniello, Umberto
    Saratsis, Anastasios
    Tappi, Marco
    Valasi, Irene
    Yetisgin, Sezenocak
    Santeramo, Fabio Gaetano
    AGRICULTURE & FOOD SECURITY, 2023, 11 (01):
  • [23] Chinese Event Extraction with Small-Scale Language Model
    Chen, Quanlin
    Jia, Jun
    Fan, Shuo
    ADVANCED INTELLIGENT COMPUTING TECHNOLOGY AND APPLICATIONS, ICIC 2023, PT IV, 2023, 14089 : 768 - 779
  • [24] TOWARDS SMALL-SCALE FLOAT GLASS PRODUCTION.
    Anon
    Glass international, 1984, : 9 - 10
  • [25] SMALL-SCALE CARRIER FREQUENCY SYSTEMS.
    Scala, R.
    Hasler Review, 1600, 8 (04): : 109 - 114
  • [26] Small-scale systems for in vivo drug delivery
    David A LaVan
    Terry McGuire
    Robert Langer
    Nature Biotechnology, 2003, 21 : 1184 - 1191
  • [27] Powering and Fabrication of Small-Scale Robotics Systems
    Salvador Pané
    Pedro Wendel-Garcia
    Yonca Belce
    Xiang-Zhong Chen
    Josep Puigmartí-Luis
    Current Robotics Reports, 2021, 2 (4): : 427 - 440
  • [28] LARGE AND SMALL-SCALE SYSTEMS-ENGINEERING
    LAVIE, AM
    ISRAEL JOURNAL OF TECHNOLOGY, 1976, 14 (4-5): : 196 - 206
  • [29] PRECISION FEED SYSTEMS FOR SMALL-SCALE OPERATIONS
    KO, RY
    SZARKA, LJ
    ABSTRACTS OF PAPERS OF THE AMERICAN CHEMICAL SOCIETY, 1982, 184 (SEP): : 15 - MICR
  • [30] Mesoscopic Thermodynamics for the Dynamics of Small-Scale Systems
    Miguel Rubi, J.
    ENTROPY, 2015, 17 (10) : 7201 - 7212