Essential AOP: The A Calculus

Bruno De Fraine, Erik Ernst, Mario Sudholt

    Research output: Chapter in Book/Report/Conference proceedingConference paper

    11 Citations (Scopus)

    Abstract

    Aspect-oriented programming (AOP) has produced interesting language designs, but also ad hoc semantics that needs clarification. We contribute to this clarification with a calculus that models essential AOP, both simpler and more general than existing formalizations. In AOP, advice may intercept method invocations, and proceed executes the suspended call. Proceed is an ad hoc mechanism, only usable inside advice bodies. Many pointcut mechanisms, e.g. wildcards, also lack regularity. We model proceed using first-class closures, and shift complexity from pointcuts to ordinary object-oriented code. Two well-known pointcut categories, call and execution, are commonly considered similar. We formally expose their differences, and resolve the associated soundness problem. Our calculus includes type ranges, an intuitive and concise alternative to explicit type variables that allows advice to be polymorphic over intercepted methods. We use calculus parameters to cover type safety for a wide design space of other features. Type soundness is verified in Coq.
    Original languageEnglish
    Title of host publicationProceedings of the 24th European Conference on Object-Oriented Programming (ECOOP-2010)
    EditorsTheo D'hondt
    Number of pages25
    Volume6183
    Publication statusPublished - 10 Jun 2010
    EventFinds and Results from the Swedish Cyprus Expedition: A Gender Perspective at the Medelhavsmuseet - Stockholm, Sweden
    Duration: 21 Sep 200925 Sep 2009

    Publication series

    NameLecture Notes in Computer Science

    Conference

    ConferenceFinds and Results from the Swedish Cyprus Expedition: A Gender Perspective at the Medelhavsmuseet
    Country/TerritorySweden
    CityStockholm
    Period21/09/0925/09/09

    Bibliographical note

    Theo D'Hondt

    Keywords

    • semantics
    • type systems
    • aspect-oriented programming

    Fingerprint

    Dive into the research topics of 'Essential AOP: The A Calculus'. Together they form a unique fingerprint.

    Cite this