EMA-Kotlin Playground

Explore Expressive and Modular Activation in Kotlin. This page includes interactive snippets inspired by EMA-js examples, now adapted for Kotlin. The browser snippets are intentionally lightweight; the production runtime is in this repository.

Author: Paul Leger

Build: 2026-03-30-c

APA citation (inspiration/extension): Leger, P., Cardozo, N., & Masuhara, H. (2023). An expressive and modular layer activation mechanism for Context-Oriented Programming. Information and Software Technology, 156, 107132. https://doi.org/10.1016/j.infsof.2022.107132.

Context-Oriented Programming Signal composition Layer activation Partial methods

1. Signal Composition

Compose two signals into a contextual condition.

2. Enter / Exit Hooks

Observe transitions when a layer condition toggles.

3. Partial Method + Proceed

Customize behavior while preserving access to base behavior.

4. Recursive Context State

Model a sticky condition that remains true after first activation.