Skip to content

docs: retire the core library page, which documented an API that does not exist - #545

Merged
godofecht merged 1 commit into
mainfrom
docs/retire-fictional-core-page
Aug 18, 2026
Merged

godofecht merged 1 commit into
mainfrom
docs/retire-fictional-core-page

Conversation

@godofecht

@godofecht godofecht commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

Found by the coverage and example checkers from #540 and #543, then confirmed by hand.

The finding

docs/library/core.md documents 78 functions. 75 of them exist nowhere in lib/, src/, runtime/, compiler/ or examples/:

functions documented in docs/library/core.md: 78
  exist somewhere in lib/ src/ runtime/ compiler/ : 2
  found nowhere                                  : 76

gpu_init, gpu_launch_kernel, gpu_synchronize, metal_is_available, metal_execute_shader, get_platform, get_last_error and seventy others were never built.

The page does not read as speculative. It opens:

The FLOW core library provides fundamental types, operations, and runtime functions for the language.
FLOW includes a comprehensive GPU runtime system with support for multiple backends

And it sat in the sidebar under Standard library, so a reader looking for the core API met it first. It dates from an early Metal-GPU commit and was never reconciled with what shipped.

It is also written in a syntax Flow does not have: [i32] and [any] for arrays where the language uses array<T>, and str where the language uses string. That is why 15 of its 24 examples could not compile, making it the second-largest cluster of broken examples in the repository.

I checked whether this was systemic. It is not: every other page under docs/library/ is prose with few or no signatures, and none of them show this pattern.

Why delete rather than rewrite

Two pages already do the job properly:

  • library/stdlib-api.md is generated from lib/stdlib on every wiki build and covers 111 real modules
  • library/stdlib-reference.md is the hand-written guide

Rewriting core.md against the real stdlib would have duplicated both, and the page's structure is organised around subsystems that do not exist.

What went with it

Reference Action
docs/nav.json sidebar entry "Core" removed
docs/README.md link removed
docs/library/tiny-pointers.md "Related stdlib" link repointed at stdlib-api.md
lib/stdlib/gpu_memory.flow comment naming the page rewritten
docs/coverage.json: keyword:enum, keyword:function remapped to LANGUAGE_SPEC.md

Effect

Examples go from 774 blocks to 750; unverified from 375 to 359.

Validation

  • Unit suite 1491 passed, 2 skipped
  • ./flow test --tier2 --strict 677/677, covering the lib/stdlib edit
  • wiki_nav.py consistent, check_doc_links.py clean including all 122 fragments, check_doc_coverage.py reports every feature still has a home
  • Wiki rebuilds, check_wiki_links.py clean

… not exist

docs/library/core.md listed 78 functions. 75 of them exist nowhere in lib/,
src/, runtime/, compiler/ or examples/. gpu_init, gpu_launch_kernel,
metal_is_available, metal_execute_shader and the rest were never built.

The page read as authoritative, opening "The FLOW core library provides
fundamental types, operations, and runtime functions for the language" and
"FLOW includes a comprehensive GPU runtime system with support for multiple
backends". It sat in the sidebar under Standard library, so a reader looking
for the core API found it first. It dates from an early Metal-GPU commit and
was never reconciled with what shipped.

It was also written in a syntax the language does not have: `[i32]` and
`[any]` for arrays where Flow uses `array<T>`, and `str` where Flow uses
`string`. That is why 15 of its examples could not compile.

Two pages already do this job properly. library/stdlib-api.md is generated
from lib/stdlib on every wiki build and covers 111 real modules;
library/stdlib-reference.md is the hand-written guide. Rewriting core.md
against the real stdlib would have duplicated both.

References removed along with it: the sidebar entry, the docs/README.md
link, a "Related stdlib" link in library/tiny-pointers.md, and a comment in
lib/stdlib/gpu_memory.flow that pointed readers at the page for naming.
The two features coverage.json mapped to it move to LANGUAGE_SPEC.md.

Examples: 774 blocks to 750, unverified 375 to 359.

Unit 1491 passed, tier-2 677/677, nav, links, anchors and coverage all clean.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@godofecht
godofecht merged commit c86ca47 into main Aug 18, 2026
19 checks passed
@godofecht
godofecht deleted the docs/retire-fictional-core-page branch August 18, 2026 10:10
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