Expand description
Echo protocol — the reference extension (pure Protocol + its Interpret shell).
Demonstrates the model end to end: stateful (counts the messages seen), typed
(its own Event/Effect), and effectful (echoes the payload back) — yet step is
pure and the only IO (an overlay send) lives in the interpreter.
S = ℕ
step (Ctx n, Echoed{from, p}) = Transition (n+1) [Reply{to=from, p}]Structs§
- Echo
- Echo protocol: replies with the same payload and counts how many it has seen.
- Echo
Shell - Echo’s interpreter: it owns no resources; a
Replyis just an overlaysend. - Echoed
- A decoded echo message: who sent it and what bytes to echo back.
Enums§
- Echo
Effect - Echo’s own effect: reply to
towithpayloadover the overlay.
Constants§
- NAMESPACE
- Namespace for the echo protocol.