Semantics and scoping of aspects in higher-order languages

被引:23
|
作者
Dutchyn, Christopher
Tucker, David B.
Krishnamurthi, Shriram
机构
[1] Univ Saskatchewan, Dept Comp Sci, Saskatoon, SK S7N 1X9, Canada
[2] Brown Univ, Dept Comp Sci, Providence, RI 02912 USA
基金
美国国家科学基金会;
关键词
scheme; aspect; join point; pointcut; advice; higher-order; CEKS; abstract machine;
D O I
10.1016/j.scico.2006.01.003
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Aspect-oriented software design will need to support languages with first-class and higher-order procedures, such as Ruby, Perl, ML and Scheme. These language features present both challenges and benefits for aspects. On the one hand, they force the designer to carefully address issues of scope that do not arise in first-order languages. On the other hand, these distinctions of scope make it possible to define a much richer variety of policies than first-order aspect languages permit. In this paper, we describe the subtleties of pointcuts and advice for higher-order languages, particularly Scheme. We then resolve these subtleties by alluding to traditional notions of scope. In particular, programmers can now define both dynamic aspects traditional to AOP and static aspects that can capture common security-control paradigms. We provide an operational semantics, based on an extended CEKS machine, that gives a formal account of dynamic and static aspects. We implement the language as an extension to Scheme. By exploiting two novel features of our Scheme system-continuation marks and language-defining macros-the implementation is lightweight and integrates well into the programmer's toolkit. (c) 2006 Elsevier B.V. All rights reserved.
引用
收藏
页码:207 / 239
页数:33
相关论文
共 50 条
  • [31] The semantic view of theories and higher-order languages
    Hudetz, Laurenz
    [J]. SYNTHESE, 2019, 196 (03) : 1131 - 1149
  • [32] ABSTRACT DEBUGGING OF HIGHER-ORDER IMPERATIVE LANGUAGES
    BOURDONCLE, F
    [J]. SIGPLAN NOTICES, 1993, 28 (06): : 46 - 55
  • [33] Environmental Bisimulations for Probabilistic Higher-Order Languages
    Sangiorgi, Davide
    Vignudelli, Valeria
    [J]. ACM SIGPLAN NOTICES, 2016, 51 (01) : 595 - 607
  • [34] Definitional interpreters for higher-order programming languages
    Reynolds, John C.
    [J]. Higher-Order and Symbolic Computation, 1998, 11 (04): : 363 - 397
  • [35] Concolic Testing of Higher-order Functional Languages
    Sagonas, Konstantinos
    [J]. ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2019, (296): : 2 - 2
  • [36] The semantic view of theories and higher-order languages
    Laurenz Hudetz
    [J]. Synthese, 2019, 196 : 1131 - 1149
  • [37] SEMANTICS OF SEPARATION-LOGIC TYPING AND HIGHER-ORDER FRAME RULES FOR ALGOL-LIKE LANGUAGES
    Birkedal, Lars
    Torp-Smith, Noah
    Yang, Hongseok
    [J]. LOGICAL METHODS IN COMPUTER SCIENCE, 2006, 2 (05)
  • [38] Higher-order aspects and context in SUMO
    Benzmueller, Christoph
    Pease, Adam
    [J]. JOURNAL OF WEB SEMANTICS, 2012, 12-13 : 104 - 117
  • [39] Aspects of general higher-order gravities
    Bueno, Pablo
    Cano, Pablo A.
    Min, Vincent S.
    Visser, Manus R.
    [J]. PHYSICAL REVIEW D, 2017, 95 (04)
  • [40] FULLY ABSTRACT SEMANTICS FOR HIGHER-ORDER COMMUNICATING SYSTEMS
    RAMESH, S
    [J]. LECTURE NOTES IN COMPUTER SCIENCE, 1992, 629 : 463 - 471