Skip to content

M2 spine: grow compiler_lib_spine_smoke to 567 units (#1056) - #1794

Merged
PurHur merged 2 commits into
masterfrom
agent/stdlib-m2-spine-batch2
May 24, 2026
Merged

M2 spine: grow compiler_lib_spine_smoke to 567 units (#1056)#1794
PurHur merged 2 commits into
masterfrom
agent/stdlib-m2-spine-batch2

Conversation

@PurHur

@PurHur PurHur commented May 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • Grows the M2 self-host spine bundle compiler_lib_spine_smoke from 435 → 567 require_once units (~97% of the 586-file vm.php inventory toward North Star 2).
  • Adds remaining ext/standard wrappers plus Vm* helpers (filesystem, session, filter, preg, hash, ini) with AOT-lint compatibility fixes across stdlib and JIT helpers.
  • Fixes PHPDoc/type patterns that broke LLVM AOT lint (UnionType, variadic spreads, @return Value … prose, matchswitch in VmIni/VmString).

Deferred from explicit bundle (still Module-registered)

VmString, VmSplAutoload, VmPregReplaceCallback, spl_autoload_register, sort/usort/uasort, array_pop/shift/search/combine/multisort, shell_exec — AOT lint blockers (#1467 follow-ups).

Test plan

  • vendor/bin/phpunit --filter BootstrapSelfhostBundleTest (Docker, LLVM env)
  • php bin/compile.php -l test/selfhost/compiler_lib_spine_smoke/main.php
  • ./script/ci-fast.sh --filter BootstrapSelfhostBundleTest

Closes #1056

Made with Cursor

PurHur and others added 2 commits May 24, 2026 22:50
…r 2 (#1056)

Add ext/standard inventory wrappers and Vm* helpers to the self-host spine bundle
(435→567, ~97% of vm.php inventory). Fix AOT-lint blockers: union types, variadic
spreads, PHPDoc type noise, match→switch, and JIT @return docblocks.

Explicitly deferred from bundle lint (still registered in Module): VmString,
VmSplAutoload, VmPregReplaceCallback, spl_autoload_register, sort/usort/uasort,
array_pop/shift/search/combine/multisort, shell_exec.

Closes #1056

Co-authored-by: Cursor <cursoragent@cursor.com>
Resolve doc and JitTempnam conflicts; keep 567-unit spine bundle.

Co-authored-by: Cursor <cursoragent@cursor.com>
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.

🔄 North Star 2: Compiler fully compiles itself (living tracker)

1 participant