首页> 外文会议>International Symposium on Static Analysis(SAS 2007); 20070822-24; Kongens Lyngby(DK) >A Compilation Model for Aspect-Oriented Polymorphically Typed Functional Languages
【24h】

A Compilation Model for Aspect-Oriented Polymorphically Typed Functional Languages

机译:面向方面的多态类型功能语言的编译模型

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

摘要

Introducing aspect orientation to a polymorphically typed functional language strengthens the importance of type-scoped advices; i.e., advices with their effects harnessed by type constraints. As types are typically treated as compile time entities, it is highly desirable to be able to perform static weaving to determine at compile time the chaining of type-scoped advices to their associated join points. In this paper, we describe a compilation model, as well as its implementation, that supports static type inference and static weaving of programs in an aspect-oriented polymorphically typed lazy functional language, AspectFun. We present a type-directed weaving scheme that coherently weaves type-scoped advices into the base program at compile time. We state the correctness of the static weaving with respect to the operational semantics of AspectFun. We also demonstrate how control-flow based pointcuts (such as cflowbelow) are compiled away, and highlight several type-directed optimization strategies that can improve the efficiency of woven code.
机译:在多态类型的功能语言中引入方面取向可以增强类型范围建议的重要性。即建议,其效果受类型约束的约束。由于通常将类型视为编译时实体,因此非常需要能够执行静态编织,以确定在编译时将类型范围内的建议链接到其关联的连接点。在本文中,我们描述了一个编译模型及其实现,该模型支持面向方面的多态类型的惰性函数语言AspectFun的静态类型推断和程序的静态编织。我们提出了一种类型导向的编织方案,该方案在编译时将类型范围的建议连贯地编织到基础程序中。我们针对AspectFun的操作语义陈述静态编织的正确性。我们还将演示如何将基于控制流的切入点(例如cflowbelow)编译掉,并重点介绍几种可以提高编织代码效率的类型导向优化策略。

著录项

相似文献

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

客服邮箱:kefu@zhangqiaokeyan.com

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

  • 服务号