Repository navigation
docs: MIGRATION-1.8.md, renderer 2.0 setup, perf records and bench harness from the 1.8 branch - #93
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 insrc/changes.What's in it
User docs (from 1.8, checked against what
mainships)docs/essentials/render.mdanddocs/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,fontEnginesandstage.shManagerare listed as removed in renderer 2.0.docs/deploy/build.md(new, added to the sidebar): build with terserreduce_funcs: false, with the Vite, webpack and CLI forms and the measured effect.docs/flow/layout.md: flex text is measured withmeasure()before the frame; points atMIGRATION-1.8.md.docs/primitives/virtual.md:factorScalehas no effect since 1.7.docs/primitives/useHold.md: the release handler isonEnterRelease.docs/essentials/effects.md: ashadertuple's type must be registered first. 1.8's text said Solid registersroundeditself. Neither Solid nor renderer 2.0.7 does, so it now namesrenderer.registerShaderTypeandregisterDefaultShaders(renderer).MIGRATION-1.8.md(new): what #89–#92 change for apps upgrading from 1.7.x, adapted from 1.8'sMIGRATION-1.7.md.Statesreturning plain arrays, and B2;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..gitignorealready says ("summaries are committed"). 1.8 had force-added about 18,000 lines of them.docs/superpowers/: the design, the Phase 2 plan, the Checkpoint 2 report and the renderer proposals. The rewrite brief is already onmain.Bench
bench/demo/: demo-app route timing, route checks and bundle copies.bench/src/arm-v2.ts) and harness fixes..gitignore: addsbench/.results-tmpand.superpowers.Not brought over: 1.8's
package.jsonandeslint.config.jschanges.mainalready has the exports and the renderer version, and it uses oxlint.Still open from the Checkpoint 2 report (decisions, not code)
textLayoutCacheSizedefault: 250 today; the report suggests 512.Config.fontWeightAlias: whether the default should gainnormal: ''.Testing
npm run lintandnpm run tscpass.npm test: 767 passed, 2 skipped (unchanged, since no code changed).bench/**/*.mjspassesnode --check. The bench itself was not run.🤖 Generated with Claude Code