Repository navigation
Scheme counts each case clause; Dart break/continue are boundaries, not branches (Part of #6097) - #6700
Conversation
…to structural_boundaries (Part of #6097) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…t of #6097) Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
No description provided. |
|
PR #6700 @ 1a208ae: 1 failed check(s) == shard 1 (1669449 LOC) (failure) -- real |
…gine change (Part of #5781) Drift came from main (#6700: Scheme case clauses, Dart break/continue), not this PR. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…rt of #5781) (#6704) * Backfill the crystal language cost record: engine and corpus rows (Part of #5781) Co-Authored-By: Claude Sonnet 5.5 <[email protected]> * Re-bless doom-rosetta goldens dartdoom and doom-scheme for #6700's engine change (Part of #5781) Drift came from main (#6700: Scheme case clauses, Dart break/continue), not this PR. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> --------- Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…6708) Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Sonnet 5.5 <[email protected]>
…prose (follow-up to #6097) (#7147) * DOOM study: rescan at 6c7c6c1, one scan for every table, refresh the prose (follow-up to #6097) Rescanned all 44 licensed ports at main 6c7c6c1 (42/44 PERFECT; callgraph passes everywhere after #7019) and regenerated the sfs subway table on the same scans, so no table mixes scan dates any more. Prose: drop the defect and "not done" text that #6700/#6703/#6705/#6749 fixed, state the sqldoom/cssdoom #5876 ruling, explain the median-0 complexity of the JVM/Rust ports (method size, measured), fix the dist range and date line. study_report.py: the scorecard's last column was "functions now" but counts only ctags-language files (doom-fx read 1, dartdoom 0); relabel it and say so. Co-Authored-By: Claude Opus 5.5 <[email protected]> * DOOM study: read wiring similarity against its floor; cross-subsystem wiring (follow-up to #6097) Co-Authored-By: Claude Opus 5.5 <[email protected]> * DOOM study: subway table reads cross wiring over a shuffled null; negative controls study_report.py shows sfs's cross_wiring, its shuffled-placement null and the gap when subway.csv has them (sfs PR #21), sorted by the gap; old CSVs keep the old table. Prose: raw wiring flatters (doomf77 0.91 is +0.05 over null); doom-scheme and gore keep cross wiring +0.51/+0.50 over null like chocolate-doom; JVM/C#/Fortran ports and reimplementations show none. Negative controls (WinQuake, Quake II, Lua at the same engine) give the null levels; graph-shape distance does not separate them. Co-Authored-By: Claude Opus 5.5 <[email protected]> * DOOM study: restructure as findings first, tables as appendices; twin cross-check, controls, blind placement Findings lead (twins 93% precise vs source text at 6c7c6c1; textscreen shared sideways; Scheme/Go wiring above chance and blind placement kappa 0.50/0.31/0.26; names kept, bodies rewritten; extraction accuracy), then what this does not show, then Appendices A-G (the generated tables, unchanged) and a new hand-quoted Appendix H (twin cross-check, descent, unrelated programs). Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Joe Esquibel <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Part of #6097 (DOOM study: branch-count disagreements against the C original).
Checklist: done [c:125793a0]
Checklist: done [c:a3dcdd68]
What changed
languages/scheme.py): eachcaseclause head[(d ...) body](a bracketed datum list: a lone symbol, or literals first) is one branch arm, as C counts eachcase X:. Acondtest ([(null? x) ..],[(f a b) ..]) is not matched.languages/dart.py):break/continueleavebranchforstructural_boundariesbesidereturn, asdocs/branch_rule_contract.md(branch still counts the break/continue family: the unconditional transfers #2822 deferred #2832) did for the 12 other languages and C has them.docs/branch_rule_contract.mdrecords both;tests/extraction/languages/test_branch_arms_6097.pypins them. Golden masters re-blessed (both legs,golden-lock.sh).Class / Sibling gaps
Class: a language's
branchcount disagrees with C's for the same construct (clause arms uncounted, or unconditional transfers counted). Handled: schemecasebracket clauses, dartbreak/continue.Sibling gaps (member, status, why not here):
yield break), perl (next/last/redo), php, powershell, rust, swift: still list break/continue-style transfers inbranch(contract says boundaries). One language file each plus its own bless: over the 5-file limit; check each language'sstructural_boundariesfirst.break|continuein a different rule (notbranch); out of scope.((1 2) ..)case clauses: measured on the Chez/Racket crucible corpus, 24 true / 12 false hits at line start, so not added; recall there needs acase-anchored mechanism.condclauses andelse/multi-symbol datum lists[(a b) ..]are not counted (C countselse if,default); a separate decision.Facts checked
doom-schemeclause heads: 281 of 351 true case clauses matched, 8 false (case-lambda heads); all 351 are bracket style. On the Chez/Racket corpus: 321 true, 269 false (mostly syntax-case/syntax-rules clauses, also arms).scope_check.py --expect scheme,dart: dart 1386 and scheme 321 diffs per leg, plus 55 repo-wide rollup fields derived from them; nothing in another language.pr_gates --fast7/7 and--ratchets9/9 pass (ruff local 0.16 vs CI 0.17.1 warning; the gate used the pinned 0.17.1). Tree-wide guard tests (278) pass.Remaining slices
Checklist lines [c:26a6195d], [c:901b4871], [c:7aa491be], [c:b68f4dd4], [c:5b53dc02] untouched.
Lessons for agents
None.
🤖 Generated with Claude Code