Repository navigation
docs: refresh repository statistics - #554
Merged
Merged
Conversation
Chapter 5 declares `struct Sample` once in 5.1 and then uses it in six later
blocks. Every one of those was failing, and repeating the struct six times
would bury what each block is showing.
`preamble=<path>` names a file whose declarations precede the block when it
compiles. The prose has already shown the reader the struct, so the checker
sees it too. The preamble sits outside the harness, since wrapping it inside
a synthesized main would nest a struct in a function body; there is a test
for that specifically. A missing preamble file is a failure rather than a
silent skip.
The key was removed from the info string in an earlier PR precisely because
it did nothing. It is back now that it does something.
Its limit is worth recording: a preamble supplies declarations, not locals.
Module statics have to be primitives, fixed arrays of primitives, or ptr<T>,
so a chapter's running `let first: Sample = ...` cannot live in one. Three
blocks in chapter 5 need that and stay in the ledger.
Three Book examples also relied on definitions from an earlier block on the
same page and now carry them:
- 04-functions 4.3 calls clamp, written in 4.2
- 05-records mean4 reads samples[i].value, with Sample from 5.1
- 08-types declares a trait and impl over Point, which the page never
declared at all
Examples: verified 430 to 436, unverified 255 to 249.
Unit 1498 passed, links and coverage clean.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The stats bot's branch had been force-pushed from an older main, so it was carrying a reversal of this session's documentation work rather than an update. Deleted it and regenerated from current main instead; the workflow recreates the branch on its next run. Documentation pages 173 to 172 (the retired core library page), tests 432 to 452 files, and the Python compiler 70 to 72 modules. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
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.
Housekeeping.
The stats bot branch
chore/repository-statshad been force-pushed from an oldermain, so its diff against currentmainwas a reversal of this session's documentation work: it would have undone the tutorial fixes, thestring.flowextern change, and the checker updates.Deleted that branch and regenerated the statistics from current
maininstead. The stats workflow recreates the branch from whatevermainis on its next run, so nothing is lost.What moved:
.py+.flow)The documentation page count drops by one because #545 retired
docs/library/core.md, which documented 75 functions that do not exist. The test and compiler counts rise from the checkers added across this series.Validation
scripts/check_doc_links.pycleanscripts/sync_version.py --checkin sync