Recompile all 26 .sxbc with define-library wrappers + fix eval/JIT

All 26 browser modules recompiled with define-library/import forms.
Compilation works without vm-compile-adapter (JIT pre-compilation
hangs with library wrappers in some JIT paths — skipped for now,
CEK compilation is ~34s total).

Key fixes:
- eval command: import-aware loop that handles define-library/import
  locally without touching the Python bridge pipe (avoids deadlock)
- compile-modules.js: skip vm-compile-adapter, bump timeout

2621/2621 OCaml tests passing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-04 00:08:00 +00:00
parent ac772ac357
commit 7b4c918773
48 changed files with 8884 additions and 5899 deletions

View File

@@ -1,3 +1,22 @@
(define-library (web adapter-sx)
(export
render-to-sx
aser
aser-list
aser-reserialize
aser-fragment
aser-call
aser-expand-component
SPECIAL_FORM_NAMES
HO_FORM_NAMES
special-form?
ho-form?
aser-special
eval-case-aser)
(begin
(define
render-to-sx
:effects (render)
@@ -570,3 +589,9 @@
(= match-val (trampoline (eval-expr test env)))
(aser body env)
(eval-case-aser match-val (slice clauses 2) env)))))))
)) ;; end define-library
;; Re-export to global namespace for backward compatibility
(import (web adapter-sx))