An Advice Mechanism for Non-local Flow Control

被引:0
|
作者
Masuhara, Hidehiko [1 ]
Fujita, Kenta [1 ]
Aotani, Tomoyuki [1 ]
机构
[1] Tokyo Inst Technol, Dept Math & Comp Sci, Tokyo, Japan
关键词
Aspect-oriented programming; exception handling; delimited continuations;
D O I
10.1145/2892664.2892674
中图分类号
TP39 [计算机的应用];
学科分类号
081203 ; 0835 ;
摘要
We propose an advice mechanism called Chop&Graft for non-local flow control. It offers a novel chop pointcut that lets a piece of advice terminate the current execution, and graft and retry operators that resume and restart the terminated executions. By using pointcuts for specifying the region of termination, the mechanism is more robust and more concise than the traditional exception handling mechanisms that rely on names or exception classes. The paper presents the design of the mechanism along with the sketches of two implementations using delimited continuations or threads and exceptions.
引用
收藏
页码:73 / 78
页数:6
相关论文
共 50 条
  • [1] Local control of non-local information flow in oscillatory neuronal networks
    Christoph Kirst
    Marc Timme
    Demian Battaglia
    BMC Neuroscience, 12 (Suppl 1)
  • [2] Analysis and control of a non-local PDE traffic flow model
    Karafyllis, Iasson
    Theodosis, Dionysios
    Papageorgiou, Markos
    INTERNATIONAL JOURNAL OF CONTROL, 2022, 95 (03) : 660 - 678
  • [3] A non-local flow for Riemann surfaces
    Gursky, Matthew J.
    CALCULUS OF VARIATIONS AND PARTIAL DIFFERENTIAL EQUATIONS, 2008, 32 (01) : 53 - 80
  • [4] A non-local flow for Riemann surfaces
    Matthew J. Gursky
    Calculus of Variations and Partial Differential Equations, 2008, 32 : 53 - 80
  • [5] Separation Logic for Non-local Control Flow and Block Scope Variables
    Krebbers, Robbert
    Wiedijk, Freek
    FOUNDATIONS OF SOFTWARE SCIENCE AND COMPUTATION STRUCTURES (FOSSACS 2013), 2013, 7794 : 257 - 272
  • [6] Using Nudging for the Control of a Non-Local PDE Traffic Flow Model
    Karafyllis, Iasson
    Theodosis, Dionysis
    Papageorgiou, Markos
    2020 IEEE 23RD INTERNATIONAL CONFERENCE ON INTELLIGENT TRANSPORTATION SYSTEMS (ITSC), 2020,
  • [7] Photochromic YHO darkening: Local or non-local mechanism?
    Hansen, Per-Anders
    Baba, Elbruz Murat
    JOURNAL OF APPLIED PHYSICS, 2024, 136 (15)
  • [8] NON-LOCAL FIELD AND NON-LOCAL INTERACTION
    KATAYAMA, Y
    PROGRESS OF THEORETICAL PHYSICS, 1952, 8 (03): : 381 - 382
  • [9] A non-local area preserving curve flow
    Ma, Li
    Cheng, Liang
    GEOMETRIAE DEDICATA, 2014, 171 (01) : 231 - 247
  • [10] A non-local macroscopic model for traffic flow
    Ciotir, Ioana
    Fayad, Rim
    Forcadel, Nicolas
    Tonnoir, Antoine
    ESAIM-MATHEMATICAL MODELLING AND NUMERICAL ANALYSIS, 2021, 55 (02) : 689 - 711