arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1006.3481cs.PLcs.SE
收藏

持久化编程系统中的反射和超编程

Reflection and Hyper-Programming in Persistent Programming Systems

Graham Kirby

摘要:

在这篇论文中提出的工作旨在提高程序员的生产力在以下几个方面:-通过减少的代码量,必须编写构建一个应用程序; -通过增加编写的代码的可靠性;和-通过提高程序员的理解的持久环境中,应用程序的构造。在持久化环境中实现这些目标的两种编程技术是类型安全的语言反射和超编程。第一个提供了一种机制,程序员可以通过它编写生成器,当执行时,生成新的程序表示。这允许高度通用的程序规范,但以非平凡的方式依赖于它们所操作的数据类型。泛型促进了软件重用,这反过来又减少了必须编写的新代码的数量。超编程允许源程序包含指向持久存储中的数据项的链接。这通过允许某些程序检查比其他可能的更早地执行来提高程序可靠性。它还通过允许直接链接到数据而不是文本描述来减少编写的代码量。这两种技术通过支持存储浏览工具的实现和允许源表示与持久存储中的所有可执行程序相关联,有助于理解持久环境。本文详细介绍了类型安全语言反射和超编程的结构,它们在持久化上下文中的优点,以及一套支持反射编程和超编程的编程工具。这些工具可以结合使用以允许超程序表示上的反射。工具的实施进行了说明。

英文摘要:

The work presented in this thesis seeks to improve programmer productivity in the following ways: - by reducing the amount of code that has to be written to construct an application; - by increasing the reliability of the code written; and - by improving the programmer's understanding of the persistent environment in which applications are constructed. Two programming techniques that may be used to pursue these goals in a persistent environment are type-safe linguistic reflection and hyper-programming. The first provides a mechanism by which the programmer can write generators that, when executed, produce new program representations. This allows the specification of programs that are highly generic yet depend in non-trivial ways on the types of the data on which they operate. Genericity promotes software reuse which in turn reduces the amount of new code that has to be written. Hyper-programming allows a source program to contain links to data items in the persistent store. This improves program reliability by allowing certain program checking to be performed earlier than is otherwise possible. It also reduces the amount of code written by permitting direct links to data in the place of textual descriptions. Both techniques contribute to the understanding of the persistent environment through supporting the implementation of store browsing tools and allowing source representations to be associated with all executable programs in the persistent store. This thesis describes in detail the structure of type-safe linguistic reflection and hyper-programming, their benefits in the persistent context, and a suite of programming tools that support reflective programming and hyper-programming. These tools may be used in conjunction to allow reflection over hyper-program representations. The implementation of the tools is described.

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

↑