Repository navigation
docs(guide): clarify reference counts on unshared fields - #1812
Merged
Lorenzobattistela merged 2 commits intoOct 21, 2026
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Lorenzobattistela
approved these changes
Oct 21, 2026
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.
Problem and fix
The runtime paragraph's
+-only wording can make an affine value appear free of reference-counting costs. Clarify the concrete trigger: copying a value of a datatype makes all its nodes count their fields, including nodes used without sharing.Related to #1559; its runtime optimization and performance questions stay open.
Blast radius
Only the runtime paragraph in
guide/GUIDE.md. No executable code, API, compiler output, gate, cap, or paper changes.Regression evidence
Reduced parsed hot/cold programs on current main confirm that copying a reusable
Listmakes the same affineList<U32>builder emit field-sealing calls. This agrees with the compiler's datatype-wide analysis and BendRT's stored-field explanation. This is a documentation correction; no runtime regression is changed.Checks
repo-gatepasses; the guide is 7,996/8,000 tokens with CI-pinnedttok0.3.git diff --checkpasses; both reduced native examples pass their expected outputs.Validation limits
Local checks ran on macOS arm64. No current slowdown or allocation count was measured; the original #1559 literal-input examples no longer distinguish field-sealing stores on current main. No Linux, Metal/CUDA, or cluster tests were run for this prose-only change.