arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2212.04193cs.PL
收藏

用面向任务的编程编写物联网应用程序

Writing Internet of Things Applicatations with Task-Oriented Programming

Mart Lubbers, Pieter Koopman, Rinus Plasmeijer

摘要:

物联网(IoT)正在快速发展。2018年,地球上每人大约有一台连接设备,此后这一数字一直在增长。这些设备通过不同的方式与环境进行交互,同时使用传感器和执行器,使程序并行。然而,编写这种类型的程序是困难的,因为设备具有很小的计算能力和内存,平台是异构的,语言是低级的。面向任务编程(TOP)是一种声明式程序设计语言范式,用于表达工作的协调、用户和系统的协作、共享数据的分发以及人机交互。mTask语言是一种专门的,但成熟的,用于物联网设备的多后端TOP语言。通过字节码解释后端和与iTask的集成,任务可以在设备上动态执行。这意味着--根据当前的情况--任务可以在运行时间定制,编译为与设备无关的字节码,并发送到设备进行解释。发送到设备的任务完全集成在iTask中,以允许与任务进行各种形式的交互,例如观察任务值和与共享数据源(SDS)进行交互。整个物联网应用程序(包括服务器和设备)都是用一种语言编程的,尽管使用了两种嵌入式领域特定语言(EDSL)。

英文摘要:

The Internet of Things (IoT) is growing fast. In 2018, there was approximately one connected device per person on earth and the number has been growing ever since. The devices interact with the environment via different modalities at the same time using sensors and actuators making the programs parallel. Yet, writing this type of programs is difficult because the devices have little computation power and memory, the platforms are heterogeneous and the languages are low level. Task Oriented Programming (TOP) is a declarative programming language paradigm that is used to express coordination of work, collaboration of users and systems, the distribution of shared data and the human-computer interaction. The mTask language is a specialized, yet full-fledged, multi-backend TOP language for IoT devices. With the bytecode interpretation backend and the integration with iTask, tasks can be executed on the device dynamically. This means that -- according to the current state of affairs -- tasks can be tailor-made at run time, compiled to device-agnostic bytecode and shipped to the device for interpretation. Tasks sent to the device are fully integrated in iTask to allow every form of interaction with the tasks such as observation of the task value and interaction with Shared Data Sources (SDSs). The entire IoT application -- both server and devices -- are programmed in a single language, albeit using two embedded Domain Specific Languages (EDSLs).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑