Expand ↗
Page list (1514)

Exploring the Theory and Practice of Concurrency in the Entity-Component-System Pattern

Reference: Patrick Redmond, Jonathan Castello, José Manuel Calderón Trilla & Lindsey Kuper (2025). PACMPL 9 (OOPSLA2), article 272. DOI. Extended version: arXiv:2508.15264v2, 11 September 2025. PDF.

Summary

Entity-Component-System (ECS) separates identifiers, associated data, and computational behavior. Core ECS gives this pattern a formal model with Denotational Semantics: systems pair queries with mutation-producing functions, while schedules describe their composition.

The authors identify sufficient conditions for Determinism despite scheduler nondeterminism. Their survey finds that existing frameworks leave some safe Concurrency unavailable.

Key Ideas

  • Distinguish concurrency across systems from concurrency across one system’s query matches.
  • Commuting concurrent mutations imply schedule determinism, accounting for fresh-identifier equivalence.
  • Disjoint mutation footprints provide compositional sufficient conditions for safety.
  • The surveyed frameworks’ storage and scheduling restrictions can serialize otherwise safe work; this is not a claim about every current framework version.

Connections

Conceptual Contribution

  • Claim: ECS admits a deterministic concurrent fragment.
  • Mechanism: Core calculus, schedule partial orders, and mutation commutativity.
  • Concepts introduced/used: Core ECS, Concurrency, Determinism, mutation influence.
  • Stance: formal semantics / programming models.
  • Relates to: Complements the vault’s distributed-concurrency literature with a shared-state programming pattern.

Tags

#concurrency #determinism #ecs #formal-semantics #programming-languages #oopsla

Backlinks