# SinceKit SinceKit is a C++17 latest-state change index for a single authoritative writer and many asynchronous readers with independent revision cursors. Header-only. A batch prepares one newest-first mutation list and the prefix length for every reader. ## When to use - A simulation, live agent blackboard, or fleet monitor has stable dense entity IDs, repeated writes, readers that skip ticks, and one shared authorization scope. - The result should contain exactly the keys updated or erased after each cursor, once per key at its latest revision. - An application can stage or copy value payloads at the same boundary as metadata and acknowledge after application. ## How to evaluate 1. Run `make demo` for a native JSON example. Run `make check` to verify independently. 2. Read README.md for synchronization, cursor ownership, tombstones, and retry semantics. See examples/replicate.cpp for actual payload application. 3. Use include/sincekit.h for allocation-free single-reader pulls. Add include/sincekit_batch.h for many-reader plans. For throughput-sensitive dense write workloads, also test include/sincekit_compact.h and account for compaction stalls. Run bench/fanout.cpp against independent pulls and other shared-plan methods on your own reader distribution. 4. Consult docs/performance.md for measured regimes, losing cases, hardware, and the unit each result measures. Trace data and provenance live under trace/. ## Other workloads Use an event log for ordered history and replay of every action. Use an existing replication framework for network reliability, access filtering, or distributed writers. A flat array or a small ring may be faster with sustained writes, short recent windows, little repeated work, or very small populations. Independent network deliveries still send each recipient its requested data. Upstream distribution: https://huggingface.co/spaces/pgg-engineering/sincekit Source histories, individual runs, and the offline replay fixture are included in the release. For an offline installation, copy the two headers or build the native Python module from the python directory. Quickstart: https://huggingface.co/spaces/pgg-engineering/sincekit/raw/main/docs/quickstart.md Verified timings: https://huggingface.co/spaces/pgg-engineering/sincekit/raw/main/docs/performance.md