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

CLAIRE:集合、搜索和规则的结合,更好地表达算法

CLAIRE: Combining Sets, Search And Rules To Better Express Algorithms

Yves Caseau, Francois-Xavier Josset, Francois Laburthe

摘要:

本文提出了一种程序设计语言,它包括通常与声明性语言,如集,规则和搜索,到一个命令式(功能)语言的范例。虽然这些范例分别是众所周知的,并在各种编程环境下可用,CLAIRE语言的独创性来自紧密的集成,这产生了有趣的运行时性能,并从这种组合的丰富性,这产生了新的方式来表达复杂的算法模式与几个优雅的行。以实现高抽象级别的相反目标(简洁性和可读性)和运行时性能(CLAIRE被用作C++的预处理器),我们开发了两种编译器:第一种是模式预处理器,处理具体和抽象集合上的迭代(数据类型和程序片段),以完全用户可扩展的方式;其次,推理编译器将一组逻辑规则转换为一组函数(通过过程附件使用的恶魔)。

英文摘要:

This paper presents a programming language which includes paradigms that are usually associated with declarative languages, such as sets, rules and search, into an imperative (functional) language. Although these paradigms are separately well known and are available under various programming environments, the originality of the CLAIRE language comes from the tight integration, which yields interesting run-time performances, and from the richness of this combination, which yields new ways in which to express complex algorithmic patterns with few elegant lines. To achieve the opposite goals of a high abstraction level (conciseness and readability) and run-time performance (CLAIRE is used as a C++ preprocessor), we have developed two kinds of compiler: first, a pattern pre-processor handles iterations over both concrete and abstract sets (data types and program fragments), in a completely user-extensible manner; secondly, an inference compiler transforms a set of logical rules into a set of functions (demons that are used through procedural attachment).

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

↑