Skip to content

docs: MIGRATION-1.8.md, renderer 2.0 setup, perf records and bench harness from the 1.8 branch - #93

Merged
chiefcll merged 3 commits into
mainfrom
docs/1.8-docs-bench
Nov 20, 2026
Merged

chiefcll merged 3 commits into
mainfrom
docs/1.8-docs-bench

Conversation

@chiefcll

Copy link
Copy Markdown
Contributor

The last part of the 1.8 branch: docs, the migration guide and the benchmark harness. It follows #89, #90, #91 and #92, which ported the code. Docs and bench/ only; nothing in src/ changes.

What's in it

User docs (from 1.8, checked against what main ships)

  • docs/essentials/render.md and docs/articles/basics.md: renderer 2.0 setup. There is no render or font engine to set. Load an SDF font for each family and register shader types. renderEngine, fontEngines and stage.shManager are listed as removed in renderer 2.0.
  • docs/deploy/build.md (new, added to the sidebar): build with terser reduce_funcs: false, with the Vite, webpack and CLI forms and the measured effect.
  • docs/flow/layout.md: flex text is measured with measure() before the frame; points at MIGRATION-1.8.md.
  • docs/primitives/virtual.md: factorScale has no effect since 1.7.
  • docs/primitives/useHold.md: the release handler is onEnterRelease.
  • docs/essentials/effects.md: a shader tuple's type must be registered first. 1.8's text said Solid registers rounded itself. Neither Solid nor renderer 2.0.7 does, so it now names renderer.registerShaderType and registerDefaultShaders(renderer).

MIGRATION-1.8.md (new): what #89–#92 change for apps upgrading from 1.7.x, adapted from 1.8's MIGRATION-1.7.md.

  • Covers:
    • the single flex engine and flex fixes B5–B12;
    • text sized before the frame and laid out eagerly;
    • one reactive flush per focus change;
    • States returning plain arrays, and B2;
    • diffed state application and per-object style caching;
    • the Row/Column transition cache;
    • B19 draw order and B20;
    • the terser build setting.
  • Left out because 1.7.x already shipped them: the renderer 2.0 breaks, B1, B3, B4, B13–B17, B21, and the Virtual/VirtualGrid layout changes.
  • Each entry keeps "what changes" and the upgrade step. The demo-app file references and Checkpoint notes are dropped, and the measurements stay in docs/perf/log.md.

Perf records and specs

  • docs/perf/: the methodology, the log, the Phase 0 profiles and summaries, the Checkpoint 2 series summary, route timings, the survey verification and the text-flex alternatives study.
    • The raw per-run JSON files are left out, as .gitignore already says ("summaries are committed"). 1.8 had force-added about 18,000 lines of them.
    • The log now opens with a note that this work was named 1.7 on the branch and shipped as 1.8.
  • docs/superpowers/: the design, the Phase 2 plan, the Checkpoint 2 report and the renderer proposals. The rewrite brief is already on main.

Bench

  • bench/demo/: demo-app route timing, route checks and bundle copies.
  • The renderer v2 arm (bench/src/arm-v2.ts) and harness fixes.
  • .gitignore: adds bench/.results-tmp and .superpowers.

Not brought over: 1.8's package.json and eslint.config.js changes. main already has the exports and the renderer version, and it uses oxlint.

Still open from the Checkpoint 2 report (decisions, not code)

  • R3 (renderer): faster line breaking, held back for 101 B gzip over the renderer's size ceiling.
  • textLayoutCacheSize default: 250 today; the report suggests 512.
  • A container destroyed in the same run is still laid out, as in 1.6.4. The fix was only drafted.
  • Config.fontWeightAlias: whether the default should gain normal: ''.

Testing

  • npm run lint and npm run tsc pass.
  • npm test: 767 passed, 2 skipped (unchanged, since no code changed).
  • Each bench/**/*.mjs passes node --check. The bench itself was not run.

🤖 Generated with Claude Code

chiefcll and others added 3 commits November 20, 2026 12:11
…frame

From the 1.8 branch (46ba87e, 1ff8d59, a0808a0, 1e344f0, 7d2d71c and the
stream T layout.md entries):
- render.md and basics.md: no render or font engine to set; load an SDF
  font per family and register shader types; renderEngine, fontEngines and
  stage.shManager listed as removed in renderer 2.0.
- deploy/build.md (new, in the sidebar): terser `reduce_funcs: false`.
- layout.md: flex text is measured with `measure()` before the frame;
  points at MIGRATION-1.8.md.
- virtual.md: factorScale has no effect since 1.7.
- useHold.md: the release handler is `onEnterRelease`.
- effects.md: a `shader` tuple's type must be registered. 1.8 said Solid
  registers `rounded`, which it does not: it names registerShaderType and
  registerDefaultShaders instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
What #89-#92 changed for apps, adapted from the 1.8 branch's
MIGRATION-1.7.md: one flex engine and the flex fixes B5-B12, text sized
before the frame and laid out eagerly, one reactive flush per focus change,
States changes and B2, diffed state application and per-object style
caching, the Row/Column transition cache, B19 draw order, B20, and the
terser build setting.

Left out, as 1.7.x already shipped them: the renderer 2.0 breaks, the
renderEngine/fontEngines/shManager absorption, B1, B3, B4, B13-B17, B21
and the Virtual/VirtualGrid layout changes. Each entry keeps what changes
and the upgrade step; the measurements stay in docs/perf/log.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the 1.8 branch:
- docs/perf: the methodology (README), the log, the Phase 0 profiles and
  summaries, the Checkpoint 2 series summary, the route timings, the survey
  verification and the text-flex alternatives study. The raw per-run JSON
  records are left out, as .gitignore already says; their summaries are
  committed.
- docs/superpowers: the design, the Phase 2 plan, the Checkpoint 2 report
  and the renderer proposals (the rewrite brief is already on main).
- bench: the demo-app route timing and bundle scripts (bench/demo), the
  renderer v2 arm, and the harness fixes.
- .gitignore: bench/.results-tmp and .superpowers.

The log notes that this work was named 1.7 on the branch and shipped as 1.8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chiefcll
chiefcll merged commit 066ad8d into main Nov 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant