自LISP语言问世以来,第五代程序设计语言已经发展了几十年。然而,与第四代程序设计语言相比,第五代程序设计语言由于语义晦涩、问题表示严谨、推理能力有限等原因,一直没有得到广泛应用。为此,本文提出的第五代程序设计语言COOL(Constraint and Object Ordered Language)克服了以往第五代程序设计语言语义直观、处理问题条件限制严格等问题,提高了其推理能力。具体改进如下:第一,COOL支持面向过程和面向对象,便于在生产项目中应用;第二,COOL支持表达式作为函数声明和函数返回,提高了对数学公式的语言亲和力,支持将函数参数嵌入函数名字符串,使函数命名更接近自然语言。使数学问题更容易描述;第三,COOL引入了加权机制,通过累积加权加速推理过程。第四,COOL在编程中引入了正向和反向函数的概念,这样计算机就可以推断和执行具有逻辑顺序约束的问题。第五,计算机可以通过回溯算法和动态规划算法,利用正解过程推导出逆解过程,从而使计算机能够推导出具有时序约束的问题。第六,引入预执行步骤,将程序的推理和函数查询过程与执行过程分离,提高程序的执行速度。
英文摘要:
Since the advent of LISP, the fifth generation programming language has developed for decades. However, compared with the fourth generation programming language, the fifth generation programming language has not been widely used because of its obscure semantics, rigorous representation of problems, and limited inference ability. For this reason, COOL (Constraint and Object Ordered Language), a fifth generation programming language proposed in this paper, overcomes the problems of intuitive semantics, rigorous restrictions on handling problem conditions, and improves the inference ability of previous fifth generation programming languages. Specific improvements are as follows: First, COOL supports process-oriented and object-oriented for easy application in production projects; Second, COOL supports expression as function declaration and function return, which improves language affinity for mathematical formulas, and supports embedding function parameters into function name strings to make function naming closer to natural languages. Make mathematical problems easier to describe; Third, COOL introduces a weighting mechanism and accelerates the inference process through cumulative weighting. Fourth, COOL introduces the concepts of forward and reverse functions in programming so that computers can infer and execute problems with logical sequential constraints. Fifth, the computer can deduce the reverse solution process by using the forward solution process through the back-tracking algorithm and the dynamic programming algorithm, so that the computer can deduce the problem with time-sequential constraints. Sixth, the pre-execution step is introduced to separate the inference and function query process of the program from the execution process, so as to improve the execution speed of the program.
nomp: A Framework for Building Domain Specific Compilers
University of Illinois(伊利诺伊大学);Argonne National Laboratory(阿贡国家实验室);Qualcomm Research(高通研究);University of Moratuwa(莫拉图瓦大学);Los Alamos National Laboratory(洛斯阿拉莫斯国家实验室);Virginia Tech(弗吉尼亚理工大学)
对分布式应用程序进行无通信死锁和竞争条件的编程是复杂的。当应用程序在运行时更新时,保留这些属性就更难了。我们提出了一个编排的方法编程可更新的,分布式应用程序。我们定义了一个编排语言,称为动态面向交互的编排(AIOC),它允许程序员指定,从全局的角度来看,应用程序的哪些部分可以更新。在运行时,这些部分可能被来自应用程序外部的新AIOC片段替换。AIOC程序被编译,用称为动态面向过程的编排(APOC)的过程级语言为每个参与者生成代码。我们证明,APOC分布式应用程序生成的AIOC规范是死锁自由和种族自由,这些属性也举行任何运行时更新后。我们将上述理论模型实例化为一个名为Adaptable Interaction-Oriented Choreographies in Jolie(AIOCJ)的编程框架,该框架包括一个集成开发环境,一个从AIOCs扩展到分布式Jolie程序的编译器,以及一个支持其执行的运行时环境。