pcbjam/web/standalone/src/wasm
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Viktor Vaczi 3f09a46ff5 jspi: migration phases 0-7 — build knob, scheduler shim, test successor suite
Toolchain: emsdk 6.0.6 (versions.sh; cache-hash keys on it). Build knob
PCBJAM_ASYNC_BACKEND=jspi|asyncify: build-kicad-target.sh links editors with
-sJSPI + -sJSPI_EXPORTS=@scripts/common/jspi-exports.txt + --pre-js
jspi-scheduler.js (no DYNCALLS, no post-link asyncify pipeline); wx build
stamps the backend and forces clean on flip or unknown provenance;
docker/build.sh passes the knob, seeds the emscripten ports cache from the
volume every launch, jspi postprocess = patch-env-shim only.

scripts/common/shims/jspi-scheduler.js: the JSPI successor scheduler —
token-wait registry, resume turnstile (one armed resume between engine
re-entries, SP swaps only at microtask boundaries), green-region spill
stacks (16-aligned tops), S1 embind mutator FIFO lane + parker wraps, S6
shutdown, libctx integration hooks (suspend/end/quarantine + g_current
arm/clear), SuspendError attributor, lost-wake + stuck-window watchdogs,
__wxWaitDump observability.

Embind: PARKER registrations get emscripten::async() under PCBJAM_JSPI
(wasm/bindings/pcbjam_async_policy.h). nanosleep yields route via the shim.

Tests: tests/asyncify -> tests/jspi successor suite (jspi-stack red/green
shadow-stack battery, jspi-coroutine MiniCoro harness, suspend-races
semantic scenarios + __wxWaitDump books coherence); projects jspi-firefox/
jspi-chrome (asyncify-webkit retired — no JSPI in WebKit); unconditional
Firefox JSPI pref; guard-beacons -> wait-beacons (+wxScheduler/libctxJspi
families); Makefile.wasm links test apps against JSPI with the shim as a
tracked link prerequisite.

Web: WasmTool setRo await + __wxWaitDump forensics, open-flow contained
promise, scheduler-shim.test.ts retargeted (8 green).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NDeBaKKhQztd8KiVtHuyXr
2026-08-13 07:06:24 +02:00
..
collab fix(collab): one bad wire entry no longer discards the whole local-edit batch 2026-07-31 15:30:55 +02:00
libs perf(libs): realtime only for libs the open document references 2026-07-31 15:43:11 +02:00
themes comments-ux: figma bubble pins, floating panel, seen/reactions/mentions UI, theme follow (0001 A–E + 0002) 2026-07-24 13:21:22 +02:00
boot.test.ts fix(editor): boot fan-out — parallel presync/doc-room/files, lib-editor enumerate gate, My Symbols 409 (load-ux 0003) 2026-07-30 10:37:12 +02:00
boot.ts feat(editor): build provenance in every log — app chunk + wasm ETag + head hash 2026-08-02 08:18:12 +02:00
constants.ts eeschema simulator: lazy ngspice_service worker — static sharedspice (XSPICE registry + CIDER), init_dll ifdef, e2e both engines 2026-07-19 15:59:21 +02:00
fatal-screen.ts feat(editor): console copy button + collapsible DOM-floor console + one blue family 2026-08-01 19:50:01 +02:00
gerber-set.test.ts fix(load): close the dispatch-interlock hole at open + open gerbers from a project route 2026-07-30 19:08:57 +02:00
global.d.ts feat(editor): File→Quit navigates back to the project page 2026-07-08 18:19:24 +02:00
kicad-runner.test.ts fix(editor): boot fan-out — parallel presync/doc-room/files, lib-editor enumerate gate, My Symbols 409 (load-ux 0003) 2026-07-30 10:37:12 +02:00
kicad-runner.ts perf(libs): realtime only for libs the open document references 2026-07-31 15:43:11 +02:00
load-trace.test.ts chore(editor): load timeline with heap tracking, dumped on any fatal 2026-07-31 11:47:14 +02:00
load-trace.ts chore(editor): load timeline with heap tracking, dumped on any fatal 2026-07-31 11:47:14 +02:00
mailbox.test.ts mailbox S1: shim delivery tick, embind audit, app-side WasmMailbox 2026-08-10 10:14:12 +02:00
mailbox.ts mailbox S1: shim delivery tick, embind audit, app-side WasmMailbox 2026-08-10 10:14:12 +02:00
ngspice-service.ts eeschema simulator: lazy ngspice_service worker — static sharedspice (XSPICE registry + CIDER), init_dll ifdef, e2e both engines 2026-07-19 15:59:21 +02:00
ngspice-worker.js eeschema simulator: lazy ngspice_service worker — static sharedspice (XSPICE registry + CIDER), init_dll ifdef, e2e both engines 2026-07-19 15:59:21 +02:00
occ-service.ts feat(occ): ship board 3D model bodies with STEP/GLB exports (3d-models 0007) 2026-07-10 09:26:07 +02:00
occ-worker.js feat(occ): ship board 3D model bodies with STEP/GLB exports (3d-models 0007) 2026-07-10 09:26:07 +02:00
open-flow.test.ts fix(load): open-settle gate — kicadOpenFileBusy probe + collab entry guards for the parked-open embind trap (indirect call signature mismatch) + deterministic collab-load-fuzz e2e 2026-07-30 14:17:48 +02:00
open-flow.ts jspi: migration phases 0-7 — build knob, scheduler shim, test successor suite 2026-08-13 07:06:24 +02:00
save-flow.test.ts feat(ysync): lib_symbols travel + layout save-sync (miss 08), TS hot-path opts (12), diff-on-rebind adopt (13) — doc 18 2026-07-06 08:57:58 +02:00
save-flow.ts feat(ysync): lib_symbols travel + layout save-sync (miss 08), TS hot-path opts (12), diff-on-rebind adopt (13) — doc 18 2026-07-06 08:57:58 +02:00
scheduler-shim.test.ts jspi: migration phases 0-7 — build knob, scheduler shim, test successor suite 2026-08-13 07:06:24 +02:00
terminal-error.test.ts feat(editor): report uncaught errors to Better Stack 2026-08-03 12:24:30 +02:00
terminal-error.ts feat(editor): report uncaught errors to Better Stack 2026-08-03 12:24:30 +02:00
touch-gestures.test.ts feat(mobile): canvas-only mobile mode — pinch-zoom/pan/tap gestures + chrome-less editors 2026-07-09 16:15:37 +02:00
touch-gestures.ts feat(mobile): canvas-only mobile mode — pinch-zoom/pan/tap gestures + chrome-less editors 2026-07-09 16:15:37 +02:00
wasm-assets.test.ts feat: standalone download-consent gate + truthful loading states (standalone-load-ux 0001/0002) 2026-07-29 07:48:25 +02:00
wasm-assets.ts feat: standalone download-consent gate + truthful loading states (standalone-load-ux 0001/0002) 2026-07-29 07:48:25 +02:00