首页> 外文期刊>Science of Computer Programming >Transformation of structure-shy programs with application to XPath queries and strategic functions
【24h】

Transformation of structure-shy programs with application to XPath queries and strategic functions

机译:面向结构的程序的转换以及对XPath查询和战略功能的应用

获取原文
获取原文并翻译 | 示例

摘要

Various programming languages allow the construction of structure-shy programs. Such programs are defined generically for many different datatypes and only specify specific behavior for a few relevant subtypes. Typical examples are XML query languages that allow selection of subdocuments without exhaustively specifying intermediate element tags. Other examples are languages and libraries for polytypic or strategic functional programming and for adaptive object-oriented programming. In this paper, we present an algebraic approach to transformation of declarative structure-shy programs, in particular for strategic functions and XML queries. We formulate a rich set of algebraic laws, not just for transformation of structure-shy programs, but also for their conversion into structure-sensitive programs and vice versa. We show how subsets of these laws can be used to construct effective rewrite systems for specialization, generalization, and optimization of structure-shy programs. We present a type-safe encoding of these rewrite systems in Haskell which itself uses strategic functional programming techniques. We discuss the application of these rewrite systems for XPath query optimization and for query migration in the context of schema evolution.
机译:各种编程语言都允许构建对结构不利的程序。通常为许多不同的数据类型定义此类程序,并且仅为一些相关的子类型指定特定的行为。典型的示例是XML查询语言,该语言允许选择子文档而无需详尽地指定中间元素标签。其他示例是用于多型或战略功能编程以及自适应面向对象编程的语言和库。在本文中,我们提出了一种代数式的方法来转换声明式结构化程序,特别是对于战略功能和XML查询。我们制定了一套丰富的代数定律,不仅用于转换对结构敏感的程序,而且还用于将其转换为对结构敏感的程序,反之亦然。我们展示了如何使用这些法则的子集来构建有效的重写系统,以进行结构化程序的专业化,泛化和优化。我们在Haskell中提供了这些重写系统的类型安全编码,该编码本身使用了战略功能编程技术。我们讨论了这些重写系统在XPath查询优化和模式演化上下文中的查询迁移中的应用。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号