Parallel by default
Stigi already enforces a single writer for every piece of data, even in single-threaded code. That is the hard part of parallelism, done up front.
So parallel code in Stigi is deterministic:
- Thread pools and structured scopes. A
whenscope takes several resources at once, with no raw locks. - Completion-based I/O.
io_uringoperations are linear tickets that must be completed. - Actors and remote handlers. Same capabilities, same checks.
Every one of these gives results byte-identical to running the same code in sequence. The compiler can even run pure calls over disjoint owned data in parallel by itself, and check the result bit for bit against the sequential run.
Determinism everywhere
Section titled “Determinism everywhere”Determinism is not only about threads. Every verdict of the door, every output and every reply to an agent is deterministic too. Same image, same question, same bytes.