Skip to content

Release 0.12.0 - #597

Merged
godofecht merged 1 commit into
mainfrom
bump-0.12.0
Aug 19, 2026
Merged

godofecht merged 1 commit into
mainfrom
bump-0.12.0

Conversation

@godofecht

@godofecht godofecht commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

0.11.1 → 0.12.0 via scripts/sync_version.py --set 0.12.0, plus the changelog entry.

Why minor rather than patch

Two things beyond bug fixes:

What is in it

Added: range algebra. sum(0..1000 step 3 | 0..1000 step 5) folds to 233168 at parse time.

Fixed, wrong answers — all five compiled cleanly and produced wrong output:

#573 returning array<T, N> returned garbage; all 25 stdlib functions doing so were affected, scales.flow entirely non-functional
#575 nested array<array<T, N>, M> was an array of pointers into a dead frame
#594 defer ran before the return value was read; a nested return skipped defers; both backends
#577 string concatenation inferred a numeric type, so "i64=" + v printed a pointer
#577 x as T had no inferred type, so (buf as string) formatted the pointer with %d

Fixed, misleading diagnostics: #571 (a type reported as failing to match itself), #561 (a capability used as a value).

Documentation: #574 (audio/README.md named an API that was never written), #582 (from= locks a block to the file it is copied from). Unverified examples 235 → 221.

The pattern worth noting

Six of seven defects came from the documentation examples, not from the test suite. ./flow test --tier2 covers tests/ and examples/, and nothing in either returns a fixed-size array, concatenates a string with an i64, or reads a value past a defer. The docs exercised paths nothing else did.

Verification

Check Result
pytest tests/ 1681 passed, 6 skipped
sync_version.py --check all version references in sync at 0.12.0
check_doc_examples.py --check-ledger no new unverified, 221
check_doc_links.py all links and fragments resolve

Range algebra is the new language feature. The rest is seven defects, five of
them silent: the compiler accepted the program, emitted C that built without
error, and produced the wrong answer.

Six of the seven were found by compiling and running the code in the
documentation. ./flow test --tier2 covers tests/ and examples/, and nothing
in either returns a fixed-size array, concatenates a string with an i64, or
reads a value past a defer.

Minor rather than patch: sum() gained `|` and `&` over ranges, and the
capability-as-value diagnostic is a new error in --lenient, which was
previously warnings-only.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@godofecht
godofecht merged commit 9e66848 into main Aug 19, 2026
21 checks passed
@godofecht
godofecht deleted the bump-0.12.0 branch August 19, 2026 18:16
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