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

自适应的语言支持:FAST中的意图驱动编程

Language Support for Adaptation: Intent-Driven Programming in FAST

Yao-Hsiang Yang, Adam Duracz, Ferenc A. Bartha, Ryuichi Sai, Ahsan Pervaiz, Saeid Barati, Dung Nguyen, Robert Cartwright, Henry Hoffmann, Krishna V. Palem

摘要:

从历史上看,程序设计语言语义集中于为程序分配精确的数学含义。这个意义是一个从程序的输入域到输出域的函数,它完全由程序的句法结构决定。这样的语义促进了便携式应用的开发,该便携式应用不注意特定硬件和软件平台的性能特性和限制(诸如最大存储器占用)。本文介绍了意图驱动编程的思想,其中程序的含义还取决于一个附带的意图规范,表示如何在执行过程中动态修改普通程序的含义,以满足意图所表达的附加属性。这些包括两种内涵属性-例如,资源使用-和扩展属性-例如,计算答案的准确性。为了证明意图驱动编程模型的价值,本文提出了一种通用意图驱动的程序设计语言--称为FAST--作为Swift的扩展实现。FAST由一个意图编译器、一个分析器、一个通用控制器接口和一个运行时模块组成,该模块支持与传统C/C++代码的互操作。与现有的自适应计算框架相比,\FAST{}支持对操作环境和意图本身的变化进行动态适应,并支持混合过程控制和基于反馈和优化的控制。

英文摘要:

Historically, programming language semantics has focused on assigning a precise mathematical meaning to programs. That meaning is a function from the program's input domain to its output domain determined solely by its syntactic structure. Such a semantics, fosters the development of portable applications which are oblivious to the performance characteristics and limitations (such as a maximum memory footprint) of particular hardware and software platforms. This paper introduces the idea of intent-driven programming where the meaning of a program additionally depends on an accompanying intent specification expressing how the ordinary program meaning is dynamically modified during execution to satisfy additional properties expressed by the intent. These include both intensional properties---e.g., resource usage---and extensional properties---e.g., accuracy of the computed answer. To demonstrate the intent-driven programming model's value, this paper presents a general-purpose intent-driven programming language---called FAST---implemented as an extension of Swift. FAST consists of an intent compiler, a profiler, a general controller interface and a runtime module which supports interoperation with legacy C/C++ codes. Compared to existing frameworks for adaptive computing, \FAST{} supports dynamic adaptation to changes both in the operating environment and in the intent itself, and enables the mixing of procedural control and control based on feedback and optimization.

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

↑