AspectML
Open Access
- 21 May 2008
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in ACM Transactions on Programming Languages and Systems
- Vol. 30 (3) , 1-60
Abstract
This article defines AspectML, a typed functional, aspect-oriented programming language. The main contribution of AspectML is the seamless integration of polymorphism, run-time type analysis and aspect-oriented programming language features. In particular, AspectML allows programmers to define type-safe polymorphic advice using pointcuts constructed from a collection of polymorphic join points. AspectML also comes equipped with a type inference algorithm that conservatively extends Hindley--Milner type inference. To support first-class polymorphic point-cut designators, a crucial feature for developing aspect-oriented profiling or logging libraries, the algorithm blends the conventional Hindley--Milner type inference algorithm with a simple form of local type inference. We give our language operational meaning via a type-directed translation into an expressive type-safe intermediate language. Many complexities of the source language are eliminated in this translation, leading to a modular specification of its semantics. One of the novelties of the intermediate language is the definition of polymorphic labels for marking control-flow points. When a set of labels is assembled as a pointcut, the type of each label is an instance of the type of the pointcut.Keywords
Funding Information
- National Science Foundation (CCR-0238328CCR-0208601CCR-0347289)
- ARDA (NBCHC030106)
This publication has 34 references indexed in Scilit:
- Practical type inference for arbitrary-rank typesJournal of Functional Programming, 2007
- “Scrap Your Boilerplate” Reloaded2006
- Putting curry-howard to work2005
- Open Modules: Modular Reasoning About AdviceLecture Notes in Computer Science, 2005
- A semantics for advice and dynamic join points in aspect-oriented programmingACM Transactions on Programming Languages and Systems, 2004
- Large-scale AOSD for middleware2004
- Stack inspectionACM Transactions on Programming Languages and Systems, 2003
- Aspectual Collaborations: Combining Modules and AspectsThe Computer Journal, 2003
- Enforceable security policiesACM Transactions on Information and System Security, 2000
- A theory of type polymorphism in programmingJournal of Computer and System Sciences, 1978