Skip to content

Reify#11

Merged
withinboredom merged 4 commits into
bottledcode:reifyfrom
henderkes:reify
Jun 17, 2026
Merged

Reify#11
withinboredom merged 4 commits into
bottledcode:reifyfrom
henderkes:reify

Conversation

@henderkes

Copy link
Copy Markdown

No description provided.

henderkes and others added 4 commits June 15, 2026 18:17
Specialize concrete turbofish calls at compile time: Graph\dfs::<string,int>()
compiles to a direct by-name call to the mangled monomorph and drops the
per-call ZEND_VERIFY_GENERIC_ARGUMENTS opcode, making it byte-identical to a
non-generic call. Monomorphs are synthesized and registered on first
reference; the runtime verify/bind path remains as the fallback for
non-concrete / inference-only call sites.

Also: persist the generic value-check plan into opcache SHM, and gate
destroy_op_array's monomorph-table scan on ZEND_ACC2_HAS_GENERIC_CALL_OPS so
non-generic code is not taxed.

PSL\Graph bench (aarch64, opcache, two-point Ir/iter): reified-vs-erased
overhead 6.51%->4.14% (all) / 5.72%->4.19% (query); wall 9.04%->5.89% (no-JIT).
Erased baseline unchanged; generics tax -37%. Digests identical across
no-JIT/tracing/-n, generics .phpt 0 new regressions, valgrind-clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 98a30b91-2662-4578-b050-8a694cccdb7a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@withinboredom withinboredom merged commit 313ebe8 into bottledcode:reify Jun 17, 2026
3 checks passed
@henderkes henderkes deleted the reify branch June 17, 2026 13:16
@henderkes henderkes restored the reify branch June 17, 2026 13: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.

2 participants