An In-Depth Look at ALIA4J

Christoph Bockisch, A. Sewe, Haihan Yin, M. Mezini, Mehmet Aksit

    Research output: Contribution to journalArticleAcademicpeer-review

    11 Citations (Scopus)
    74 Downloads (Pure)


    New programming languages supporting advanced modularization mechanisms are often implemented as transformations to the imperative intermediate representation of an already established language. But while their core constructs largely overlap in semantics, re-using the corresponding transformations requires re-using their syntax as well; this is limiting. In the ALIA4J approach, we identified dispatching as fundamental to most modularization mechanisms and provide a meta-model of dispatching as a rich, extensible intermediate language. Based on this meta-model, one can modularly implement the semantics of dispatching-related constructs. From said constructs a single execution model can then be derived which facilitates interpretation, bytecode generation, and even optimized machine-code generation. We show the suitability of our approach by mapping five popular languages to this meta-model and find that most of their constructs are shared across multiple languages. We furthermore present implementations of the three different execution strategies together with a generic visual debugger available to any ALIA4J-based language implementation. Intertwined with this paper is a tutorial-style running example that illustrates our approach.
    Original languageUndefined
    Pages (from-to)7:1-7:28
    Number of pages28
    JournalJournal of object technology
    Issue number1
    Publication statusPublished - Apr 2012


    • CR-D.3.4
    • Pointcut-advice
    • just-in-time compilation
    • modular language implementation
    • predicate dispatching
    • EWI-21755
    • Advanced dispatching
    • Dispatching mechanisms
    • Virtual Machines
    • multiple dispatching
    • METIS-296050
    • IR-82103
    • Debugging

    Cite this