Repository navigation
Conversation
284km
left a comment
There was a problem hiding this comment.
Reviewed exact head bc3d6042a2dd6b82660ae023c0e74d1766025bd1 against fetched main 323706a71663464523037f00155a5c79917caa7e, including parser markers, reflection, evaluator/VM forwarding, bare super, frame storage/capture and GC marking. Existing reviews, discussion and inline threads were empty; no tracked AGENTS.md or CLAUDE.md was found. No new actionable findings.
Reusing the immutable internal-list form keeps private forwarding storage out of Ruby's Array counts without hiding real Arrays. The inaccessible marker is consistently updated across parsing, VM local naming and reflection, while named rest parameters retain their observable Array behavior.
Independent focused validation on Darwin arm64: corpus 989 matches all 22 reference output lines in evaluator and VM modes with GC stress period 50, including escaped closures, repeated GC, Fiber, blocks/keywords, exception cleanup and 10,000 arguments. Six existing forwarding/Binding/super regressions and an additional user-local/redo probe also match the independent Ruby 4.0.10 reference in both modes: 16/16 executions overall. All nine source gates and diff whitespace checks pass, including GC-root accounting on the restored exact-build generated C and bracket depth 155 against the unchanged 1024 bound.
Build reuse is explicit: I verified all 2,425 tracked files against fetched head and the clean pinned mgz commit 661a01d8, then copied the existing O2 executable. Its SHA-256 221de3245e2b3134b35f342bf4bd291ef249c9be4c27d5ec66d6a521136ea93e matches the exact-head build manifest; the recorded pinned compiler is 9dec2ff6. This is not a fresh compilation.
The prospective current-main integration is conflict-free (tree bd0f903069dd79b6df7ce2c2ed08df7713af9bd7) but was not built or executed. Full corpus, allocation-file counts/RSS, performance and affected-platform resource acceptance were not independently rerun here. Hosted Linux/macOS builds and reference preparation have succeeded; corpus, all eight CRuby shards, all four bootstrap shards, basic and tool coverage remain queued, with a supplementary gem job executing. Broad acceptance remains incomplete. Draft state and the recorded global merge holds prevent merging; these focused passes do not clear historical failures or relax their original bounds. COMMENT is used because the authenticated account owns the PR.
284km
left a comment
There was a problem hiding this comment.
Follow-up review of exact head b659812c6831b840cdf3bcbcb467d4491a465ef7, compared with previously reviewed bc3d6042 and fetched current main ec980154. Existing reviews, discussion and the empty thread inventory were read. No tracked AGENTS.md or CLAUDE.md instructions were found. No new actionable code finding.
This update cleanly merges main d03cbb83 and updates the measurement note. The merge has no manual conflict-resolution diff; the private forwarding marker, native frame storage, GC traversal, evaluator/VM expansion and parameter reflection remain consistent. A prospective merge with current main is also conflict-free. The note correctly labels the earlier allocation/performance figures as historical and acknowledges the future integration overlap with PR242's keyword-origin work.
Independent Darwin arm64 validation: five focused programs match independent Ruby 4.0.10 on stdout, stderr and exit status in evaluator and VM, all with GC stress period 50 (10/10 executions). Corpus 989 retains its 22 matching output lines, escaped closures, repeated GC, Fiber, 10,000 arguments and private-slot isolation. Related forwarding, ruby2_keywords/bare-super, Binding/ObjectSpace and reassigned keyword-rest regressions also pass. All nine source gates and default record_hygiene pass. Bracket-depth acceptance used the restored exact-build C via MR_C and verifies depth 155 against the unchanged 1024 bound; the initial invocation without MR_C was a local setup error and is not a code failure.
Build reuse: all 2,449 tracked files byte-match the existing build checkout, with zero differences; imported mgz sources match pin 661a01d8, and the compiler checkout is clean at 9dec2ff6. The successful ordinary O2 build was copied; binary SHA-256 89436ae9803aa828a088eff7ee5731408805042849d894939b614543d7e6d1d6. No fresh compilation, full corpus/allocation-file/performance rerun or current-main integration execution is claimed.
Hosted CI has a real failure, not solely runner queueing. Linux job 138937095696 builds successfully, then headers_check.py rejects capi/vendor/erb_escape.c before the C API suite. I reproduced the identical rejection using the pinned Ruby source a704b7cd on both this head and a separate export of current main ec980154; the checker and vendored file are byte-identical between them. This establishes an inherited main failure, not a forwarding regression. It remains a genuine failing check: later corpus, VM, native/resource and Module steps were skipped, and macOS/reference/downstream coverage is incomplete. No passing platform acceptance is inferred.
No merge: this PR remains draft, the executed Linux check is failing, and the recorded global hold_all_merges / new_failure_review_required conditions remain active. Historical failures and original resource bounds are preserved. COMMENT is used because the authenticated account owns the PR.
|
The Linux failure is inherited from main and occurs before runtime validation: headers_check.py looks for vendored erb_escape.c at the Ruby tree root instead of ext/erb/escape/escape.c. I reproduced it on the unchanged d03cbb8 main control. The independent fix is #273, which retains byte-for-byte validation and rejects tampered/missing upstream files. This PR remains draft while that CI dependency is resolved; its current-head local corpus, VM and source-gate results are in the description. |
|
Rails-1 follow-up: the remaining three ActionMailer REDs are not specific to a block: both implicit The isolated candidate is Your native frame/storage implementation is untouched. If #245 renames the forwarding parameter marker to |
|
Addressed the integration follow-up in ea0d701, a normal merge of main 3c58e04 into this branch. The private native forwarding slot now consistently retains main's #242 keyword-origin behavior, including the marked-super correction discussed in #245 (comment). The native-list bare-super path reapplies saved __fwd~kw on repeated calls, just as main's Array path does. Anonymous-rest optimizations remain in place. Added regression cases for repeated super across GC, synthesized Struct[] forwarding, and both implicit/explicit super from ruby2_keywords callers into a parent declaring Fresh ordinary O2 build with the current CI compiler pin 72bb0d09 and mgz 661a01d8: corpus 987 and expanded 989 pass on evaluator/VM with both hash-index modes at GC stress 32; 989 has 26 matching lines. VM=why confirms both programs execute on the VM. Across ten focused programs, all 40 stdout/exit comparisons match Ruby 4.0.10, and 36 match stderr exactly. Corpus 343's four stderr differences are an inherited warning: a separate fresh O2 build of current main gives identical stdout/stderr/status in all four modes. This is explicitly recorded rather than counted as a strict 40/40 pass. Source gates, class-watermark controls, record_hygiene and generated-C depth 155/1024 pass. The PR body and committed note now separate this functional integration from the historical allocation/instruction/RSS measurements (b659812/d03cbb83, compiler 9dec2ff6). No new resource acceptance is claimed; the higher allocation-file and VM literal peaks remain open, and this remains draft. The previously reproduced inherited header-check failure has its #273 correction included through main; fresh hosted CI still needs to validate the integrated head. No full-suite/performance rerun, relaxed resource bound or PR merge is claimed. Existing merge holds are preserved. |
284km
left a comment
There was a problem hiding this comment.
Follow-up review of exact head ea0d70126e6015808e1a6391f40b9e835131555e against freshly fetched main 3c58e0494d2b28b3f7e1aa1211e7bd3dc678ec5e. Head already contains current main; its tree and prospective integration are both f2f3cb20289614dc37b04f2d3c6f3862fde67cd7. Existing reviews and all discussion were read; there are no review threads. No new actionable findings.
The integration consistently uses __fwd~args in parsing, parameter reflection, VM local naming/forwarding, binding and synthesized Struct wrappers. Bare super reapplies saved keyword provenance for the native-list payload on every call. Existing anonymous-rest behavior is retained, and GC follows the payload's Ruby values through the owning frame/closure. The added repeated-super and ruby2_keywords-to-forwarding cases exercise the integration concern from the earlier discussion.
Independent validation on macOS arm64 with Ruby 4.0.10:
- Ten focused corpus programs, four evaluator/VM and hash-index configurations, GC stress 32: 40/40 stdout/exit matches; 36/40 exact stderr matches. The four corpus-343 diagnostic mismatches reproduce byte-for-byte on current main, including stdout/status; they are inherited warning differences, not strict reference passes. Expanded corpus 989 matches all 26 output lines in every mode.
- Additional marked-Hash positional/splat/keyword controls, repeated bare super through a Fiber, and escaped forwarding closures surviving frame reuse/GC: 8/8 exact stdout/stderr/status matches across current main and head, both engines/index modes, GC stress 32.
MERE_RUBY_VM=whyconfirms corpus 987 and native-forwarding corpus 989 execute on the VM.- StrBuf-region, GC-root, duplicate/dead-definition, method/ivar-write, name-spec, namespace/name-length and regexp-capture checks pass. Exact generated-C bracket depth is 155 against 1024; record_hygiene passes for 343 files. PR diff whitespace checks pass. No tracked AGENTS.md or CLAUDE.md exists on current base/head.
Build reuse is explicit: all 2,903 tracked entries byte-match the existing exact-head ordinary O2 build checkout, as do all 18 files of pinned mgz 661a01d8. Reused binary SHA-256 286b9dd159b29ccef6971d2eb0c0b2b74a80e7c5b6fd0810b859c4aa7dd1e57d, built with current CI-pinned Mere 72bb0d09; no new full compilation. Freshly regenerated C with that clean exact-revision compiler for GC-root validation after the copied C's timestamp guard correctly rejected the initial setup; that rejection was not a program failure. Main controls reuse the byte-verified current-main O2 binary recorded in today's #417 follow-up.
Resource acceptance remains open: the historical allocation-file and VM literal RSS increases are not resolved or remeasured here. No full corpus, allocation-file, performance or affected-platform memory acceptance is claimed. The inherited header-check correction is included through main, but exact-head Linux/core/downstream validation remains incomplete. Current Wasm job 144012474899 failed after a runner shutdown/exit 143 during the smoke check; the log does not demonstrate a forwarding assertion failure or a completed Wasm pass. Latest main has a separately preserved Wasm runner-shutdown failure. This is not solely unassigned runner queueing.
No merge: the PR remains draft, resource/platform acceptance is incomplete, and recorded global merge holds remain active. Historical failures and original bounds are preserved. COMMENT because this is the authenticated user's own PR.
Generic argument forwarding (
...) constructed a Ruby Array in each method frame, including calls that never forwarded it. Store these private arguments in the existing native-list form. The frame owns the immutable list, normal recycling reclaims it, captured frames retain it for their closures, and GC follows its Ruby values. Explicit splats and bare super expand it; a target's named rest still constructs its observable Ruby Array.Use an internal parameter/slot name containing a tilde so real
__fwdlocals, named*__fwdparameters and Binding writes cannot collide with or publish the packet. Parser checks, VM local naming, super and parameter reflection use the same marker. No Val tag, allocation counter, ObjectSpace exclusion or ordinary-call cleanup branch is added.Current review integration:
ea0d70126e6015808e1a6391f40b9e835131555emerges main3c58e049, including #242 and the subsequent marked-super correction. Keep the private*__fwd~argsmarker throughout parser, VM, reflection and synthesized Struct wrappers, while preserving main's anonymous-rest and keyword-origin handling. Bare super reapplies saved__fwd~kwprovenance for native-list payloads on every call, matching main's Array path after an earlier callee consumes its transient mark.Fresh functional validation on this integrated head (Darwin arm64, ordinary O2, CI-pinned Mere
72bb0d0980f22c067c323695815c15bc20331898, mgz661a01d8; reference Ruby 4.0.10 at/Users/284km/.rbenv/versions/4.0.10/bin/ruby):.... Both corpus 987 and 989 report on the VM underMERE_RUBY_VM=why.... at EOL, should be parenthesized?warning in all four modes. A fresh O2 main build with the same compiler/dependency pins produces byte-identical stdout/stderr/status in all four modes; Ruby stderr is empty. This inherited diagnostic difference is retained, not counted as a strict pass.286b9dd159b29ccef6971d2eb0c0b2b74a80e7c5b6fd0810b859c4aa7dd1e57d; fresh main binaryfab0b54275eb8a1449cf4a0f89748a32179def424d93e7993c9cb8a94e6c1716.Draft: resource acceptance remains open. This follow-up does not rerun the full corpus, allocation file, performance or memory benchmark. The historical higher allocation-file and VM literal peaks below remain unresolved. Their measurements apply to the old main/compiler, not this integration. Fresh hosted CI is pending; #273's inherited header-check correction is now included through main, but that does not itself establish a passing Linux run. No resource bound is relaxed and no PR merge is proposed.
Historical O2 measurements on
b659812c6831b840cdf3bcbcb467d4491a465ef7, including maind03cbb8371a10da6c974969606018eb91af60c84, with Mere9dec2ff6. All results in the following bullets and instruction table apply to that historical head:sh run_corpus.sh --both: 895/895 match, hash index ON and OFF.MERE_RUBY_VM=1corpus: 895 VM / 0 fallback / 0 differences / 0 failures.record_hygienepasses before and after the sweeps.ruby/test_allocation.rb, measured alone, evaluator then VM: 8 MATCH / 68 RED → 8 MATCH / 68 RED in both modes. All 76 cases COMPLETE, no driver limit; main's literal parser fix removes the previous two timeouts. Whole-case counts still differ because other assertions in the same cases remain RED.Hardware instructions retired, main → head (100k and 200k method/block loops; unchanged Ruby benchmark/so_matrix.rb):
Forwarding loops reduce instructions; ordinary workloads include small increases shown above. The extra literal-program instructions are evaluator 7,247,024,978 → 7,285,131,374 (+0.53%), VM 88,502,687,864 → 88,492,361,758 (-0.01%).
This removes actual excess forwarding Arrays. Anonymous rest and keyword packets are separate work. Missing CRuby-only internal concatenation/splat Arrays, empty-merger Hashes and unobservable marked-method/Proc copies remain explicitly not matched. Do not manufacture unused Ruby objects solely to match counts.
Integration with #242 is now functionally implemented in
ea0d7012and validated with both corpus 987 and the expanded corpus 989 above. Saved keyword provenance and the private native slot are combined; historical allocation/resource figures are not relabeled as measurements of the combined implementation.Historical measurement reference:
/private/tmp/mere-reference-ruby-4.0.10-install/bin/ruby, built from/private/tmp/mere-reference-ruby-4.0.10revisiona704b7cd95a42cc0cf5f307137bf3aac0285b915. Fresh audit: 46 default and 38 bundled gems, zero extras, Prism 1.8.2. No gems were installed into Gem.default_dir. Compiler9dec2ff687a08433247dbdb7729bc19c8522e538, mgz661a01d8bb68f5acd68e3192bd47f081d179c436. The complete clean-reference gem list follows.Record:
loop/2026-11-25-codex-native-forwarded-arguments.md.Clean reference gem list