@zakkster/lite-signal 1.9.0-alpha → 1.9.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/README.md +17 -2
- package/Signal.js +1 -1
- package/llms.txt +2 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,38 @@ All notable changes to `@zakkster/lite-signal` are documented here.
|
|
|
4
4
|
Format: [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
5
5
|
This project follows [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [1.9.0-alpha.1] -- 2026-09-20
|
|
8
|
+
|
|
9
|
+
Verification + docs increment over `1.9.0-alpha`; **no engine change past the
|
|
10
|
+
version banner comment** (`Signal.js` byte-identical, banner line only). Migration
|
|
11
|
+
7 of the campaign: ports the standing perf-gate lane from the canonical 1.5.2
|
|
12
|
+
line onto this engine.
|
|
13
|
+
|
|
14
|
+
### Added -- perf-gate lane (`@zakkster/lite-perf-gate`, devDependency only)
|
|
15
|
+
|
|
16
|
+
- `test/37-perf-gate.test.mjs` + `npm run test:gate`
|
|
17
|
+
(`node --expose-gc --max-semi-space-size=4 --test test/37-perf-gate.test.mjs`),
|
|
18
|
+
chained into `test:all` after `test:zgc`. Where the existing `test:zgc` lane
|
|
19
|
+
(lite-gc-profiler) is the suite's bespoke zero-GC harness, this lane wires
|
|
20
|
+
`@zakkster/lite-perf-gate`'s `zgcSuite` as a standing, self-validating verdict:
|
|
21
|
+
five signals (scavenges / engine counters / retainedKB / oldGen /
|
|
22
|
+
arrayBuffersKB), two scales (N and k*N), positive+negative+large detector
|
|
23
|
+
controls on every run, and permanent `mustFail` negative controls.
|
|
24
|
+
- Seven claimed-zero steady-state scenarios, each anchored to its `llms.txt`
|
|
25
|
+
claim: `set-propagate` (1 signal -> 8 computeds -> 1 effect, sync flush),
|
|
26
|
+
`computed-cache-hit`, `computed-recompute-stable`, `effect-rerun-stable`,
|
|
27
|
+
`peek`, `batch-flush` (3 sets/batch), `box-set-propagate`. `statsOf` reads each
|
|
28
|
+
scenario's isolated registry ledger; `counters` pins
|
|
29
|
+
`totalAllocations`/`totalDisposals`/`poolGrowths` at 0-delta.
|
|
30
|
+
- Two `mustFail` controls that MUST trip the gate: a per-op `{x,y,z,w}` object
|
|
31
|
+
allocator, and the documented `signal()`+dispose churn (264 B/op). lite-perf-gate
|
|
32
|
+
DEFAULT thresholds, untouched (maxScavenges 2, maxRetainedKB 64, maxOldGen 0,
|
|
33
|
+
maxArrayBuffersKB 64).
|
|
34
|
+
- **Result on this engine (node v26.x): green and REAL, 10/10** -- all seven
|
|
35
|
+
claimed-zero paths pass under defaults, both `mustFail` controls trip. Plain
|
|
36
|
+
`npm test` is undisturbed (the in-glob file emits one loud named skip unless
|
|
37
|
+
BOTH `--expose-gc` and `--max-semi-space-size=4` are present).
|
|
38
|
+
|
|
7
39
|
## [1.9.0-alpha] -- 2026-09-06
|
|
8
40
|
|
|
9
41
|
The **verification-infrastructure parity cut** on the rebuilt 1.9 line, and the
|
package/README.md
CHANGED
|
@@ -862,16 +862,31 @@ npm test
|
|
|
862
862
|
|
|
863
863
|
If these fail, something allocates in the hot path and we want to find it before publish.
|
|
864
864
|
|
|
865
|
-
Beyond the in-suite checks,
|
|
865
|
+
Beyond the in-suite checks, dedicated lanes gate the same claim harder:
|
|
866
866
|
`npm run test:zgc` (+ `test:zgc:report`) runs the `test/zgc/` scenario gate under
|
|
867
867
|
a 4 MB semi-space (steady-state propagation must force ZERO scavenges over 1.6M
|
|
868
868
|
updates; churn must never grow the pool), and `npm run test:hardening` (+
|
|
869
869
|
`test:harness`) runs the `test/ProfilerTests` and `harness/ProfilerTools`
|
|
870
|
-
sub-packages -- the profiler-toolchain pairing suites.
|
|
870
|
+
sub-packages -- the profiler-toolchain pairing suites. As of 1.9.0-alpha.1,
|
|
871
|
+
`npm run test:gate` adds a second, library-owned zero-GC judge:
|
|
872
|
+
**`test/37-perf-gate.test.mjs`**, built on **`@zakkster/lite-perf-gate`**
|
|
873
|
+
(devDependency only). Its `zgcSuite` watches five signals (scavenges / engine
|
|
874
|
+
`stats()` counters / retainedKB / oldGen / arrayBuffersKB) at two scales with
|
|
875
|
+
positive+negative+large detector controls, over seven claimed-zero steady-state
|
|
876
|
+
scenarios (`set-propagate`, `computed-cache-hit`, `computed-recompute-stable`,
|
|
877
|
+
`effect-rerun-stable`, `peek`, `batch-flush`, `box-set-propagate`) plus two
|
|
878
|
+
permanent `mustFail` controls (a per-op `{x,y,z,w}` allocator and the documented
|
|
879
|
+
`signal()`+dispose 264 B/op churn). Thresholds are lite-perf-gate DEFAULTS
|
|
880
|
+
(maxScavenges 2, maxRetainedKB 64, maxOldGen 0, maxArrayBuffersKB 64) -- a
|
|
881
|
+
claimed-zero path that cannot meet defaults is a finding, not a config knob. It
|
|
882
|
+
runs REAL only under both `--expose-gc` and `--max-semi-space-size=4` (the script
|
|
883
|
+
sets both); plain `npm test` / `test:gc` emit one loud named skip. All three
|
|
884
|
+
lanes are chained by `test:all`.
|
|
871
885
|
|
|
872
886
|
```bash
|
|
873
887
|
npm run test:gc
|
|
874
888
|
npm run test:zgc && npm run test:zgc:report
|
|
889
|
+
npm run test:gate # lite-perf-gate judge; both flags set by the script
|
|
875
890
|
```
|
|
876
891
|
|
|
877
892
|
### Tier 3 -- Performance (comparative benchmark)
|
package/Signal.js
CHANGED
package/llms.txt
CHANGED
|
@@ -53,7 +53,8 @@ triggering write -- no `queueMicrotask`, no promises, no scheduler ticks.
|
|
|
53
53
|
|
|
54
54
|
## Version notes
|
|
55
55
|
|
|
56
|
-
- **1.9.0-alpha** (current): the
|
|
56
|
+
- **1.9.0-alpha.1** (current): verification + docs increment -- no engine change past the banner comment (`Signal.js` byte-identical, banner line only). Ports the standing **perf-gate lane** from the canonical 1.5.2 line: `test/37-perf-gate.test.mjs` + `npm run test:gate` (`node --expose-gc --max-semi-space-size=4`), chained into `test:all` after `test:zgc`. Wires **`@zakkster/lite-perf-gate`** (devDependency only) as a second, library-owned zero-GC judge beside the bespoke `test:zgc` harness: `zgcSuite` watches five signals (scavenges / engine `stats()` counters / retainedKB / oldGen / arrayBuffersKB) at two scales with positive+negative+large detector controls, over seven claimed-zero steady-state scenarios (set-propagate, computed-cache-hit, computed-recompute-stable, effect-rerun-stable, peek, batch-flush, box-set-propagate) plus two permanent `mustFail` controls (per-op `{x,y,z,w}` allocator; the documented `signal()`+dispose 264 B/op churn). Thresholds are lite-perf-gate DEFAULTS, untouched. Green and REAL on this engine (10/10); the in-glob file emits one loud named skip unless both flags are set, so plain `npm test` is undisturbed. See CHANGELOG `[1.9.0-alpha.1]`.
|
|
57
|
+
- **1.9.0-alpha**: the **verification-infrastructure parity cut** on the
|
|
57
58
|
rebuilt 1.9 line -- the engine is byte-identical to preview.6 past the banner
|
|
58
59
|
(still the 1.8.0 base + the five existence-guarded `Symbol.dispose` stamp
|
|
59
60
|
sites). Forward-ports the full 1.8.0-beta audit infrastructure: the torture
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zakkster/lite-signal",
|
|
3
|
-
"version": "1.9.0-alpha",
|
|
3
|
+
"version": "1.9.0-alpha.1",
|
|
4
4
|
"description": "Zero-GC reactive graph. Monomorphic object pool, versioned push-pull propagation, 32-bit modular versioning. Built for hot paths and long-running processes.",
|
|
5
5
|
"author": "Zahary Shinikchiev <shinikchiev@yahoo.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,7 +35,8 @@
|
|
|
35
35
|
"test:harness": "npm --prefix harness/ProfilerTools test",
|
|
36
36
|
"test:zgc": "node --expose-gc --max-semi-space-size=4 --test 'test/zgc/*.test.mjs'",
|
|
37
37
|
"test:zgc:report": "node --expose-gc test/zgc/zero-gc-gate.mjs",
|
|
38
|
-
"test:
|
|
38
|
+
"test:gate": "node --expose-gc --max-semi-space-size=4 --test test/37-perf-gate.test.mjs",
|
|
39
|
+
"test:all": "npm test && npm run test:hardening && npm run test:harness && npm run test:zgc && npm run test:gate",
|
|
39
40
|
"bench": "node --expose-gc bench/benchmark.mjs",
|
|
40
41
|
"harness": "node harness/run.mjs",
|
|
41
42
|
"harness:smoke": "node harness/run.mjs smoke",
|
|
@@ -92,6 +93,7 @@
|
|
|
92
93
|
"devDependencies": {
|
|
93
94
|
"@zakkster/lite-devtools": "^1.6.2",
|
|
94
95
|
"@zakkster/lite-gc-profiler": "^1.16.0",
|
|
96
|
+
"@zakkster/lite-perf-gate": "^1.4.2",
|
|
95
97
|
"@zakkster/lite-profiler": "^1.1.0",
|
|
96
98
|
"@zakkster/lite-profiler-signal": "^1.2.0",
|
|
97
99
|
"@zakkster/lite-signal": "^1.3.0 || >=1.4.0-beta.0 || >=1.6.0-preview.0",
|