From 2e834bdc5b94d2b3df5a2d778d221df491e7b9e3 Mon Sep 17 00:00:00 2001 From: w Date: Tue, 25 Aug 2026 23:32:05 -0400 Subject: [PATCH 01/57] feat(pvm): run framebuffer products through Wasm --- README.md | 22 +- THIRD_PARTY_NOTICES.md | 10 +- apps/host/package.json | 7 +- .../tests/functional/fixtures/pvm/LICENSE-MIT | 21 + .../fixtures/pvm/framebuffer-test.polkavm | Bin 0 -> 488 bytes .../functional/fixtures/pvm/manifest.json | 16 + apps/host/tests/functional/pvm.spec.ts | 113 ++ apps/host/tests/performance/pvm-doom.spec.ts | 110 ++ apps/sandbox/package.json | 8 +- .../public/pvm-runtime/LICENSE-MPL-2.0 | 373 +++++ .../public/pvm-runtime/PolkaVM-LICENSE-APACHE | 201 +++ .../public/pvm-runtime/PolkaVM-LICENSE-MIT | 23 + apps/sandbox/public/pvm-runtime/SOURCE | 18 + .../public/pvm-runtime/epoca-pvm-host.wasm | Bin 0 -> 1491193 bytes .../public/pvm-runtime/pvm-wasm-translated.js | 940 ++++++++++++ .../pvm-runtime/pvm-wasm-worker-entry.js | 321 +++++ .../public/pvm-runtime/pvm-wasm-worker.js | 1262 +++++++++++++++++ apps/sandbox/src/app-sw.ts | 7 + apps/sandbox/src/main.ts | 31 +- apps/sandbox/src/pvm-runtime.test.ts | 78 + apps/sandbox/src/pvm-runtime.ts | 890 ++++++++++++ apps/sandbox/tsconfig.json | 3 + bun.lock | 5 + scripts/build-pvm-worker.ts | 21 + 24 files changed, 4468 insertions(+), 12 deletions(-) create mode 100644 apps/host/tests/functional/fixtures/pvm/LICENSE-MIT create mode 100644 apps/host/tests/functional/fixtures/pvm/framebuffer-test.polkavm create mode 100644 apps/host/tests/functional/fixtures/pvm/manifest.json create mode 100644 apps/host/tests/functional/pvm.spec.ts create mode 100644 apps/host/tests/performance/pvm-doom.spec.ts create mode 100644 apps/sandbox/public/pvm-runtime/LICENSE-MPL-2.0 create mode 100644 apps/sandbox/public/pvm-runtime/PolkaVM-LICENSE-APACHE create mode 100644 apps/sandbox/public/pvm-runtime/PolkaVM-LICENSE-MIT create mode 100644 apps/sandbox/public/pvm-runtime/SOURCE create mode 100644 apps/sandbox/public/pvm-runtime/epoca-pvm-host.wasm create mode 100644 apps/sandbox/public/pvm-runtime/pvm-wasm-translated.js create mode 100644 apps/sandbox/public/pvm-runtime/pvm-wasm-worker-entry.js create mode 100644 apps/sandbox/public/pvm-runtime/pvm-wasm-worker.js create mode 100644 apps/sandbox/src/pvm-runtime.test.ts create mode 100644 apps/sandbox/src/pvm-runtime.ts create mode 100755 scripts/build-pvm-worker.ts diff --git a/README.md b/README.md index 55e9e835..22feb615 100644 --- a/README.md +++ b/README.md @@ -62,6 +62,7 @@ Each product gets its own `