Transactions: a guide in Part II, and reference pages for (std stm)

Part II's section on concurrency has a new subsection, "Shared state:
atomics and transactions": when to share data instead of sending it,
locations and atomically, the rules for a transaction function, waiting
with tx-retry, a transaction as an event in a choose, tx-or-else, the
queue, map and counter, and what transactions cost. The examples use
the card game and were compiled and run.

Part III has a section on std/stm that links the four reference pages:
(std stm), and (std stm queue), (std stm map) and (std stm counter) in
a directory of their own, as (text xml) has.

🤖 Generated with [ECA](https://eca.dev)

Co-Authored-By: eca-agent <git@eca.dev>
This commit is contained in:
Linus Björnstam 2026-10-09 14:05:10 +02:00
parent 82adbb03a4
commit 56a5e7c141
7 changed files with 122 additions and 0 deletions

2
modules/std/stm/index.sz Normal file
View file

@ -0,0 +1,2 @@
(meta (title "std stm: transactional data structures")
(sort title))