Re-run the papercuts against Ghost HEAD, and record what was fixed - #4
Merged
Merged
Conversation
Every Ghost item in docs/papercuts.md re-executed against a build of the interpreter at ghost c31c79d, since the document's whole value is that it reports what the interpreter does rather than what SPEC.md says. Three no longer reproduce - outward assignment, loop-variable capture and block scoping, fixed upstream as one decision - along with the `list.length` hazard. They are marked fixed and kept, not deleted, since the architecture here is shaped around them and the record of why matters more than the current list. Block scoping was the one worth checking rather than assuming: this document names `Dock.arrange()` as depending on the old behaviour, and Ghost documents the change as breaking. It is unaffected - `arrange()` binds `area` and `taken` before the `switch`, so the destructuring inside each case rebinds them through the walking assignment that landed in the same change. The full 132-case suite passes against that build. The remaining items now carry the SPEC section Ghost tracks each one under and the priority it was given there, so this document and Ghost's §15 stay readable against each other. CLAUDE.md keeps the three fixed rules, marked, because they still hold against a released Ghost (the fixes are post-1.0.0-beta.3) and writing code that works under both costs nothing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EGsNMRiKwWmvoizxD619zA
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.
Overview
docs/papercuts.mdopens by saying every behaviour in it was executed against a build of the interpreter rather than inferred fromSPEC.md. That is the document's whole value, and it decays — Ghost has since fixed some of these. So every Ghost item was re-executed against a build atghost c31c79d.Three no longer reproduce, along with the
list.lengthhazard:list.lengthhands back the functionproperty errorThey are marked fixed and kept, not deleted — the architecture here is shaped around them, and the record of why is worth more than a current list. Everything else still reproduces exactly as written,
and/orshort-circuiting included.Changes
Added
1.0.0-beta.3, so code running against a released Ghost still needs the workarounds this repository is built around.SPEC.mdsection Ghost tracks it under and the priority Ghost assigned it, so this document and Ghost's new §15 read against each other.Changed
**Fixed.**note explaining what Ghost did, so their bodies are no longer left in the present tense contradicting the heading.CLAUDE.mdkeeps the three fixed rules and marks them, rather than dropping them — they still hold against a released Ghost, and writing code that works under both costs nothing. State on instances andmake…factories are correct either way. There is a note to drop them once this repository requires a Ghost carrying the fixes.Additional context
Block scoping was the one worth checking rather than assuming. This document names
Dock.arrange()as depending on the old behaviour, and Ghost documents the change as the one breaking change in that batch. It turns out to be unaffected:arrange()bindsareaandtakenbefore theswitch, so the[taken, area] = ...inside each case rebinds them through the walking assignment that landed in the same change, rather than declaring case-local names. Ghost paired the two deliberately, and this is what that pairing buys.ghost test.gs— 132 passed, 0 failed — against that build.What would not survive is a name whose first assignment is inside a branch (
if (c) { result = 1 }then readingresult), which this codebase does not do anywhere.Companion PR: ghost-language/ghost#177 records the four items this report raised that Ghost's
SPEC.mdhad no entry for, and ranks the open ones.🤖 Generated with Claude Code
https://claude.ai/code/session_01EGsNMRiKwWmvoizxD619zA
Generated by Claude Code