Skip to content

spec §16.2b.3: in-place resources are pinned by default; movable is the facade's claim (D54) - #1276

Merged
ehartford merged 1 commit into
mainfrom
spec-pinned-in-place-resources
Sep 22, 2026
Merged

ehartford merged 1 commit into
mainfrom
spec-pinned-in-place-resources

Conversation

@ehartford

Copy link
Copy Markdown
Contributor

Eric's ruling of 2026-09-22 (address stability of in-place resources), landed as the spec sentences in §16.2b.3 with the register matched to the surrounding text, plus decisions.md D54 recording the reasoning (pinned by default because the unstated default must be the safe one; heap cell, never an immovable type; destroy then free; cell exists from construction; borrows point into the cell; pinning covers the representation's own storage only).

Docs-only: spec-inventory-check green; no build/fixpoint/test (docs are not battery inputs). The compiler is NON-COMPLIANT until #1275 (stage 4b) renders the heap cell and the movable clause — that rework is in progress on the same PR.

… the facade's claim (D54)

Eric's ruling, 2026-09-22. The compiler cannot infer whether `init` stores
a back-pointer, and the costs are asymmetric: a needlessly pinned resource
costs one heap allocation; a needlessly movable one is silent memory
corruption after the first move. The pinned rendering is a heap cell owned
by the resource value — no immovable type category — with destruction before
the cell is freed, the cell present from construction, borrows pointing into
the cell, and pinning covering the representation's own storage only.
decisions.md D54 records the reasoning; the D51 ruling document is silent on
address stability and is not amended.
@ehartford
ehartford merged commit efd1637 into main Sep 22, 2026
5 checks passed
@ehartford
ehartford deleted the spec-pinned-in-place-resources branch September 22, 2026 13:37
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