PLSEFeb 23, 2014

A new model for Context-Oriented Programs

arXiv:1402.5647v11 citations
Originality Synthesis-oriented
AI Analysis

This work provides foundational verification for context-oriented programming, which is incremental as it formalizes existing COP concepts rather than introducing new paradigms.

The paper tackles the challenge of providing formal foundations for context-oriented programming by developing a precise operational semantics and static type system for COP languages, proving mathematically that typed programs in their model do not get stuck.

Context-oriented programming (COP) is a new technique for programming that allows changing the context in which commands execute as a program executes. Compared to object-oriented programming (aspect-oriented programming), COP is more flexible (modular and structured). This paper presents a precise syntax-directed operational semantics for context-oriented programming with layers, as realized by COP languages like ContextJ* and ContextL. Our language model is built on Java enriched with layer concepts and activation and deactivation of layer scopes. The paper also presents a static type system that guarantees that typed programs do not get stuck. Using the means of the proposed semantics, the mathematical correctness of the type system is presented in the paper.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes