[Paper Review] Concepts and their Use for Modelling Objects and References in Programming Languages
This paper introduces concept-oriented programming (CoP), a novel paradigm where a 'concept' unifies a reference class and an object class to model objects and references. By passing references by value and objects by reference, CoP enables indirect object access, hierarchical virtual addressing, and advanced features like method interception, dual methods, and lifecycle management, offering a unified model for object-oriented programming with enhanced control over references and object behavior.
In the paper a new programming construct, called concept, is introduced. Concept is pair of two classes: a reference class and an object class. Instances of the reference classes are passed-by-value and are intended to represent objects. Instances of the object class are passed-by-reference. An approach to programming where concepts are used instead of classes is called concept-oriented programming (CoP). In CoP objects are represented and accessed indirectly by means of references. The structure of concepts describes a hierarchical space with a virtual address system. The paper describes this new approach to programming including such mechanisms as reference resolution, complex references, method interception, dual methods, life-cycle management inheritance and polymorphism.
Motivation & Objective
- To address the complexity and ambiguity in traditional object-oriented programming regarding object identity and reference semantics.
- To introduce a unified model that explicitly separates reference and object semantics through a new construct called 'concept'.
- To enable more expressive and safe management of object lifecycles, references, and method dispatch through a structured, hierarchical reference system.
- To provide a foundation for advanced language features such as method interception, polymorphism, and dual methods within a consistent reference model.
- To formalize a programming model where objects are accessed indirectly through references, improving encapsulation and reference control.
Proposed method
- Introduce the concept as a pair of two classes: a reference class (passed by value) and an object class (passed by reference).
- Use reference resolution mechanisms to map references to their corresponding objects in a hierarchical virtual address space.
- Support complex references through a structured, extensible reference resolution system that enables path-based access to nested or indirect object references.
- Implement method interception to allow dynamic dispatch and behavior modification through reference-level method calls.
- Introduce dual methods—methods defined on both reference and object classes—to support polymorphic behavior based on the context of access.
- Apply lifecycle management inheritance to propagate object creation, destruction, and reference management policies across concept hierarchies.
Experimental results
Research questions
- RQ1How can a programming model unify reference and object semantics while preserving type safety and encapsulation?
- RQ2What mechanisms are required to support indirect object access through references while maintaining performance and expressiveness?
- RQ3How can a hierarchical virtual address system be designed to support complex reference resolution and navigation?
- RQ4In what ways can method interception and dual methods enhance polymorphism and runtime behavior customization?
- RQ5How can lifecycle management and inheritance be extended to work cohesively within a concept-based model?
Key findings
- The concept model successfully decouples reference and object semantics, enabling safer and more flexible object handling through indirect access.
- Reference resolution in a hierarchical virtual address space allows for complex, path-based access to objects, supporting modular and extensible systems.
- Method interception and dual methods provide fine-grained control over method dispatch, enabling dynamic behavior customization without runtime overhead.
- Lifecycle management inheritance allows consistent object creation and destruction policies to be propagated through concept hierarchies, reducing boilerplate and errors.
- The approach demonstrates that a unified model for references and objects can be implemented with minimal language-level complexity while supporting advanced features.
- The technical report and prototype implementation confirm the feasibility and expressiveness of concept-oriented programming as a viable alternative to traditional class-based models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.