wasm-idle 1.0.8 → 1.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -26
- package/dist/playground/applicationAssets.js +18 -0
- package/dist/playground/assetBridge.d.ts +1 -1
- package/dist/playground/assetBridge.js +172 -117
- package/dist/playground/assets.d.ts +74 -4
- package/dist/playground/assets.js +127 -4
- package/dist/playground/cachedClang.js +44 -5
- package/dist/playground/clang.d.ts +5 -0
- package/dist/playground/clang.js +100 -0
- package/dist/playground/clangWorkerProtocol.d.ts +13 -1
- package/dist/playground/fennel.d.ts +9 -0
- package/dist/playground/fennel.js +30 -0
- package/dist/playground/fennelBootstrap.d.ts +31 -0
- package/dist/playground/fennelBootstrap.js +118 -0
- package/dist/playground/grain.d.ts +9 -0
- package/dist/playground/grain.js +127 -0
- package/dist/playground/hy.d.ts +21 -0
- package/dist/playground/hy.js +24 -0
- package/dist/playground/index.d.ts +1 -1
- package/dist/playground/index.js +49 -0
- package/dist/playground/lua.d.ts +19 -0
- package/dist/playground/lua.js +64 -39
- package/dist/playground/objectivec.d.ts +3 -1
- package/dist/playground/objectivec.js +6 -2
- package/dist/playground/options.js +1 -1
- package/dist/playground/postgresql.d.ts +36 -0
- package/dist/playground/postgresql.js +543 -0
- package/dist/playground/python.d.ts +5 -0
- package/dist/playground/python.js +13 -0
- package/dist/playground/rescript.d.ts +5 -0
- package/dist/playground/rescript.js +58 -0
- package/dist/playground/rescriptPreflight.d.ts +26 -0
- package/dist/playground/rescriptPreflight.js +381 -0
- package/dist/playground/runtimeAssetCache.d.ts +6 -0
- package/dist/playground/runtimeAssetCache.js +109 -0
- package/dist/playground/staticRuntimeModuleVersion.d.ts +1 -1
- package/dist/playground/staticRuntimeModuleVersion.js +1 -1
- package/dist/playground/staticRuntimePreflightExecute.d.ts +2 -1
- package/dist/playground/staticRuntimePreflightExecute.js +9 -0
- package/dist/playground/staticRuntimePreflightProtocol.d.ts +1 -1
- package/dist/playground/v.d.ts +46 -0
- package/dist/playground/v.js +703 -0
- package/dist/playground/wasmBashVersion.d.ts +25 -25
- package/dist/playground/wasmBashVersion.js +12 -12
- package/dist/playground/wasmElixirVersion.d.ts +9 -9
- package/dist/playground/wasmElixirVersion.js +9 -9
- package/dist/playground/wasmFennelVersion.d.ts +23 -0
- package/dist/playground/wasmFennelVersion.js +16 -0
- package/dist/playground/wasmGrainVersion.d.ts +24 -0
- package/dist/playground/wasmGrainVersion.js +25 -0
- package/dist/playground/wasmHaskellVersion.d.ts +1 -1
- package/dist/playground/wasmHaskellVersion.js +1 -1
- package/dist/playground/wasmHyVersion.d.ts +7 -0
- package/dist/playground/wasmHyVersion.js +15 -0
- package/dist/playground/wasmLispVersion.d.ts +1 -1
- package/dist/playground/wasmLispVersion.js +1 -1
- package/dist/playground/wasmOcamlVersion.d.ts +4 -4
- package/dist/playground/wasmOcamlVersion.js +3 -3
- package/dist/playground/wasmPrologVersion.d.ts +19 -19
- package/dist/playground/wasmPrologVersion.js +18 -18
- package/dist/playground/wasmReScriptVersion.d.ts +20 -0
- package/dist/playground/wasmReScriptVersion.js +20 -0
- package/dist/playground/wasmTypeScriptVersion.d.ts +5 -5
- package/dist/playground/wasmTypeScriptVersion.js +5 -5
- package/dist/playground/worker/cachedClangCompile.js +44 -5
- package/dist/playground/worker/clang.js +44 -11
- package/dist/playground/worker/clangStreaming.js +6 -0
- package/dist/playground/worker/lua.js +48 -11
- package/dist/playground/worker/postgresql.d.ts +1 -0
- package/dist/playground/worker/postgresql.js +205 -0
- package/dist/playground/worker/python.js +113 -12
- package/dist/playground/worker/runtimeModule.d.ts +1 -1
- package/dist/playground/worker/runtimeModule.js +1 -1
- package/dist/playground/worker/staticRuntimePreflight.js +2 -1
- package/dist/playground/worker/v.d.ts +1 -0
- package/dist/playground/worker/v.js +106 -0
- package/dist/testPublicEnv.d.ts +2 -0
- package/dist/testPublicEnv.js +8 -0
- package/package.json +59 -48
package/README.md
CHANGED
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
Executes C, C++, Objective-C, Fortran, COBOL, Python, Java, Rust, Go, D, C#, F#, VB.NET, Elixir, Erlang, Prolog,
|
|
6
|
-
Gleam, Perl, Tcl, AWK, Pascal, Forth, J, BQN, Janet, Julia, Nim, Bash, ClojureScript, OCaml, JavaScript, TypeScript,
|
|
7
|
-
AssemblyScript, WAT, WASM, Lua, Zig, Scheme, Ruby, Haskell, R, Octave, SQLite, DuckDB,
|
|
8
|
-
and PHP code.
|
|
5
|
+
Executes C, C++, Objective-C, Objective-C++, Fortran, COBOL, V, Python, Java, Rust, Go, D, C#, F#, VB.NET, Elixir, Erlang, Prolog,
|
|
6
|
+
Gleam, Grain, Perl, Tcl, AWK, Pascal, Forth, J, BQN, Janet, Julia, Nim, Bash, ClojureScript, ReScript, OCaml, JavaScript, TypeScript,
|
|
7
|
+
AssemblyScript, WAT, WASM, Lua, Fennel, Zig, Scheme, Ruby, Haskell, R, Octave, SQLite, DuckDB,
|
|
8
|
+
PostgreSQL, and PHP code.
|
|
9
9
|
|
|
10
10
|
Experimental LFortran execution is available separately from f2c Fortran; see
|
|
11
11
|
[the LFortran consumer contract and local setup](docs/lfortran.md).
|
|
12
12
|
|
|
13
|
+
V runs the real V 0.5.2 compiler in the browser and compiles its C output with the shared
|
|
14
|
+
llvm-core Clang host; see [the V browser integration](docs/v-browser.md).
|
|
15
|
+
|
|
13
16
|
The browser-side C-family host is provided by [`@wasm-idle/llvm-core`](packages/llvm-core).
|
|
14
17
|
Compiler source pins, patches, and reproducible asset builds live in
|
|
15
18
|
[`seo-rii/wasm-llvm`](https://github.com/seo-rii/wasm-llvm); wasm-idle loads the generated
|
|
@@ -40,7 +43,9 @@ debug runtime; the remaining debug-enabled languages retain wasm-idle's trace co
|
|
|
40
43
|
| C | @wasm-idle/llvm-core / Clang WASI | Yes | clangd | LLDB |
|
|
41
44
|
| C++ | @wasm-idle/llvm-core / Clang WASI | Yes | clangd | LLDB |
|
|
42
45
|
| Objective-C | GNUstep libobjc2 + @wasm-idle/llvm-core | Yes | clangd | Trace |
|
|
46
|
+
| Objective-C++ | GNUstep libobjc2 + @wasm-idle/llvm-core | Yes | clangd | - |
|
|
43
47
|
| Python | Pyodide | Yes | Python LSP | Trace |
|
|
48
|
+
| Hy | Hy 1.3.1 on Pyodide | Yes | syntax | - |
|
|
44
49
|
| Java | TeaVM | Yes | syntax | - |
|
|
45
50
|
| Rust | wasm-rust / browser rustc | Yes | rustc diagnostics | LLDB |
|
|
46
51
|
| Go | wasm-go / browser Go compiler | Yes | compiler diagnostics | Trace |
|
|
@@ -52,6 +57,7 @@ debug runtime; the remaining debug-enabled languages retain wasm-idle's trace co
|
|
|
52
57
|
| Erlang | AtomVM / Popcorn | Yes | syntax | - |
|
|
53
58
|
| Prolog | SWI-Prolog WASM worker | Yes | syntax | - |
|
|
54
59
|
| Gleam | Gleam precompiled browser runtime | Yes | compiler diagnostics | - |
|
|
60
|
+
| Grain | Grain 0.7.2 js_of_ocaml compiler + WASI | Yes | compiler diagnostics | - |
|
|
55
61
|
| Perl | Perl WASM worker | Yes | syntax | - |
|
|
56
62
|
| Tcl | Wacl Tcl WASM worker | Yes | syntax | - |
|
|
57
63
|
| AWK | GoAWK WASM worker | Yes | syntax | - |
|
|
@@ -64,6 +70,7 @@ debug runtime; the remaining debug-enabled languages retain wasm-idle's trace co
|
|
|
64
70
|
| Nim | Nim 2.2.4 WASM + clang/lld WASM | Yes | syntax | - |
|
|
65
71
|
| Bash | GNU Bash WASIX / Wasmer SDK | Yes | syntax | - |
|
|
66
72
|
| ClojureScript | cljs.js self-hosted compiler | Yes | syntax | - |
|
|
73
|
+
| ReScript | ReScript 12.3.1 compiler (js_of_ocaml) | Yes | compiler diagnostics | - |
|
|
67
74
|
| TinyGo | wasm-tinygo | Yes | syntax | - |
|
|
68
75
|
| OCaml | wasm-of-js-of-ocaml / js_of_ocaml | Yes | syntax | - |
|
|
69
76
|
| JavaScript | wasm-typescript / TypeScript service | Yes | TypeScript LSP | - |
|
|
@@ -72,6 +79,7 @@ debug runtime; the remaining debug-enabled languages retain wasm-idle's trace co
|
|
|
72
79
|
| WAT | WABT | Yes | WAT LSP | - |
|
|
73
80
|
| WASM | Browser WebAssembly + WASI shim | Yes | syntax | - |
|
|
74
81
|
| Lua | Wasmoon | Yes | syntax | - |
|
|
82
|
+
| Fennel | fennel.lua on Wasmoon | Yes | syntax | - |
|
|
75
83
|
| Zig | zig_small.wasm | Yes | syntax | - |
|
|
76
84
|
| Scheme | Puppy Scheme / wasm-lisp | Yes | syntax | - |
|
|
77
85
|
| Ruby | CRuby WASI | Yes | syntax | - |
|
|
@@ -79,10 +87,12 @@ debug runtime; the remaining debug-enabled languages retain wasm-idle's trace co
|
|
|
79
87
|
| LFortran | LFortran LLVM evaluator (experimental) | Yes | compiler diagnostics | - |
|
|
80
88
|
| Fortran | f2c + @wasm-idle/llvm-core | Yes | Fortran LSP | - |
|
|
81
89
|
| COBOL | GnuCOBOL 3.2 + @wasm-idle/llvm-core | Yes | syntax | - |
|
|
90
|
+
| V | V 0.5.2 + @wasm-idle/llvm-core | Yes | syntax | - |
|
|
82
91
|
| R | WebR | Yes | syntax | - |
|
|
83
92
|
| Octave | wasm-octave | Yes | syntax | - |
|
|
84
93
|
| DuckDB | DuckDB-Wasm | Files | DuckDB LSP | - |
|
|
85
94
|
| SQLite | sql.js | n/a | syntax | - |
|
|
95
|
+
| PostgreSQL | PostgreSQL 18 / PGlite | Files | syntax | - |
|
|
86
96
|
| PHP | PHP 8.4 / php-wasm | Yes | syntax | - |
|
|
87
97
|
|
|
88
98
|
## Browser LLDB debug runtime
|
|
@@ -225,10 +235,12 @@ when they exist.
|
|
|
225
235
|
| Language / IDs | Package/version base | Execution defaults / flags | Customization |
|
|
226
236
|
| ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
227
237
|
| C3<br>`C3` | wasm-llvm/c3-browser: C3 0.8.3 / LLVM 22.1.8 | Verified c3c and builtin LLD compile real C3 in a fresh browser Worker; UTF-8 env.readByte/env.writeByte ABI and exported main; std::io and WASI unavailable | `runtimeAssets.c3.baseUrl`, `stdin`, `activePath`, `workspaceFiles`; fixed compiler flags and bounded Wasm memories |
|
|
228
|
-
| C<br>`C` | @wasm-idle/llvm-core@1.0.
|
|
229
|
-
| C++<br>`CPP` | @wasm-idle/llvm-core@1.0.
|
|
230
|
-
| Objective-C<br>`OBJC` | GNUstep libobjc2 v2.3 assets from the `wasm-llvm` producer + @wasm-idle/llvm-core@1.0.
|
|
231
|
-
|
|
|
238
|
+
| C<br>`C` | @wasm-idle/llvm-core@1.0.10 / Clang 22.1.8 WASI sysroot from the `wasm-llvm` producer | `clang` for `wasm32-wasi`; default `-std=gnu11`; LLDB mode compiles untouched source with embedded DWARF at `-g -O0` and runs it in WAMR; normal runs still use the browser WASI host; supports `stdin` and `programArgs` | `runtimeAssets.clang.baseUrl`/`loader` or `rootUrl`; `compileArgs`, `programArgs`, `cVersion`, `activePath`, `workspaceFiles`, `debugMode`, `breakpoints`, `pauseOnEntry` |
|
|
239
|
+
| C++<br>`CPP` | @wasm-idle/llvm-core@1.0.10 / Clang 22.1.8 WASI sysroot from the `wasm-llvm` producer | `clang++` for `wasm32-wasi`; default `-std=gnu++20`; LLDB mode compiles untouched source with embedded DWARF at `-g -O0` and runs it in WAMR; normal runs still use the browser WASI host; supports `stdin` and `programArgs` | `runtimeAssets.clang.baseUrl`/`loader` or `rootUrl`; `compileArgs`, `programArgs`, `cppVersion`, `activePath`, `workspaceFiles`, `debugMode`, `breakpoints`, `pauseOnEntry` |
|
|
240
|
+
| Objective-C<br>`OBJC` | GNUstep libobjc2 v2.3 assets from the `wasm-llvm` producer + @wasm-idle/llvm-core@1.0.10 | `clang -x objective-c -fobjc-runtime=gnustep-2.0 -fblocks` for `wasm32-wasi`; links `libobjc.a`, `libgnustep-base.a`, and `libffi.a` when Foundation is imported; Foundation headers are inlined from `foundation-headers.json`; includes a constructor wrapper for Objective-C class registration; auto-compiles `.m`/`.mm`/`.c` workspace files; trace debug instruments active source and uses wasm-idle controls; supports `stdin` and `programArgs`; large Objective-C assets may be served as gzip-only `.gz` files through the service worker or worker fallback | `runtimeAssets.objectivec.baseUrl`/`libobjcUrl`/`headersUrl`/`libgnustepBaseUrl`/`libgnustepBaseObjectUrl`/`foundationHeadersUrl`/`libffiUrl` or `PUBLIC_WASM_OBJECTIVEC_*`; `runtimeAssets.clang.baseUrl`/`loader` for the clang toolchain; `activePath`, `workspaceFiles`, `compileArgs`, `debug`, `breakpoints`, `pauseOnEntry` |
|
|
241
|
+
| Objective-C++<br>`OBJECTIVECXX` | Same GNUstep libobjc2 v2.3 + libc++ assets as Objective-C from the `wasm-llvm` producer + @wasm-idle/llvm-core@1.0.10; no extra compiler assets | `clang -x objective-c++ -std=gnu++20 -fobjc-runtime=gnustep-2.0 -fblocks` for `wasm32-wasi` with libc++ headers; active file defaults to `main.mm`; links `libobjc.a` (plus GNUstep Base and `libffi.a` when Foundation is imported); auto-compiles `.mm`/`.m`/`.c` workspace files; supports `stdin` and `programArgs`; trace debugging is not supported | Shares `runtimeAssets.objectivec` and `runtimeAssets.clang` with Objective-C; `activePath`, `workspaceFiles`, `compileArgs`, `programArgs` |
|
|
242
|
+
| Python<br>`PYTHON3` | static ESM `static/pyodide/pyodide.mjs` / pyodide@314.0.7 | loads `pyodide.mjs`, `pyodide.asm.mjs`, `pyodide.asm.wasm`, and `python_stdlib.zip` from the configured static asset tree on demand; supports `stdin`, workspace files, and trace debugging | `runtimeAssets.python.baseUrl`/`loader` or `rootUrl`; `stdin`, `activePath`, `workspaceFiles`, `debug`, `breakpoints`, `pauseOnEntry`, `debugPath` |
|
|
243
|
+
| Hy<br>`HY` | Hy 1.3.1 + funcparserlib 1.0.1 pure-Python wheels on pyodide@314.0.7 | receipt-verifies the bundled wheels, unpacks them into Pyodide site-packages, and compiles Hy with `hy.compiler.hy_compile`; `(input)`/`(print)` share the Python stdin/stdout bridge; no debugger or automatic package loading | `runtimeAssets.hy.baseUrl` or `PUBLIC_WASM_HY_BASE_URL` plus the Python runtime assets; `stdin`, `activePath` |
|
|
232
244
|
| Java<br>`JAVA` | @wasm-idle/runtime-teavm@0.0.0 / TeaVM compiler assets | `compiler.wasm` compiles Java to browser WASM/JS; supports `stdin` and `programArgs` | `runtimeAssets.java.baseUrl`/`loader` or `rootUrl` |
|
|
233
245
|
| Rust<br>`RUST` | wasm-rust@0.1.0 / rust-1.99.0-browser-integrated-v1 + integrated LLVM/LLD 22.1.8 from the `wasm-llvm` producer; exact rustc/LLVM provenance is recorded for LLDB compatibility | browser host `wasm32-wasip1-threads`; default target `wasm32-wasip1`, selectable `wasm32-wasip1`, `wasm32-wasip2`, `wasm32-wasip3`; LLDB mode is currently limited to `wasm32-wasip1` and emits embedded DWARF with `-C debuginfo=2 -C opt-level=0`; normal Preview 1/2/3 execution remains unchanged; supports `stdin` and `programArgs` | `runtimeAssets.rust.compilerUrl`, `runtimeAssets.rust.debugModuleUrl`, or `PUBLIC_WASM_RUST_COMPILER_URL`; `rootUrl`, `rustTargetTriple`, `programArgs`, `debugMode`; compiler requests accept `edition`, `crateType`, `extendedTimeout`, `log`, and `onProgress`; runtime manifest controls compiler memory, timeout, and shared workspace size |
|
|
234
246
|
| Go<br>`GO` | wasm-go@0.1.0 / go1.26.1 | default target `wasip1/wasm`; selectable `wasip1/wasm`, `wasip2/wasm`, `wasip3/wasm`, `js/wasm`; supports `stdin` and `programArgs` | `runtimeAssets.go.compilerUrl` or `PUBLIC_WASM_GO_COMPILER_URL`; `goTarget`, `programArgs` |
|
|
@@ -236,10 +248,11 @@ when they exist.
|
|
|
236
248
|
| C#<br>`CSHARP` | wasm-dotnet@0.1.0 / .NET 9.0.16 browser-wasm / Roslyn C# 4.14.0 | `CSharpCompilationOptions(OutputKind.ConsoleApplication)`; `concurrentBuild=false`; target `browser-wasm`; language-specific AOT bundle `runtime/csharp/`; supports `stdin` and `programArgs` | `runtimeAssets.dotnet.moduleUrl` or `PUBLIC_WASM_DOTNET_MODULE_URL`; `programArgs`, LSP on/off |
|
|
237
249
|
| F#<br>`FSHARP` | wasm-dotnet@0.1.0 / .NET 9.0.16 browser-wasm / FCS 43.12.204 / FSharp.Core 10.1.204 | `fsc.exe --target:exe --targetprofile:netcore --noframework --simpleresolution --nowin32manifest --debug- --optimize-`; language-specific AOT bundle `runtime/fsharp/`; supports `stdin` and `programArgs` | `runtimeAssets.dotnet.moduleUrl` or `PUBLIC_WASM_DOTNET_MODULE_URL`; `programArgs`, LSP on/off |
|
|
238
250
|
| VB.NET<br>`VBNET` | wasm-dotnet@0.1.0 / .NET 9.0.16 browser-wasm / Roslyn Visual Basic 4.14.0 | `VisualBasicCompilationOptions(OutputKind.ConsoleApplication)`; `concurrentBuild=false`, `OptionStrict=Off`, `OptionInfer=On`, `OptionExplicit=On`; target `browser-wasm`; language-specific AOT bundle `runtime/vbnet/`; supports `stdin` and `programArgs` | `runtimeAssets.dotnet.moduleUrl` or `PUBLIC_WASM_DOTNET_MODULE_URL`; `programArgs`, LSP on/off |
|
|
239
|
-
| Elixir<br>`ELIXIR` | wasm-elixir asset bundle / @swmansion/popcorn@0.
|
|
240
|
-
| Erlang<br>`ERLANG` | wasm-elixir asset bundle / @swmansion/popcorn@0.
|
|
241
|
-
| Prolog<br>`PROLOG` | swipl-wasm@8.
|
|
251
|
+
| Elixir<br>`ELIXIR` | wasm-elixir asset bundle / @swmansion/popcorn@0.3.3 | Popcorn/AtomVM bundle `bundle.avm`; supports `stdin` | `runtimeAssets.elixir.bundleUrl` or `PUBLIC_WASM_ELIXIR_BUNDLE_URL` |
|
|
252
|
+
| Erlang<br>`ERLANG` | wasm-elixir asset bundle / @swmansion/popcorn@0.3.3 | Popcorn/AtomVM bundle `bundle.avm`; supports `stdin` | `runtimeAssets.erlang.bundleUrl` or `PUBLIC_WASM_ERLANG_BUNDLE_URL`; falls back to Elixir bundle URL |
|
|
253
|
+
| Prolog<br>`PROLOG` | swipl-wasm@8.2.1 synced into `static/wasm-prolog` | static worker runs SWI-Prolog; supports `stdin` and `programArgs` | `runtimeAssets.prolog.baseUrl`/`runtimeAssets.prolog.workerUrl` or `PUBLIC_WASM_PROLOG_BASE_URL`/`PUBLIC_WASM_PROLOG_WORKER_URL`; `programArgs`, `activePath`, `workspaceFiles` |
|
|
242
254
|
| Gleam<br>`GLEAM` | @live-codes/gleam-precompiled@0.5.0 static worker | Gleam worker compiles/runs browser output with source manifest; supports `stdin` | `runtimeAssets.gleam.baseUrl`/`workerUrl`/`manifestUrl` or `PUBLIC_WASM_GLEAM_*`; `programArgs`, `workspaceFiles` |
|
|
255
|
+
| Grain<br>`GRAIN` | grain-lang/grain v0.7.2 release: upstream js_of_ocaml grainc.bc.js + @grain/stdlib 0.7.2 (precompiled .gro) | Verified upstream grainc compiles `.gr` workspace files to WASI in a fresh browser Worker; stdio-only WASI host with streaming `stdin` | `runtimeAssets.grain.baseUrl` or `PUBLIC_WASM_GRAIN_BASE_URL`; `stdin`, `programArgs`, `activePath`, `workspaceFiles`; Wasm memory bounded by `limits.maxWasmMemoryBytes` |
|
|
243
256
|
| Perl<br>`PERL` | WebPerl v0.09-beta (webperl_prebuilt_v0.09-beta.zip) | host-verifies the manifest, stored assets, logical hashes, and profile-bound one-shot runner before executing `emperl`; supports `stdin` and `programArgs` | explicit `runtimeAssets.perl.baseUrl`/`workerUrl`/`manifestUrl` overrides require one complete profile-and-runner receipt bundle; URL-only `PUBLIC_WASM_PERL_*` overrides fail closed; `programArgs`, `activePath`, `workspaceFiles` |
|
|
244
257
|
| Tcl<br>`TCL` | Wacl Tcl 2017-05-29 (wacl.zip) | host-verifies the manifest, stored assets, logical hashes, and profile-bound one-shot runner before executing Wacl Tcl; supports `stdin` and `programArgs` | bundled mirrors may set `runtimeAssets.tcl.baseUrl`/`workerUrl`/`manifestUrl` or `PUBLIC_WASM_TCL_BASE_URL`/`PUBLIC_WASM_TCL_WORKER_URL`; custom executable bytes require one complete profile-and-runner receipt bundle; `programArgs`, `activePath`, `workspaceFiles` |
|
|
245
258
|
| AWK<br>`AWK` | GoAWK v1.31.0 / go1.25.3 | static worker runs `goawk.wasm`; supports `stdin` and `programArgs` | `runtimeAssets.awk.baseUrl`/`runtimeAssets.awk.workerUrl` or `PUBLIC_WASM_AWK_BASE_URL`/`PUBLIC_WASM_AWK_WORKER_URL`; `programArgs`, `activePath`, `workspaceFiles` |
|
|
@@ -250,28 +263,32 @@ when they exist.
|
|
|
250
263
|
| Janet<br>`JANET` | Janet 1.41.3-dev / Emscripten 3.1.8 opaque vendored bundle | host-verifies the manifest, stored assets, logical hashes, and profile-bound one-shot runner before executing the Janet VM; supports `stdin` and `programArgs` | explicit `runtimeAssets.janet.baseUrl`/`workerUrl`/`manifestUrl` overrides require one complete profile-and-runner receipt bundle; URL-only `PUBLIC_WASM_JANET_*` overrides fail closed; `programArgs`, `activePath`, `workspaceFiles` |
|
|
251
264
|
| Julia<br>`JULIA` | @chriskoch/julia-wasm@1.0.4 | host-verifies the manifest, stored assets, logical hashes, and profile-bound one-shot runner before executing the legacy Julia VM; supports `stdin` and `activePath` | explicit `runtimeAssets.julia.baseUrl`/`workerUrl`/`manifestUrl` overrides require one complete profile-and-runner receipt bundle; URL-only `PUBLIC_WASM_JULIA_*` overrides fail closed; `activePath` |
|
|
252
265
|
| Nim<br>`NIM` | Nim 2.2.4 / benagastov Nim-WASM-Compiler with clang/lld WASM | host-verifies the manifest, eight stored assets, logical hashes, and profile-bound one-shot runner before compiling Nim to C and linking with clang/lld WASM in a disposable worker; supports `stdin`, `programArgs`, and `activePath` | explicit `runtimeAssets.nim.baseUrl`/`workerUrl`/`manifestUrl` overrides require one complete profile-and-runner receipt bundle; URL-only `PUBLIC_WASM_NIM_*` overrides fail closed; `programArgs`, `activePath` |
|
|
253
|
-
| Bash<br>`BASH` | @wasm-idle/runtime-bash@0.1.0 / GNU Bash WASIX + receipt-pinned @wasmer/sdk@0.
|
|
266
|
+
| Bash<br>`BASH` | @wasm-idle/runtime-bash@0.1.0 / GNU Bash WASIX + receipt-pinned @wasmer/sdk@0.10.0 profile | host-verifies one profile manifest, the stored SDK JavaScript, Wasmer Wasm, and WEBc before starting a fixed worker generation with no runtime-asset fetches; invokes `bash -c <code> <activePath> ...programArgs` and supports `stdin`, `programArgs`, `activePath`, and `workspaceFiles` | `rootUrl` mirrors reuse the bundled profile; explicit `runtimeAssets.bash.baseUrl`/`manifestUrl`/`moduleUrl`/`wasmerWasmUrl`/`webcUrl` overrides require one complete profile; `workerUrl` is rejected; `stdin`, `programArgs`, `activePath`, `workspaceFiles` |
|
|
254
267
|
| ClojureScript<br>`CLOJURESCRIPT` | @wasm-idle/runtime-clojurescript@0.1.0 / ClojureScript 1.12.134 | static worker compiles and evaluates with the official `cljs.js` self-hosted compiler; supports `stdin`, `programArgs`, `activePath`, and `workspaceFiles` | `runtimeAssets.clojurescript.baseUrl`/`runtimeAssets.clojurescript.workerUrl` or `PUBLIC_WASM_CLOJURESCRIPT_BASE_URL`/`PUBLIC_WASM_CLOJURESCRIPT_WORKER_URL`; `programArgs`, `activePath`, `workspaceFiles` |
|
|
268
|
+
| ReScript<br>`RESCRIPT` | upstream ReScript 12.3.1 playground `compiler.js` + `compiler-builtins/cmij.js` + `@rescript/runtime@12.3.1` | static worker compiles `Main.res` to CommonJS with the official js_of_ocaml ReScript compiler, then runs it against the upstream stdlib runtime; stdin via `fs.readLineSync(0)`/`fs.readFileSync(0)`; compiler errors/warnings become editor diagnostics; supports `programArgs` | `runtimeAssets.rescript.baseUrl`/`runtimeAssets.rescript.workerUrl` or `PUBLIC_WASM_RESCRIPT_BASE_URL`/`PUBLIC_WASM_RESCRIPT_WORKER_URL`; `programArgs`, `activePath`, `workspaceFiles` |
|
|
255
269
|
| TinyGo<br>`TINYGO` | wasm-tinygo@0.0.0 / upstream TinyGo 0.40.1 browser toolchain | receipt-verifies and runs upstream `cmd/go` plus TinyGo in a disposable capped Worker; targets `wasip1`; supports `stdin`, `programArgs`, `workspaceFiles`, hosted C++ without exceptions/RTTI, and offline `vendor/modules.txt` | `runtimeAssets.tinygo.moduleUrl`/`assetLoader`; `PUBLIC_WASM_TINYGO_MODULE_URL`, execution/workspace resource limits, `programArgs` |
|
|
256
270
|
| OCaml<br>`OCAML` | wasm-of-js-of-ocaml@0.1.0 / js_of_ocaml + wasm_of_ocaml | default backend `wasm`; selectable `wasm`, `js`; `ocamlWasmBinaryenMode` `fast`, `full`; supports `stdin`; outer module and manifest are size/SHA-256 verified before use | `runtimeAssets.ocaml.moduleUrl`/`manifestUrl` plus `moduleReceipt`/`manifestReceipt` for a custom generation, or `PUBLIC_WASM_OCAML_*` for a mirror of the bundled generation; `ocamlBackend` |
|
|
257
|
-
| JavaScript<br>`JAVASCRIPT` | wasm-typescript@0.1.0 / @swc/wasm-typescript@1.
|
|
258
|
-
| TypeScript<br>`TYPESCRIPT` | wasm-typescript@0.1.0 / @swc/wasm-typescript@1.
|
|
259
|
-
| AssemblyScript<br>`ASSEMBLYSCRIPT` | static ESM `static/wasm-assemblyscript/runtime.mjs` produced from assemblyscript@0.28.
|
|
271
|
+
| JavaScript<br>`JAVASCRIPT` | wasm-typescript@0.1.0 / @swc/wasm-typescript@1.16.13 | TypeScript service transpiles JS/TS and runs in browser sandbox; supports `stdin` and `programArgs` | `runtimeAssets.typescript.moduleUrl`/`libUrl` or `PUBLIC_WASM_TYPESCRIPT_MODULE_URL` |
|
|
272
|
+
| TypeScript<br>`TYPESCRIPT` | wasm-typescript@0.1.0 / @swc/wasm-typescript@1.16.13 | TypeScript service transpiles then runs in browser sandbox; supports `stdin` and `programArgs` | `runtimeAssets.typescript.moduleUrl`/`libUrl` or `PUBLIC_WASM_TYPESCRIPT_MODULE_URL` |
|
|
273
|
+
| AssemblyScript<br>`ASSEMBLYSCRIPT` | static ESM `static/wasm-assemblyscript/runtime.mjs` produced from assemblyscript@0.28.20 + @assemblyscript/loader@0.28.20 | `asc <activePath> --outFile module.wasm --runtime incremental --bindings raw --optimize --exportRuntime`; runs the emitted WASM through WASI/browser imports and supports `stdin` | `runtimeAssets.assemblyscript.moduleUrl` or `PUBLIC_WASM_ASSEMBLYSCRIPT_MODULE_URL` or `rootUrl`; `stdin`, `activePath`, `workspaceFiles` |
|
|
260
274
|
| WAT<br>`WAT` | wasm-wat@0.1.0 / wabt@1.0.39 | WABT parses WAT to WASM then runs through WASI shim; supports `stdin` and `programArgs` | `runtimeAssets.wat.moduleUrl` or `PUBLIC_WASM_WAT_MODULE_URL`; `programArgs` |
|
|
261
275
|
| WASM<br>`WASM` | Browser WebAssembly + @bjorn3/browser_wasi_shim@0.4.2 | loads provided WASM bytes and executes with WASI preview1 imports; supports `stdin` and `programArgs` | `programArgs`, `stdin`, `activePath` |
|
|
262
276
|
| Lua<br>`LUA` | wasm-lua@0.1.0 / wasmoon@1.16.0 | Wasmoon Lua VM; supports `stdin` and `programArgs` | `runtimeAssets.lua.moduleUrl` or `PUBLIC_WASM_LUA_MODULE_URL`; `programArgs` |
|
|
277
|
+
| Fennel<br>`FENNEL` | static wasm-fennel `fennel-1.6.1.lua.gz` (official Fennel 1.6.1) on wasm-lua@0.1.0 | receipt-verified `fennel.lua` compiler evaluated by the Wasmoon Lua VM; supports `stdin` and `programArgs` | `runtimeAssets.fennel.compilerUrl` or `PUBLIC_WASM_FENNEL_COMPILER_URL` plus the Lua module URL; `programArgs` |
|
|
263
278
|
| Zig<br>`ZIG` | static wasm-zig assets / `zig_small.wasm` + `std.tar.gz` | native gzip delivery for the tar standard library; default target `wasm64-wasi`; Zig compile args are appended; supports `stdin`, `compileArgs`, `programArgs` | `runtimeAssets.zig.compilerUrl`/`stdlibUrl` or `PUBLIC_WASM_ZIG_*`; `zigTargetTriple`, `activePath`, `workspaceFiles` |
|
|
264
279
|
| Scheme<br>`LISP` | wasm-lisp@0.1.0 / Puppy Scheme WASM component | receipt-verified Puppy Scheme compiler/runtime; supports `stdin` and `programArgs` | `runtimeAssets.lisp.{moduleUrl,manifestUrl,manifestFingerprint}` or `PUBLIC_WASM_LISP_{MODULE_URL,MANIFEST_URL,MANIFEST_FINGERPRINT}`; `programArgs` |
|
|
265
|
-
| Ruby<br>`RUBY` | receipt-pinned `static/wasm-ruby` profile produced from @ruby/3.4-wasm-wasi@2.
|
|
280
|
+
| Ruby<br>`RUBY` | receipt-pinned `static/wasm-ruby` profile produced from @ruby/3.4-wasm-wasi@2.10.1 + @ruby/wasm-wasi@2.10.1 | host-verifies the manifest, canonical stored module and gzip bytes, and logical WASM before transferring three owned buffers to a no-fetch CRuby 3.4 worker; supports `stdin`, `programArgs`, and workspace files | `rootUrl` mirrors reuse the bundled profile; explicit `runtimeAssets.ruby` overrides require one complete profile and same-origin canonical paths; URL-only `PUBLIC_WASM_RUBY_*` overrides fail closed; `stdin`, `programArgs`, `workspaceFiles` |
|
|
266
281
|
| Haskell<br>`HASKELL` | ghc-in-browser / GHC 9.14.0.20251031 WASI rootfs | loads `dyld.mjs`, `rootfs.tar.zst`, `bsdtar.wasm`; `compileArgs` become GHC args, otherwise legacy `args` become GHC args | `runtimeAssets.haskell.moduleUrl`/`rootfsUrl`/`bsdtarUrl`; `mainSoPath`, `searchDirs`, `activePath`, `workspaceFiles` |
|
|
267
282
|
| LFortran<br>`LFORTRAN` | receipt-pinned `wasm-llvm/producer/lfortran-browser` artifacts in `static/wasm-lfortran` | real LFortran 0.65.0-97-gab867a23 LLVM evaluator compiles and executes Emscripten side modules in a fresh Worker; shared-ring stdin supports delayed READ and EOF; experimental Fortran feature coverage | `runtimeAssets.lfortran.baseUrl` relocates the reviewed bundle; `stdin`, `activePath`, workspace data/include files, cancellation and execution limits; no program arguments or multi-file module build orchestration |
|
|
268
|
-
| Fortran<br>`FORTRAN` | Netlib f2c 2022-09-09 + `@cowasm/f2c 1.0.0` libf2c + @wasm-idle/llvm-core@1.0.
|
|
269
|
-
| COBOL<br>`COBOL` | GnuCOBOL 3.2 + GMP 6.3.0 assets from the `wasm-llvm` producer + @wasm-idle/llvm-core@1.0.
|
|
283
|
+
| Fortran<br>`FORTRAN` | Netlib f2c 2022-09-09 + `@cowasm/f2c 1.0.0` libf2c + @wasm-idle/llvm-core@1.0.10 | runs `f2c.wasm` in WASI, compiles generated C with the llvm-core Clang host, links `libf2c.a`, then executes the resulting WASI module with `stdin` and `programArgs` | `runtimeAssets.fortran.baseUrl`/`f2cWasmUrl`/`libf2cUrl`/`f2cHeaderUrl`/`analyzerUrl` or `PUBLIC_WASM_FORTRAN_*`; `runtimeAssets.clang.baseUrl`/`loader` for the C backend; `activePath`, `workspaceFiles`, `compileArgs` |
|
|
284
|
+
| COBOL<br>`COBOL` | GnuCOBOL 3.2 + GMP 6.3.0 assets from the `wasm-llvm` producer + @wasm-idle/llvm-core@1.0.10 | native gzip delivery for the frontend Wasm and filesystem tar assets; translates free-format COBOL with the real GnuCOBOL `cobc` frontend, compiles the generated C with the llvm-core Clang host, links libcob/GMP, and executes the resulting WASI module with `stdin` and `programArgs` | `runtimeAssets.cobol.baseUrl` or `PUBLIC_WASM_COBOL_BASE_URL`; `runtimeAssets.clang.baseUrl`/`loader` for the C backend; `activePath`, `workspaceFiles`, `compileArgs` |
|
|
285
|
+
| V<br>`V` | V 0.5.2 compiler, vlib and WASI C sysroot assets from the `wasm-llvm` producer + @wasm-idle/llvm-core@1.0.10 | native gzip delivery for the compiler Wasm and filesystem tar assets; translates V to C with the real V compiler (built from the upstream `vc` bootstrap for WASI), compiles the generated C with the llvm-core Clang host, and executes the resulting WASI module with `stdin` and `programArgs` | `runtimeAssets.v.baseUrl` or `PUBLIC_WASM_V_BASE_URL`; `runtimeAssets.clang.baseUrl`/`loader` for the C backend; `activePath`, `workspaceFiles`, `compileArgs` |
|
|
270
286
|
| R<br>`R` | versioned static `static/webr/<hash>/webr.js` / webr@0.6.0 | loads the browser ESM entry `webr.js` and its WebR runtime files from the configured static asset tree on demand; supports `stdin`, `programArgs`, and workspace files | `runtimeAssets.r.baseUrl` or `PUBLIC_WASM_R_BASE_URL`; `stdin`, `programArgs`, `activePath`, `workspaceFiles` |
|
|
271
287
|
| Octave<br>`OCTAVE` | Octave 10.3.0 (octave-10.3.0-pl5321h996e327_3.tar.bz2) | Octave CLI Emscripten worker; supports `stdin` and `programArgs` | `runtimeAssets.octave.baseUrl`/`workerUrl`/`manifestUrl` or `PUBLIC_WASM_OCTAVE_*` |
|
|
272
|
-
| DuckDB<br>`DUCKDB` | static ESM `static/wasm-duckdb/runtime.mjs` produced from @duckdb/duckdb-wasm@1.33.1-
|
|
273
|
-
| SQLite<br>`SQLITE` | static ESM `static/wasm-sqlite/runtime.mjs` produced from sql.js@1.14.
|
|
274
|
-
|
|
|
288
|
+
| DuckDB<br>`DUCKDB` | static ESM `static/wasm-duckdb/runtime.mjs` produced from @duckdb/duckdb-wasm@1.33.1-dev57.0 | selects the best DuckDB-Wasm MVP/EH bundle on demand and creates a fresh in-memory database per run; `stdin` is registered as `stdin.txt` and `/dev/stdin` rather than terminal stdin | `runtimeAssets.duckdb.moduleUrl` or `PUBLIC_WASM_DUCKDB_MODULE_URL` or `rootUrl`; `stdin`, `activePath`, `workspaceFiles` |
|
|
289
|
+
| SQLite<br>`SQLITE` | static ESM `static/wasm-sqlite/runtime.mjs` produced from sql.js@1.14.2 | sql.js loads `sql-wasm.wasm` on demand and executes SQL in a fresh in-memory database; terminal stdin is not applicable | `runtimeAssets.sqlite.moduleUrl`/`wasmUrl` or `PUBLIC_WASM_SQLITE_MODULE_URL`/`PUBLIC_WASM_SQLITE_WASM_URL` or `rootUrl`; `workspaceFiles` |
|
|
290
|
+
| PostgreSQL<br>`POSTGRESQL` | static ESM `static/wasm-postgresql/runtime.mjs` produced from @electric-sql/pglite@0.5.8 | upstream PostgreSQL compiled to WebAssembly by PGlite; initdb runs once per worker and every run restores a fresh in-memory cluster, sends the script as one simple query, and prints result sets, notices, and `COPY ... TO STDOUT`; preloaded `stdin` is exposed as the server file `/dev/blob` | `runtimeAssets.postgresql.moduleUrl` or `PUBLIC_WASM_POSTGRESQL_MODULE_URL` or `rootUrl`; `stdin`, `activePath`, `workspaceFiles` |
|
|
291
|
+
| PHP<br>`PHP` | static ESM `static/wasm-php/runtime.mjs` prebuilt by the standalone `producers/wasm-php` producer from @php-wasm/web-8-4@3.1.57 + @php-wasm/universal@3.1.57 | fixed PHP `8.4` php-wasm runtime; injects `$argv`/`$argc` and runs the active workspace script with `php.run`; supports `stdin` and `programArgs`; there is no runtime version selector | `runtimeAssets.php.moduleUrl` or `PUBLIC_WASM_PHP_MODULE_URL` or `rootUrl`; `stdin`, `programArgs`, `activePath`, `workspaceFiles` |
|
|
275
292
|
|
|
276
293
|
### Blocked candidates
|
|
277
294
|
|
|
@@ -323,9 +340,6 @@ toolchains can be consumed from pinned external runtime repositories:
|
|
|
323
340
|
- `static/wasm-zig`, `static/wasm-haskell`, `static/wasm-julia`, and `static/wasm-nim`: bundled browser runtime and
|
|
324
341
|
compiler assets synced from
|
|
325
342
|
upstream asset builds rather than local workspace packages.
|
|
326
|
-
- `tools/*`: migrated local toolchain projects that are too broad or infrastructure-heavy to run as
|
|
327
|
-
normal runtime workspace packages. `tools/dool` contains the Docker judge backend for Elixir and
|
|
328
|
-
the other server-side language runners.
|
|
329
343
|
|
|
330
344
|
Deployment builds retain both legacy `.gz` and canonical `.gz.bin` URLs by default.
|
|
331
345
|
After building and compressing the page, `pnpm run compact:build-runtimes` reports
|
|
@@ -368,7 +382,7 @@ pnpm run build:static-runtime-modules
|
|
|
368
382
|
```
|
|
369
383
|
|
|
370
384
|
This producer step writes `runtime.mjs` trees under `static/wasm-assemblyscript/`,
|
|
371
|
-
`static/wasm-duckdb/`, `static/wasm-ruby/`, and `static/wasm-sqlite/`. It also writes the Wasmer SDK
|
|
385
|
+
`static/wasm-duckdb/`, `static/wasm-postgresql/`, `static/wasm-ruby/`, and `static/wasm-sqlite/`. It also writes the Wasmer SDK
|
|
372
386
|
compatibility files and the unified Bash runtime profile under `static/wasm-bash/` through the same
|
|
373
387
|
rollback-capable Bash producer used by `sync:wasm-bash`. The browser consumes only the profile's
|
|
374
388
|
opaque, receipt-pinned storage paths; these files are deployed page assets, not npm package
|
|
@@ -551,6 +565,9 @@ browser UI thread.
|
|
|
551
565
|
C3 local asset setup, byte I/O ABI, and its 1 GiB default memory budget are documented in
|
|
552
566
|
[C3 browser integration](docs/c3-browser.md).
|
|
553
567
|
|
|
568
|
+
Grain's pinned upstream compiler, stdin model, and asset refresh are documented in
|
|
569
|
+
[Grain browser integration](docs/grain-browser.md).
|
|
570
|
+
|
|
554
571
|
Clean checkouts can prepare the ignored Clang, clangd, and OCaml browser payloads from one
|
|
555
572
|
receipt-verified manifest:
|
|
556
573
|
|
|
@@ -721,6 +738,13 @@ SQLite dynamically imports `static/wasm-sqlite/runtime.mjs`, produced from `sql.
|
|
|
721
738
|
its default `sql-wasm.wasm` from that static tree. Override the module and optional WASM payload
|
|
722
739
|
with `runtimeAssets.sqlite.moduleUrl`/`wasmUrl` or the corresponding
|
|
723
740
|
`PUBLIC_WASM_SQLITE_MODULE_URL`/`PUBLIC_WASM_SQLITE_WASM_URL` values.
|
|
741
|
+
PostgreSQL dynamically imports `static/wasm-postgresql/runtime.mjs`, produced from the pinned
|
|
742
|
+
`@electric-sql/pglite` package (upstream PostgreSQL compiled to WebAssembly). The worker runs initdb
|
|
743
|
+
once, then restores a fresh in-memory cluster for every run and sends the script as one simple
|
|
744
|
+
query. Result sets print as tab-separated tables, notices and `COPY ... TO STDOUT` print in order,
|
|
745
|
+
and other workspace `.sql` files run first. Preloaded stdin is exposed as the server-side file
|
|
746
|
+
`/dev/blob` (`COPY t FROM '/dev/blob'` or `pg_read_file('/dev/blob')`). Override the module with
|
|
747
|
+
`PUBLIC_WASM_POSTGRESQL_MODULE_URL` or `runtimeAssets.postgresql.moduleUrl`.
|
|
724
748
|
PHP dynamically imports the checked-in `static/wasm-php/runtime.mjs` output from the standalone
|
|
725
749
|
`producers/wasm-php` build. That producer pins `@php-wasm/web-8-4@3.1.34` and
|
|
726
750
|
`@php-wasm/universal@3.1.34`. It always creates PHP 8.4; there is no version field or
|
|
@@ -738,6 +762,10 @@ rejected because executable nested-worker substitution is outside the trust cont
|
|
|
738
762
|
Lua uses the bundled `static/wasm-lua/` wasmoon browser module plus its local `glue.wasm`
|
|
739
763
|
payload by default. Override it with `PUBLIC_WASM_LUA_MODULE_URL`, or pass
|
|
740
764
|
`runtimeAssets.lua.moduleUrl`.
|
|
765
|
+
Fennel runs the official Fennel 1.6.1 `fennel.lua` compiler on that same wasm-lua worker. The
|
|
766
|
+
bundled `static/wasm-fennel/fennel-1.6.1.lua.gz` is the unmodified upstream release, and the
|
|
767
|
+
worker verifies its size and SHA-256 receipt before use. Override it with
|
|
768
|
+
`PUBLIC_WASM_FENNEL_COMPILER_URL`, or pass `runtimeAssets.fennel.compilerUrl`.
|
|
741
769
|
Zig uses the bundled `static/wasm-zig/zig_small.wasm` compiler and `static/wasm-zig/std.tar.gz`
|
|
742
770
|
standard library by default. Override them with `PUBLIC_WASM_ZIG_COMPILER_URL` and
|
|
743
771
|
`PUBLIC_WASM_ZIG_STDLIB_URL`, or pass `runtimeAssets.zig.compilerUrl` and
|
|
@@ -807,6 +835,9 @@ const runtimeAssets: PlaygroundRuntimeAssets = {
|
|
|
807
835
|
php: {
|
|
808
836
|
moduleUrl: 'https://cdn.example.com/repl/wasm-php/runtime.mjs'
|
|
809
837
|
},
|
|
838
|
+
postgresql: {
|
|
839
|
+
moduleUrl: 'https://cdn.example.com/repl/wasm-postgresql/runtime.mjs'
|
|
840
|
+
},
|
|
810
841
|
sqlite: {
|
|
811
842
|
moduleUrl: 'https://cdn.example.com/repl/wasm-sqlite/runtime.mjs'
|
|
812
843
|
},
|
|
@@ -838,6 +869,9 @@ const runtimeAssets: PlaygroundRuntimeAssets = {
|
|
|
838
869
|
lua: {
|
|
839
870
|
moduleUrl: 'https://cdn.example.com/wasm-lua/index.js'
|
|
840
871
|
},
|
|
872
|
+
fennel: {
|
|
873
|
+
compilerUrl: 'https://cdn.example.com/wasm-fennel/fennel-1.6.1.lua.gz'
|
|
874
|
+
},
|
|
841
875
|
zig: {
|
|
842
876
|
compilerUrl: 'https://cdn.example.com/wasm-zig/zig_small.wasm',
|
|
843
877
|
stdlibUrl: 'https://cdn.example.com/wasm-zig/std.tar.gz'
|
|
@@ -903,7 +937,7 @@ await sandbox.load('print("hi")', false);
|
|
|
903
937
|
Compiler assets produced by [`wasm-llvm`](https://github.com/seo-rii/wasm-llvm) are deployed to
|
|
904
938
|
external static hosting and loaded by `@wasm-idle/llvm-core`. Also powered by Pyodide, TeaVM, `wasm-rust`,
|
|
905
939
|
`wasm-dotnet`, `wasm-of-js-of-ocaml`, `wasm-typescript`, `wasm-lisp`,
|
|
906
|
-
`wasm-wat`, `wasm-lua`, `wasm-zig`, CBQN, Janet, AtomVM/Popcorn, and `ghc-in-browser`.
|
|
940
|
+
`wasm-wat`, `wasm-lua`, Fennel, `wasm-zig`, CBQN, Janet, AtomVM/Popcorn, and `ghc-in-browser`.
|
|
907
941
|
|
|
908
942
|
### Ruby split standard library
|
|
909
943
|
|
|
@@ -3,6 +3,7 @@ import { WASM_AWK_RUNTIME_BUNDLE } from './wasmAwkVersion';
|
|
|
3
3
|
import { WASM_BASH_RUNTIME_PROFILE } from './wasmBashVersion';
|
|
4
4
|
import { WASM_BQN_ASSET_VERSION, WASM_BQN_RUNNER_RECEIPT } from './wasmBqnVersion';
|
|
5
5
|
import { WASM_CLOJURESCRIPT_ASSET_VERSION, WASM_CLOJURESCRIPT_RUNNER_RECEIPT } from './wasmClojureScriptVersion';
|
|
6
|
+
import { WASM_RESCRIPT_ASSET_VERSION, WASM_RESCRIPT_RUNNER_RECEIPT } from './wasmReScriptVersion';
|
|
6
7
|
import { WASM_D_INTEGRITY_VERSION, WASM_D_OUTER_ASSET_RECEIPTS } from './wasmDIntegrity';
|
|
7
8
|
import { WASM_DOTNET_ASSET_VERSION } from './wasmDotnetVersion';
|
|
8
9
|
import { WASM_ELIXIR_ASSET_RECEIPTS, WASM_ELIXIR_ASSET_VERSION } from './wasmElixirVersion';
|
|
@@ -17,6 +18,7 @@ import { WASM_JANET_RUNTIME_BUNDLE } from './wasmJanetVersion';
|
|
|
17
18
|
import { WASM_JULIA_RUNTIME_BUNDLE } from './wasmJuliaVersion';
|
|
18
19
|
import { WASM_LISP_ASSET_VERSION } from './wasmLispVersion';
|
|
19
20
|
import { WASM_LUA_ASSET_VERSION } from './wasmLuaVersion';
|
|
21
|
+
import { WASM_FENNEL_ASSET_VERSION, WASM_FENNEL_COMPILER_RECEIPT } from './wasmFennelVersion';
|
|
20
22
|
import { WASM_NIM_RUNTIME_BUNDLE } from './wasmNimVersion';
|
|
21
23
|
import { WASM_OBJECTIVEC_ASSET_RECEIPTS, WASM_OBJECTIVEC_ASSET_VERSION } from './wasmObjectiveCVersion';
|
|
22
24
|
import { WASM_OCAML_ASSET_VERSION, WASM_OCAML_RUNTIME_PROFILE } from './wasmOcamlVersion';
|
|
@@ -192,6 +194,13 @@ export function createApplicationRuntimeAssets(rootUrl) {
|
|
|
192
194
|
manifestFingerprint: WASM_CLOJURESCRIPT_ASSET_VERSION,
|
|
193
195
|
workerReceipt: WASM_CLOJURESCRIPT_RUNNER_RECEIPT
|
|
194
196
|
},
|
|
197
|
+
rescript: {
|
|
198
|
+
baseUrl: asset('wasm-rescript/'),
|
|
199
|
+
workerUrl: asset('wasm-rescript/runner-worker.js', WASM_RESCRIPT_RUNNER_RECEIPT.sha256),
|
|
200
|
+
manifestUrl: asset('wasm-rescript/runtime-manifest.v1.json', WASM_RESCRIPT_ASSET_VERSION),
|
|
201
|
+
manifestFingerprint: WASM_RESCRIPT_ASSET_VERSION,
|
|
202
|
+
workerReceipt: WASM_RESCRIPT_RUNNER_RECEIPT
|
|
203
|
+
},
|
|
195
204
|
swift: {
|
|
196
205
|
baseUrl: asset('wasm-swift/'),
|
|
197
206
|
workerUrl: asset('wasm-swift/runner-worker.js', WASM_SWIFT_ASSET_VERSION),
|
|
@@ -219,6 +228,9 @@ export function createApplicationRuntimeAssets(rootUrl) {
|
|
|
219
228
|
lua: {
|
|
220
229
|
moduleUrl: asset('wasm-lua/index.js', WASM_LUA_ASSET_VERSION)
|
|
221
230
|
},
|
|
231
|
+
fennel: {
|
|
232
|
+
compilerUrl: asset(WASM_FENNEL_COMPILER_RECEIPT.path, WASM_FENNEL_ASSET_VERSION)
|
|
233
|
+
},
|
|
222
234
|
zig: {
|
|
223
235
|
compilerUrl: asset('wasm-zig/zig_small.wasm', WASM_ZIG_ASSET_VERSION),
|
|
224
236
|
stdlibUrl: asset('wasm-zig/std.tar.gz', WASM_ZIG_ASSET_VERSION),
|
|
@@ -255,6 +267,9 @@ export function createApplicationRuntimeAssets(rootUrl) {
|
|
|
255
267
|
cobol: {
|
|
256
268
|
baseUrl: asset('wasm-cobol/')
|
|
257
269
|
},
|
|
270
|
+
v: {
|
|
271
|
+
baseUrl: asset('wasm-v/')
|
|
272
|
+
},
|
|
258
273
|
objectivec: {
|
|
259
274
|
baseUrl: asset('wasm-objectivec/'),
|
|
260
275
|
libobjcUrl: asset('wasm-objectivec/libobjc.a', WASM_OBJECTIVEC_ASSET_VERSION),
|
|
@@ -273,6 +288,9 @@ export function createApplicationRuntimeAssets(rootUrl) {
|
|
|
273
288
|
workerUrl: asset('wasm-octave/runner-worker.js', WASM_OCTAVE_ASSET_VERSION),
|
|
274
289
|
manifestUrl: asset('wasm-octave/runtime/runtime-manifest.v1.json', WASM_OCTAVE_ASSET_VERSION)
|
|
275
290
|
},
|
|
291
|
+
postgresql: {
|
|
292
|
+
moduleUrl: asset('wasm-postgresql/runtime.mjs', STATIC_RUNTIME_MODULE_VERSION)
|
|
293
|
+
},
|
|
276
294
|
sqlite: {
|
|
277
295
|
moduleUrl: asset('wasm-sqlite/runtime.mjs', STATIC_RUNTIME_MODULE_VERSION)
|
|
278
296
|
}
|
|
@@ -8,7 +8,6 @@ export declare class WorkerAssetBridge {
|
|
|
8
8
|
private readonly runtime;
|
|
9
9
|
private config;
|
|
10
10
|
private persistentCacheBaseline;
|
|
11
|
-
private readonly persistentCacheBySignal;
|
|
12
11
|
private progress;
|
|
13
12
|
private expectedAssets;
|
|
14
13
|
private languageSysroots;
|
|
@@ -29,6 +28,7 @@ export declare class WorkerAssetBridge {
|
|
|
29
28
|
private sourceAssetByteLimit;
|
|
30
29
|
handleMessage(event: MessageEvent<any>): boolean;
|
|
31
30
|
private respond;
|
|
31
|
+
private captureLoadContext;
|
|
32
32
|
private loadVerifiedAsset;
|
|
33
33
|
private validateAssetRequest;
|
|
34
34
|
private loadAsset;
|