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,32 @@
(define-library (sx signals)
(export
make-signal
signal?
signal-value
signal-set-value!
signal-subscribers
signal-add-sub!
signal-remove-sub!
signal-deps
signal-set-deps!
signal
deref
reset!
swap!
computed
effect
*batch-depth*
*batch-queue*
batch
notify-subscribers
flush-subscribers
dispose-computed
with-island-scope
register-in-scope)
(begin
(define
make-signal
(fn
@@ -193,3 +222,9 @@
(let
((collector (scope-peek "sx-island-scope")))
(when collector (cek-call collector (list disposable))))))
)) ;; end define-library
;; Re-export to global namespace for backward compatibility
(import (sx signals))