Publish immutable caller-created snapshots with revision and epoch identity #5

Closed
opened 2026-12-02 18:14:39 +00:00 by faumaray · 1 comment
Owner

At 7b0fea6095f603f9e1904f66dfdc7752f4be4792, Configuration::ReloadController<T> handles immutable configuration loaded from sources and schemas. A simulation also needs to publish an already prepared immutable object for simultaneous renderer, network and save readers.

Please consider a reusable publication primitive where a producer supplies a complete immutable value and epoch/revision, readers can retain a previous publication, and a failed preparation preserves the last good publication. Test retained data across later publishes, concurrent readers, a compare-and-publish failure against an obsolete epoch and resource release when the last reader exits. Game tick calculation, session policy and ownership of entity data belong to the caller.

The game can adopt this when held render/save snapshots remain stable through new ticks and failed/successful world replacements using the same tests.

At `7b0fea6095f603f9e1904f66dfdc7752f4be4792`, `Configuration::ReloadController<T>` handles immutable configuration loaded from sources and schemas. A simulation also needs to publish an already prepared immutable object for simultaneous renderer, network and save readers. Please consider a reusable publication primitive where a producer supplies a complete immutable value and epoch/revision, readers can retain a previous publication, and a failed preparation preserves the last good publication. Test retained data across later publishes, concurrent readers, a compare-and-publish failure against an obsolete epoch and resource release when the last reader exits. Game tick calculation, session policy and ownership of entity data belong to the caller. The game can adopt this when held render/save snapshots remain stable through new ticks and failed/successful world replacements using the same tests.
Author
Owner

Implemented on branch issue/5-immutable-publication (commit 37c3cd4).

Void::Core::Publication<T> added: retainable immutable snapshots with epoch/revision compare-and-publish and last-reader release.

Branch: https://git.faumaray.com/Void/Library/src/branch/issue/5-immutable-publication
Merge request: https://git.faumaray.com/Void/Library/pulls/new/issue/5-immutable-publication

Implemented on branch `issue/5-immutable-publication` (commit `37c3cd4`). `Void::Core::Publication<T>` added: retainable immutable snapshots with epoch/revision compare-and-publish and last-reader release. Branch: https://git.faumaray.com/Void/Library/src/branch/issue/5-immutable-publication Merge request: https://git.faumaray.com/Void/Library/pulls/new/issue/5-immutable-publication
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Void/Library#5