aboutsummaryrefslogtreecommitdiffstats
path: root/core/module-save.c
Commit message (Collapse)AuthorAgeFilesLines
* Keep the numbers heard as a list: a save logs only the ones it changedeunhhu2026-09-281-58/+133
| | | | | | | | | | | | The last number heard from each source was written whole into the links value at every save, and counted in two bytes: a node that heard from more than 65,535 sources stored a wrong count, and each save cost as many bytes as there were sources. The numbers are now a runtime-owned list {source, seq} in order of source, stored as a list state is (its image "0heard" and its changes in the log), changed with the event that delivers, so a failed save takes them back with it. Links stored before (PLK1) move their numbers to the list at a start and are stored again without them (PLK2).
* Log list changes compact: varint positions and integers, the rest bit for biteunhhu2026-09-281-2/+2
|
* Write list images a chunk at a time, and keep the log within the lists' sizeeunhhu2026-09-281-19/+48
|
* Keep lists as images and a log of their changes, checkpointed off the ownereunhhu2026-09-281-123/+376
|
* Save a list as its items and a journal of its changes sinceeunhhu2026-09-281-40/+109
|
* Lay Pure out as a core with the parts selected around iteunhhu2026-09-271-0/+488
The app model, the tree store and the HTTP host lived in prototypes/connections among the earlier document runtime, the store was known only by its format's name, and Vega compiled six Pure sources by path. Now, as the README's principle has it: core/ runtime, flow and the app model (module*.c), with what the core asks of storage (state.h, store.h) store/ the tree store (PURETRE3, PUREREC1) serve/ pure-serve: HTTP host, outbound delivery, JSON in place cli/ pure-run, pure-edit-module A top-level make builds libpure.a (app model and store, for hosts to link) and the hosts; make check runs the store's and the app model's tests. The earlier runtime still builds from prototypes/connections against core/ and store/ (check, check-tree and check-core pass). Design 009 records the rule: parts by role behind libraries; git repositories split by coupling, so the store stays here while its contract moves with the core, and Vega stays apart.