wasm-idle 1.1.2 → 1.3.0
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 +211 -91
- package/dist/container/bash-profile.d.ts +80 -0
- package/dist/container/bash-profile.js +328 -0
- package/dist/{playground/container → container}/binding.d.ts +21 -8
- package/dist/{playground/container → container}/binding.js +109 -25
- package/dist/{playground/container → container}/clang-runtime.d.ts +11 -7
- package/dist/container/clang-runtime.js +561 -0
- package/dist/container/client.d.ts +14 -0
- package/dist/{playground/container → container}/client.js +2 -6
- package/dist/{playground/container → container}/explorer.d.ts +1 -1
- package/dist/container/index.d.ts +11 -0
- package/dist/container/index.js +11 -0
- package/dist/container/owner-worker.d.ts +19 -0
- package/dist/container/owner-worker.js +464 -0
- package/dist/{playground/container → container}/protocol.d.ts +12 -1
- package/dist/{playground/container → container}/runtime-adapter.d.ts +13 -11
- package/dist/{playground/container → container}/runtime-adapter.js +104 -41
- package/dist/{playground/container → container}/shell-control.d.ts +2 -2
- package/dist/{playground/container → container}/shell-control.js +93 -36
- package/dist/{playground/container → container}/workspace.d.ts +5 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/playground/assetBridge.js +5 -2
- package/dist/playground/assets.d.ts +8 -0
- package/dist/playground/clang.d.ts +5 -1
- package/dist/playground/clang.js +61 -5
- package/dist/playground/compiledLldb.d.ts +41 -0
- package/dist/playground/compiledLldb.js +167 -0
- package/dist/playground/d.d.ts +4 -1
- package/dist/playground/d.js +78 -9
- package/dist/playground/debugDeadline.d.ts +12 -0
- package/dist/playground/debugDeadline.js +34 -0
- package/dist/playground/debugMailbox.d.ts +12 -0
- package/dist/playground/debugMailbox.js +77 -0
- package/dist/playground/go.js +9 -4
- package/dist/playground/goDebugInstrumentation.js +24 -44
- package/dist/playground/java-debug-HUZVAK4F.js +124 -0
- package/dist/playground/java-debug-notices.txt +492 -0
- package/dist/playground/java.d.ts +17 -1
- package/dist/playground/java.js +159 -3
- package/dist/playground/javaDebug.d.ts +62 -0
- package/dist/playground/javaDebug.js +305 -0
- package/dist/playground/javaDebugBridge.d.ts +6 -0
- package/dist/playground/javaDebugBridge.js +250 -0
- package/dist/playground/javaDebugSource.d.ts +9 -0
- package/dist/playground/javaDebugSource.js +4 -0
- package/dist/playground/javaRuntimeErrors.js +34 -1
- package/dist/playground/lean4Assets.d.ts +1 -25
- package/dist/playground/lean4Assets.js +2 -123
- package/dist/playground/lfortranAssets.d.ts +2 -2
- package/dist/playground/lldbSession.d.ts +24 -2
- package/dist/playground/lldbSession.js +322 -59
- package/dist/playground/lldbSourcePath.d.ts +2 -0
- package/dist/playground/lldbSourcePath.js +9 -0
- package/dist/playground/lua.d.ts +20 -1
- package/dist/playground/lua.js +190 -8
- package/dist/playground/luaDebug.d.ts +1 -0
- package/dist/playground/luaDebug.js +1 -0
- package/dist/playground/nim.d.ts +1 -0
- package/dist/playground/nim.js +8 -0
- package/dist/playground/objectivec.d.ts +7 -6
- package/dist/playground/objectivec.js +75 -9
- package/dist/playground/options.d.ts +10 -4
- package/dist/playground/python.d.ts +11 -1
- package/dist/playground/python.js +203 -8
- package/dist/playground/pythonCompileOptions.d.ts +49 -0
- package/dist/playground/pythonCompileOptions.js +40 -0
- package/dist/playground/ruby.d.ts +10 -1
- package/dist/playground/ruby.js +66 -1
- package/dist/playground/rubyDebug.d.ts +21 -0
- package/dist/playground/rubyDebug.js +128 -0
- package/dist/playground/rust.d.ts +5 -1
- package/dist/playground/rust.js +128 -46
- package/dist/playground/sandbox.d.ts +8 -1
- package/dist/playground/staticRuntimeModuleVersion.d.ts +1 -1
- package/dist/playground/staticRuntimeModuleVersion.js +1 -1
- package/dist/playground/staticWorkerRuntime.js +8 -2
- package/dist/playground/stdinBuffer.d.ts +1 -1
- package/dist/playground/stdinBuffer.js +19 -2
- package/dist/playground/tinygo.js +7 -0
- package/dist/playground/typescript.js +8 -0
- package/dist/playground/v.d.ts +3 -2
- package/dist/playground/v.js +66 -12
- package/dist/playground/wasmC3Version.d.ts +2 -2
- package/dist/playground/wasmC3Version.js +2 -2
- package/dist/playground/wasmDebugVersion.d.ts +1 -1
- package/dist/playground/wasmDebugVersion.js +1 -1
- package/dist/playground/wasmLean4Version.d.ts +1 -110
- package/dist/playground/wasmLean4Version.js +2 -111
- package/dist/playground/wasmLfortranVersion.d.ts +2 -2
- package/dist/playground/wasmLfortranVersion.js +2 -2
- package/dist/playground/wasmLuaVersion.d.ts +1 -1
- package/dist/playground/wasmLuaVersion.js +1 -1
- package/dist/playground/wasmPrologVersion.d.ts +17 -17
- package/dist/playground/wasmPrologVersion.js +16 -16
- package/dist/playground/wasmRustVersion.d.ts +26 -38
- package/dist/playground/wasmRustVersion.js +25 -40
- package/dist/playground/wasmTypeScriptVersion.d.ts +3 -3
- package/dist/playground/wasmTypeScriptVersion.js +3 -3
- package/dist/playground/worker/clang.js +1 -1
- package/dist/playground/worker/cobol.js +1 -1
- package/dist/playground/worker/d.js +51 -2
- package/dist/playground/worker/fortran.js +1 -1
- package/dist/playground/worker/java.js +188 -35
- package/dist/playground/worker/javaDebugEvaluator.d.ts +16 -0
- package/dist/playground/worker/javaDebugEvaluator.js +44 -0
- package/dist/playground/worker/javaDebugRuntime.d.ts +24 -0
- package/dist/playground/worker/javaDebugRuntime.js +315 -0
- package/dist/playground/worker/javaOutput.d.ts +11 -0
- package/dist/playground/worker/javaOutput.js +54 -0
- package/dist/playground/worker/lua.js +13 -0
- package/dist/playground/worker/python.js +81 -23
- package/dist/playground/worker/pythonCompile.d.ts +4 -0
- package/dist/playground/worker/pythonCompile.js +122 -0
- package/dist/playground/worker/ruby.js +13 -0
- package/dist/playground/worker/rubyDebugPreview.d.ts +2 -0
- package/dist/playground/worker/rubyDebugPreview.js +80 -0
- package/dist/playground/worker/rubyTracepoint.d.ts +16 -0
- package/dist/playground/worker/rubyTracepoint.js +162 -0
- package/dist/playground/worker/rust.js +4 -1
- package/dist/playground/worker/v.js +30 -5
- package/dist/playground/zig.js +4 -0
- package/dist/pythonCompiler.d.ts +8 -0
- package/dist/pythonCompiler.js +52 -0
- package/package.json +76 -28
- package/dist/playground/container/ContainerExplorer.svelte +0 -307
- package/dist/playground/container/ContainerExplorer.svelte.d.ts +0 -14
- package/dist/playground/container/clang-runtime.js +0 -343
- package/dist/playground/container/client.d.ts +0 -15
- package/dist/playground/container/owner.worker.d.ts +0 -1
- package/dist/playground/container/owner.worker.js +0 -390
- package/dist/playground/container/release.d.ts +0 -31
- package/dist/playground/container/release.js +0 -612
- /package/dist/{playground/container → container}/explorer.js +0 -0
- /package/dist/{playground/container → container}/protocol.js +0 -0
- /package/dist/{playground/container → container}/workspace.js +0 -0
package/README.md
CHANGED
|
@@ -21,6 +21,11 @@ Compiler source pins, patches, and reproducible asset builds live in
|
|
|
21
21
|
[`seo-rii/wasm-llvm`](https://github.com/seo-rii/wasm-llvm); wasm-idle loads the generated
|
|
22
22
|
artifacts from external URLs instead of embedding them in npm packages.
|
|
23
23
|
|
|
24
|
+
The optional [`wasm-idle/container` entry](docs/container-website.md#sharing-the-execution-host)
|
|
25
|
+
shares the language/terminal owner, Bash/Clang setup, cancellation, and workspace synchronization
|
|
26
|
+
between browser applications. Hosts provide their Worker entry and pinned assets; UI and account
|
|
27
|
+
storage remain application-owned. Install `@wasm-idle/container` alongside wasm-idle to use it.
|
|
28
|
+
|
|
24
29
|
Verified downloads can be retained across reloads using a version-pinned, capacity-bounded
|
|
25
30
|
CacheStorage/IndexedDB cache. See [persistent asset cache configuration and coverage](docs/runtime-asset-cache.md)
|
|
26
31
|
for global/per-call opt-out, cleanup and prefetch APIs.
|
|
@@ -60,87 +65,134 @@ parsers, translators, emulators, or "subset" executors as language support. A la
|
|
|
60
65
|
listed only after normal user code runs on that actual runtime and stdin/stdout behavior, or a
|
|
61
66
|
documented stdin limitation, is covered by tests.
|
|
62
67
|
|
|
68
|
+
## C/C++ SIMD
|
|
69
|
+
|
|
70
|
+
Normal C/C++ runs support `<wasm_simd128.h>` and the SSE through AVX2 intrinsics exposed by
|
|
71
|
+
`<immintrin.h>` or `<x86intrin.h>`, using pinned Emscripten 6.0.0 compatibility headers. The SDK
|
|
72
|
+
compiler, web playground, Bash `clang` command, and bundled LLVM 22 clangd use the same Wasm SIMD profile.
|
|
73
|
+
AVX's 256-bit operations are implemented with pairs of 128-bit Wasm vectors; this does not
|
|
74
|
+
enable native x86 assembly. `<x86intrin.h>` provides this same SIMD subset; CPU-specific APIs such as
|
|
75
|
+
`__rdtsc` are unsupported. FMA, AVX-512 and other x86-only intrinsics are outside this profile.
|
|
76
|
+
|
|
77
|
+
The LLDB/WAMR debugger does not support SIMD, so LLDB builds retain their existing scalar target.
|
|
78
|
+
Use normal runs for SIMD programs. The compatibility sources, licenses, and immutable source
|
|
79
|
+
receipts are maintained by `scripts/sync-clang-simd-headers.mjs`.
|
|
80
|
+
|
|
81
|
+
## Compiler options
|
|
82
|
+
|
|
83
|
+
Expand **Compile options** in the playground to configure each language independently. Settings
|
|
84
|
+
are saved with the workspace and included in shared links and JSON backups. C and C++ expose
|
|
85
|
+
optimization (`-O0` through `-O3`, `-Os`, `-Oz`), warning levels, warnings as errors, pedantic
|
|
86
|
+
diagnostics, and GNU extensions. C supports C89 through C23 and the C2y draft; C++ supports C++98
|
|
87
|
+
through the C++26 draft. The selected C-family flags also configure clangd, so definitions,
|
|
88
|
+
include paths, warnings, and explicit standard overrides agree with execution.
|
|
89
|
+
|
|
90
|
+
| Language | Additional compiler arguments |
|
|
91
|
+
| ------------------------------------- | ------------------------------------------------------------------------------------- |
|
|
92
|
+
| C / C++ / Objective-C / Objective-C++ | Clang flags such as `-DVALUE=42 -Iinclude -Wno-unused-variable` |
|
|
93
|
+
| D | LDC flags such as `-O2 -w -d-version=Example` |
|
|
94
|
+
| Zig | `build-exe` flags such as `-O ReleaseFast` |
|
|
95
|
+
| V | V frontend flags such as `-prod -d example` |
|
|
96
|
+
| COBOL | GnuCOBOL flags such as `-Wall -std=cobol2014 -fixed` |
|
|
97
|
+
| Haskell | GHC flags such as `-O2 -Wall -XGHC2021`; separate program arguments are unavailable |
|
|
98
|
+
| Fortran (`FORTRAN`) | Clang flags for generated C, such as `-O2 -w`; these do not configure f2c or LFortran |
|
|
99
|
+
|
|
100
|
+
Additional arguments follow the C-family selections, allowing explicit overrides. Space-separated
|
|
101
|
+
arguments support single/double quotes and backslash escapes without shell expansion. GHC's
|
|
102
|
+
string-based runtime rejects empty arguments and arguments containing spaces. The toolbar's
|
|
103
|
+
**Program arguments** field passes runtime argv separately, including for C/C++. LLDB builds keep
|
|
104
|
+
their required `-O0` and debug information. Rust, Go, and OCaml retain their existing structured
|
|
105
|
+
profile, target, and backend controls. See the [Clang manual](https://clang.llvm.org/docs/UsersManual.html)
|
|
106
|
+
for the meaning of Clang's compiler flags.
|
|
107
|
+
|
|
63
108
|
## Support matrix
|
|
64
109
|
|
|
65
110
|
All execution entries run in the browser through real runtime, compiler, or interpreter
|
|
66
111
|
implementations. `Editor support` lists browser LSP/compiler diagnostics when wired; `syntax`
|
|
67
|
-
means Monaco syntax highlighting only. C, C++,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
|
78
|
-
|
|
|
79
|
-
|
|
|
80
|
-
|
|
|
81
|
-
|
|
|
82
|
-
|
|
|
83
|
-
|
|
|
84
|
-
|
|
|
85
|
-
|
|
|
86
|
-
|
|
|
87
|
-
|
|
|
88
|
-
|
|
|
89
|
-
|
|
|
90
|
-
|
|
|
91
|
-
|
|
|
92
|
-
|
|
|
93
|
-
|
|
|
94
|
-
|
|
|
95
|
-
|
|
|
96
|
-
|
|
|
97
|
-
|
|
|
98
|
-
|
|
|
99
|
-
|
|
|
100
|
-
|
|
|
101
|
-
|
|
|
102
|
-
|
|
|
103
|
-
|
|
|
104
|
-
|
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
|
108
|
-
|
|
|
109
|
-
|
|
|
110
|
-
|
|
|
111
|
-
|
|
|
112
|
-
|
|
|
113
|
-
|
|
|
114
|
-
|
|
|
115
|
-
|
|
|
116
|
-
|
|
|
117
|
-
|
|
|
118
|
-
|
|
|
119
|
-
|
|
|
120
|
-
|
|
|
121
|
-
|
|
|
122
|
-
|
|
|
123
|
-
|
|
|
124
|
-
|
|
|
125
|
-
|
|
|
126
|
-
|
|
|
127
|
-
|
|
|
128
|
-
|
|
|
129
|
-
|
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
|
|
|
133
|
-
|
|
|
134
|
-
|
|
|
135
|
-
|
|
|
136
|
-
|
|
|
137
|
-
|
|
|
112
|
+
means Monaco syntax highlighting only. C, C++, Objective-C, Objective-C++, V, and
|
|
113
|
+
`wasm32-wasip1` Rust use LLDB/WAMR. Java uses parser-based source hooks compiled by the real
|
|
114
|
+
javac/TeaVM pipeline, with current-frame local values, array inspection and read-only
|
|
115
|
+
primitive/String snapshot expressions. Lua uses the pinned
|
|
116
|
+
MobDebug engine in its real VM; Ruby uses CRuby TracePoint and Binding without rewriting user
|
|
117
|
+
source. Enabled debugger backends run in the page and its Workers without browser extensions.
|
|
118
|
+
JavaScript and TypeScript debugging stays disabled. See
|
|
119
|
+
[language debugger details](docs/debugger-language-support.md) for verified operations and
|
|
120
|
+
remaining producer requirements.
|
|
121
|
+
|
|
122
|
+
| Language | Browser runtime/compiler | Stdin | Editor support | Debug |
|
|
123
|
+
| ---------------- | -------------------------------------------- | ----- | -------------------- | -------------- |
|
|
124
|
+
| GolfScript | Original GolfScript interpreter on Ruby/WASI | Yes | plain text | - |
|
|
125
|
+
| APECode | Original APECode interpreter on Pyodide | Yes | plain text | - |
|
|
126
|
+
| LOLCODE 1.3 | Original lci 1.3 interpreter on WASI | Yes | plain text | - |
|
|
127
|
+
| UHMLANG (엄준식) | Original Umjunsik Go interpreter on WASI | Yes | plain text | - |
|
|
128
|
+
| Aheui | rpaheui 1.2.5 on Pyodide | Yes | plain text | - |
|
|
129
|
+
| Malbolge | Ben Olmstead Malbolge on WASI | Yes | plain text | - |
|
|
130
|
+
| Whitespace | koturn/Whitespace 0.3 on WASI | Yes | plain text | - |
|
|
131
|
+
| C3 | C3 0.8.3 + LLVM/lld WASM (byte ABI) | Yes | c3-lsp | - |
|
|
132
|
+
| C | @wasm-idle/llvm-core / Clang WASI | Yes | clangd | LLDB |
|
|
133
|
+
| C++ | @wasm-idle/llvm-core / Clang WASI | Yes | clangd | LLDB |
|
|
134
|
+
| Objective-C | GNUstep libobjc2 + @wasm-idle/llvm-core | Yes | clangd | LLDB |
|
|
135
|
+
| Objective-C++ | GNUstep libobjc2 + @wasm-idle/llvm-core | Yes | clangd | LLDB |
|
|
136
|
+
| Python | Pyodide | Yes | Python LSP | Trace |
|
|
137
|
+
| Befunge-93 | Chris Pressey Befunge-93 on WASI | Yes | plain text | - |
|
|
138
|
+
| Brainfuck | susam/bfc on WASI | Yes | plain text | - |
|
|
139
|
+
| Hy | Hy 1.3.1 on Pyodide | Yes | syntax | - |
|
|
140
|
+
| Java | TeaVM | Yes | javacs LSP (TeaVM) | Trace (source) |
|
|
141
|
+
| Rust | wasm-rust / browser rustc | Yes | rustc diagnostics | LLDB |
|
|
142
|
+
| Go | wasm-go / browser Go compiler | Yes | compiler diagnostics | Trace |
|
|
143
|
+
| D | wasm-d | Yes | syntax | - |
|
|
144
|
+
| C# | wasm-dotnet | Yes | compiler diagnostics | - |
|
|
145
|
+
| F# | wasm-dotnet | Yes | compiler diagnostics | - |
|
|
146
|
+
| VB.NET | wasm-dotnet | Yes | compiler diagnostics | - |
|
|
147
|
+
| Elixir | AtomVM / Popcorn | Yes | syntax | - |
|
|
148
|
+
| Erlang | AtomVM / Popcorn | Yes | syntax | - |
|
|
149
|
+
| Prolog | SWI-Prolog WASM worker | Yes | syntax | - |
|
|
150
|
+
| Gleam | Gleam precompiled browser runtime | Yes | compiler diagnostics | - |
|
|
151
|
+
| Grain | Grain 0.7.2 js_of_ocaml compiler + WASI | Yes | Grain LSP | - |
|
|
152
|
+
| Perl | Perl WASM worker | Yes | syntax | - |
|
|
153
|
+
| Tcl | Wacl Tcl WASM worker | Yes | syntax | - |
|
|
154
|
+
| AWK | GoAWK WASM worker | Yes | syntax | - |
|
|
155
|
+
| Pascal | pas2js worker | Yes | syntax | - |
|
|
156
|
+
| Forth | WAForth WASM worker | Yes | forth-lsp | - |
|
|
157
|
+
| J | J playground WASM worker | Yes | syntax | - |
|
|
158
|
+
| BQN | CBQN WASM worker | Yes | syntax | - |
|
|
159
|
+
| Janet | Janet VM WASM worker | Yes | syntax | - |
|
|
160
|
+
| Julia | Julia 1.3.0-DEV.560 legacy WASM worker | Yes | syntax | - |
|
|
161
|
+
| Nim | Nim 2.2.4 WASM + clang/lld WASM | Yes | Nim LSP | - |
|
|
162
|
+
| Bash | GNU Bash WASIX / Wasmer SDK | Yes | Bash LSP | - |
|
|
163
|
+
| ClojureScript | cljs.js self-hosted compiler | Yes | syntax | - |
|
|
164
|
+
| ReScript | ReScript 12.3.1 compiler (js_of_ocaml) | Yes | ReScript LSP + types | - |
|
|
165
|
+
| TinyGo | wasm-tinygo | Yes | syntax | - |
|
|
166
|
+
| OCaml | wasm-of-js-of-ocaml / js_of_ocaml | Yes | syntax | - |
|
|
167
|
+
| JavaScript | wasm-typescript / TypeScript service | Yes | TypeScript LSP | - |
|
|
168
|
+
| TypeScript | wasm-typescript / TypeScript service | Yes | TypeScript LSP | - |
|
|
169
|
+
| AssemblyScript | AssemblyScript compiler | Yes | AssemblyScript LSP | - |
|
|
170
|
+
| WAT | WABT | Yes | WAT LSP | - |
|
|
171
|
+
| WASM | Browser WebAssembly + WASI shim | Yes | syntax | - |
|
|
172
|
+
| Lua | Wasmoon | Yes | syntax | MobDebug |
|
|
173
|
+
| Fennel | fennel.lua on Wasmoon | Yes | Fennel LSP | - |
|
|
174
|
+
| Zig | zig_small.wasm | Yes | syntax | - |
|
|
175
|
+
| Scheme | Puppy Scheme / wasm-lisp | Yes | syntax | - |
|
|
176
|
+
| Common Lisp | ECL 26.5.5 (Embeddable Common-Lisp) WASM | Yes | syntax | - |
|
|
177
|
+
| Ruby | CRuby WASI | Yes | syntax | TracePoint |
|
|
178
|
+
| Haskell | ghc-in-browser | Yes | syntax | - |
|
|
179
|
+
| LFortran | LFortran LLVM evaluator (experimental) | Yes | compiler diagnostics | - |
|
|
180
|
+
| Lean 4 | Lean 4.34.1 lean --run (Emscripten) | Yes | Lean LSP (Init) | - |
|
|
181
|
+
| Fortran | f2c + @wasm-idle/llvm-core | Yes | Fortran LSP | - |
|
|
182
|
+
| COBOL | GnuCOBOL 3.2 + @wasm-idle/llvm-core | Yes | SuperBOL OSS LSP | - |
|
|
183
|
+
| V | V 0.5.2 + @wasm-idle/llvm-core | Yes | v-analyzer LSP | LLDB |
|
|
184
|
+
| R | WebR | Yes | syntax | - |
|
|
185
|
+
| Octave | wasm-octave | Yes | syntax | - |
|
|
186
|
+
| DuckDB | DuckDB-Wasm | Files | DuckDB LSP | - |
|
|
187
|
+
| SQLite | sql.js | n/a | syntax | - |
|
|
188
|
+
| PostgreSQL | PostgreSQL 18 / PGlite | Files | syntax | - |
|
|
189
|
+
| PHP | PHP 8.4 / php-wasm | Yes | PHPantom LSP | - |
|
|
138
190
|
|
|
139
191
|
## Browser LLDB debug runtime
|
|
140
192
|
|
|
141
193
|
Normal execution still compiles and instantiates the user module with the browser WebAssembly
|
|
142
|
-
engine and the existing WASI host. C, C++,
|
|
143
|
-
lazy-loaded path:
|
|
194
|
+
engine and the existing WASI host. C, C++, Objective-C, Objective-C++, V, and
|
|
195
|
+
`wasm32-wasip1` Rust debug sessions use a separate, lazy-loaded path:
|
|
144
196
|
|
|
145
197
|
```text
|
|
146
198
|
Monaco / debug UI
|
|
@@ -287,20 +339,20 @@ variables or import SvelteKit modules.
|
|
|
287
339
|
| GolfScript<br>`GOLFSCRIPT` | darrenks/golfscript cded5425 (upstream MIT notice), original Ruby source on the bundled Ruby/WASI VM | Loads the unchanged GolfScript CLI in a fresh Ruby VM; supports stack operations, arrays, blocks, arbitrary integers, Ruby string interpolation and original -q/-n/-r options; reads stdin to EOF, or accepts argument-array input after --, with original implicit final output | `runtimeAssets.golfscript.interpreterUrl`, `runtimeAssets.rootUrl`, `runtimeAssets.ruby`, `stdin`, `programArgs`, `activePath`, `workspaceFiles`; code-pinned original script, readonly source files, execution limits and cancellation; prepare initializes Ruby without running GolfScript source |
|
|
288
340
|
| APECode<br>`APECODE` | seo-rii/apecode 0.1.0 (c7ae98d3), original pure Python wheel on Pyodide; upstream has no declared standalone license | Runs the original parser and state-machine interpreter through run_source; reads numeric test cases to EOF, models rock weights, grippers and built-in states, and writes original result/trace bytes through Python file descriptors; each run creates fresh interpreter state | `runtimeAssets.apecode.baseUrl`, `runtimeAssets.rootUrl`, `stdin`, `activePath`, `workspaceFiles`; code-pinned local wheel; execution timeout, output and workspace limits plus cancellation; prepare loads the interpreter without parsing or running user source |
|
|
289
341
|
| LOLCODE 1.3<br>`LOLCODE` | justinmeza/lci v1.3 (GPL-3.0-or-later), wasi-sdk 33.0 build | Runs the unchanged lci lexer, parser and interpreter for LOLCODE 1.3, including functions, loops, arrays, type casts and Unicode string escapes; GIMMEH reads a line and VISIBLE normally adds a newline; each run starts with fresh state | `runtimeAssets.rootUrl`, `stdin`, `activePath`, `workspaceFiles`; fixed interpreter argv; prepare compiles the runtime without executing or validating the source |
|
|
290
|
-
| UHMLANG (엄준식)<br>`UHMLANG`
|
|
342
|
+
| UHMLANG (엄준식)<br>`UHMLANG` | rycont/umjunsik-lang e973f9d2 (MIT), Go 1.25.3 WASI build | Runs the original Go lexer, parser and evaluator with signed 64-bit arithmetic, variables, jumps and conditional statements; numeric stdin is line based and character output writes Unicode code points; each execution starts with fresh state | `runtimeAssets.rootUrl`, `stdin`, `activePath`, `workspaceFiles`; fixed interpreter argv; prepare compiles the runtime without executing or validating the source |
|
|
291
343
|
| Aheui<br>`AHEUI` | aheui/rpaheui 1.2.5 (BSD-2-Clause) on Pyodide 314.0.7; one receipt-verified pure Python wheel | Runs the original rpaheui compiler and interpreter with --no-c --warning-limit=0, 26 stacks, a queue and a port, with Unicode character/integer stdin; normal halt returns its stack value; no handwritten parser or subset executor | `runtimeAssets.rootUrl`, `runtimeAssets.aheui.baseUrl`, `stdin`, `activePath`, `workspaceFiles`; fixed interpreter argv; prepare loads the interpreter without executing source |
|
|
292
344
|
| Malbolge<br>`MALBOLGE` | Original Ben Olmstead interpreter, TryItOnline/malbolge b0869870 (public domain), compiled with WASI SDK 33 | Runs the original 59049-cell ternary and self-modifying interpreter; source-file input is separate from byte stdin/stdout; EOF stores 59048; requires at least two non-whitespace source bytes | `runtimeAssets.rootUrl`, `stdin`, `activePath`, `workspaceFiles`; fixed interpreter argv; prepare compiles the runtime without executing or validating the source |
|
|
293
345
|
| Whitespace<br>`WHITESPACE` | koturn/Whitespace 22a57aab (MIT), compiled with WASI SDK 33 | Runs the upstream Whitespace 0.3 interpreter with a documented divisor-guard correction, copy/slide, heap, labels, calls and signed 32-bit integers; character/numeric stdin and exact stdout; character EOF is -1; source limit 65535 UTF-8 bytes | `runtimeAssets.rootUrl`, `stdin`, `activePath`, `workspaceFiles`; fixed interpreter argv; prepare compiles the runtime without executing or validating the source |
|
|
294
346
|
| 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 |
|
|
295
|
-
| C<br>`C` | @wasm-idle/llvm-core@1.0
|
|
296
|
-
| C++<br>`CPP` | @wasm-idle/llvm-core@1.0
|
|
297
|
-
| Objective-C<br>`OBJC` | GNUstep libobjc2 v2.3 assets from the `wasm-llvm` producer + @wasm-idle/llvm-core@1.0
|
|
298
|
-
| 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
|
|
347
|
+
| C<br>`C` | @wasm-idle/llvm-core@1.3.0 / 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` |
|
|
348
|
+
| C++<br>`CPP` | @wasm-idle/llvm-core@1.3.0 / 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` |
|
|
349
|
+
| Objective-C<br>`OBJC` | GNUstep libobjc2 v2.3 assets from the `wasm-llvm` producer + @wasm-idle/llvm-core@1.3.0 | `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` |
|
|
350
|
+
| Objective-C++<br>`OBJECTIVECXX` | Same GNUstep libobjc2 v2.3 + libc++ assets as Objective-C from the `wasm-llvm` producer + @wasm-idle/llvm-core@1.3.0; 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` |
|
|
299
351
|
| 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` |
|
|
300
352
|
| Befunge-93<br>`BEFUNGE93` | catseye/Befunge-93 8fe4065c (BSD-3-Clause), compiled with WASI SDK 33 | Runs the original interpreter with an 80 by 25 wrapping playfield, signed 32-bit stack, string mode and self-modifying p/g instructions; character and integer stdin share the WASI terminal; character EOF is -1 | `runtimeAssets.rootUrl`, `stdin`, `activePath`, `workspaceFiles`; fixed quiet argv; prepare compiles the runtime without executing or validating the source |
|
|
301
353
|
| Brainfuck<br>`BRAINFUCK` | susam/bfc b1b92fc (MIT), compiled with WASI SDK 33 | Runs the pinned upstream interpreter in a browser Worker with a fresh read-only source filesystem; 30000 wrapping 8-bit cells, UTF-8 byte stdin/stdout, EOF sets the cell to zero | `runtimeAssets.rootUrl`, `stdin`, `activePath`, `workspaceFiles`; fixed interpreter argv; prepare compiles the runtime without executing or validating the source |
|
|
302
354
|
| 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` |
|
|
303
|
-
| Java<br>`JAVA` | @wasm-idle/runtime-teavm@0.0.0 / TeaVM compiler assets
|
|
355
|
+
| Java<br>`JAVA` | @wasm-idle/runtime-teavm@0.0.0 / TeaVM compiler assets; javacs 0.2.38 LSP via TeaVM 0.16.0 | `compiler.wasm` compiles Java to browser WASM/JS; supports `stdin` and `programArgs` | `runtimeAssets.java.baseUrl`/`loader` or `rootUrl`; editor: `runtimeAssets.javaLsp.baseUrl`/`assets` |
|
|
304
356
|
| 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 |
|
|
305
357
|
| 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` |
|
|
306
358
|
| D<br>`D` | wasm-d@0.1.0 / ldc-1.42.0-wasi-smoke | `ldc2 -conf=/toolchain/etc/ldc2.conf -mtriple=wasm32-wasi -c` then `wasm-ld` to WASI preview1; supports `stdin` and `programArgs` | `runtimeAssets.d.moduleUrl` or `PUBLIC_WASM_D_MODULE_URL`; `activePath`, `programArgs` |
|
|
@@ -309,7 +361,7 @@ variables or import SvelteKit modules.
|
|
|
309
361
|
| 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 |
|
|
310
362
|
| 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` |
|
|
311
363
|
| 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 |
|
|
312
|
-
| Prolog<br>`PROLOG` | swipl-wasm@8.2.
|
|
364
|
+
| Prolog<br>`PROLOG` | swipl-wasm@8.2.5 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` |
|
|
313
365
|
| 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` |
|
|
314
366
|
| 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` |
|
|
315
367
|
| 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` |
|
|
@@ -327,8 +379,8 @@ variables or import SvelteKit modules.
|
|
|
327
379
|
| 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` |
|
|
328
380
|
| 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` |
|
|
329
381
|
| 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` |
|
|
330
|
-
| JavaScript<br>`JAVASCRIPT` | wasm-typescript@0.1.0 / @swc/wasm-typescript@1.16.
|
|
331
|
-
| TypeScript<br>`TYPESCRIPT` | wasm-typescript@0.1.0 / @swc/wasm-typescript@1.16.
|
|
382
|
+
| JavaScript<br>`JAVASCRIPT` | wasm-typescript@0.1.0 / @swc/wasm-typescript@1.16.20 | TypeScript service transpiles JS/TS and runs in browser sandbox; supports `stdin` and `programArgs` | `runtimeAssets.typescript.moduleUrl`/`libUrl` or `PUBLIC_WASM_TYPESCRIPT_MODULE_URL` |
|
|
383
|
+
| TypeScript<br>`TYPESCRIPT` | wasm-typescript@0.1.0 / @swc/wasm-typescript@1.16.20 | TypeScript service transpiles then runs in browser sandbox; supports `stdin` and `programArgs` | `runtimeAssets.typescript.moduleUrl`/`libUrl` or `PUBLIC_WASM_TYPESCRIPT_MODULE_URL` |
|
|
332
384
|
| 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` |
|
|
333
385
|
| 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` |
|
|
334
386
|
| 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` |
|
|
@@ -341,15 +393,15 @@ variables or import SvelteKit modules.
|
|
|
341
393
|
| 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` |
|
|
342
394
|
| 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 |
|
|
343
395
|
| Lean 4<br>`LEAN4` | receipt-pinned `wasm-llvm/producer/lean-browser` release downloaded from its immutable commit into `static/wasm-lean4` | real Lean 4.34.1 frontend and IR interpreter (`lean --run`) built for wasm32 Emscripten with pthreads; imports a wasm32 `Init` library compiled by that build; shared-ring stdin supports interactive `getLine` and EOF | `runtimeAssets.lean4.baseUrl` relocates the reviewed bundle; `stdin`, program arguments, `activePath`, cancellation and execution limits; single-file programs importing `Init` only (no `Std`/`Lean` imports or Lake packages) |
|
|
344
|
-
| Fortran<br>`FORTRAN` | Netlib f2c 2022-09-09 + `@cowasm/f2c 1.0.0` libf2c + @wasm-idle/llvm-core@1.0
|
|
345
|
-
| COBOL<br>`COBOL` | GnuCOBOL 3.2 + GMP 6.3.0 assets from the `wasm-llvm` producer + @wasm-idle/llvm-core@1.0
|
|
346
|
-
| 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
|
|
396
|
+
| Fortran<br>`FORTRAN` | Netlib f2c 2022-09-09 + `@cowasm/f2c 1.0.0` libf2c + @wasm-idle/llvm-core@1.3.0 | 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` |
|
|
397
|
+
| COBOL<br>`COBOL` | GnuCOBOL 3.2 + GMP 6.3.0 assets from the `wasm-llvm` producer + @wasm-idle/llvm-core@1.3.0 | 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` |
|
|
398
|
+
| V<br>`V` | V 0.5.2 compiler, vlib and WASI C sysroot assets from the `wasm-llvm` producer + @wasm-idle/llvm-core@1.3.0 | 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` |
|
|
347
399
|
| 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` |
|
|
348
400
|
| 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_*` |
|
|
349
401
|
| 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` |
|
|
350
|
-
| SQLite<br>`SQLITE` | static ESM `static/wasm-sqlite/runtime.mjs` produced from sql.js@1.
|
|
351
|
-
| PostgreSQL<br>`POSTGRESQL` | static ESM `static/wasm-postgresql/runtime.mjs` produced from @electric-sql/pglite@0.5.
|
|
352
|
-
| 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.
|
|
402
|
+
| SQLite<br>`SQLITE` | static ESM `static/wasm-sqlite/runtime.mjs` produced from sql.js@1.15.1 | 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` |
|
|
403
|
+
| PostgreSQL<br>`POSTGRESQL` | static ESM `static/wasm-postgresql/runtime.mjs` produced from @electric-sql/pglite@0.5.11 | 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` |
|
|
404
|
+
| 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.60 + @php-wasm/universal@3.1.60 | 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` |
|
|
353
405
|
|
|
354
406
|
### Blocked candidates
|
|
355
407
|
|
|
@@ -471,7 +523,7 @@ opaque, receipt-pinned storage paths; these files are deployed page assets, not
|
|
|
471
523
|
contents.
|
|
472
524
|
|
|
473
525
|
PHP is built independently under `producers/wasm-php`, with its own lockfile and exact
|
|
474
|
-
`@php-wasm/web-8-4@3.1.
|
|
526
|
+
`@php-wasm/web-8-4@3.1.60` and `@php-wasm/universal@3.1.60` dependencies. Refresh the checked-in
|
|
475
527
|
page asset only when changing that producer:
|
|
476
528
|
|
|
477
529
|
```bash
|
|
@@ -854,8 +906,8 @@ and other workspace `.sql` files run first. Preloaded stdin is exposed as the se
|
|
|
854
906
|
`/dev/blob` (`COPY t FROM '/dev/blob'` or `pg_read_file('/dev/blob')`). Override the module with
|
|
855
907
|
`PUBLIC_WASM_POSTGRESQL_MODULE_URL` or `runtimeAssets.postgresql.moduleUrl`.
|
|
856
908
|
PHP dynamically imports the checked-in `static/wasm-php/runtime.mjs` output from the standalone
|
|
857
|
-
`producers/wasm-php` build. That producer pins `@php-wasm/web-8-4@3.1.
|
|
858
|
-
`@php-wasm/universal@3.1.
|
|
909
|
+
`producers/wasm-php` build. That producer pins `@php-wasm/web-8-4@3.1.60` and
|
|
910
|
+
`@php-wasm/universal@3.1.60`. It always creates PHP 8.4; there is no version field or
|
|
859
911
|
environment-based version selector. Override only the module location with
|
|
860
912
|
`PUBLIC_WASM_PHP_MODULE_URL` or `runtimeAssets.php.moduleUrl`. A custom host must serve the entry's
|
|
861
913
|
sibling chunks and assets with compatible CORS and cross-origin isolation headers; a cross-origin
|
|
@@ -1064,6 +1116,74 @@ external static hosting and loaded by `@wasm-idle/llvm-core`. Also powered by Py
|
|
|
1064
1116
|
`wasm-dotnet`, `wasm-of-js-of-ocaml`, `wasm-typescript`, `wasm-lisp`,
|
|
1065
1117
|
`wasm-wat`, `wasm-lua`, Fennel, `wasm-zig`, CBQN, Janet, AtomVM/Popcorn, and `ghc-in-browser`.
|
|
1066
1118
|
|
|
1119
|
+
### Python bytecode compilation
|
|
1120
|
+
|
|
1121
|
+
Choose a Python `.py` file and click **Compile .pyc** to download its compiled bytecode.
|
|
1122
|
+
**Python bytecode options** lets you change the invalidation mode and, in timestamp mode,
|
|
1123
|
+
set the source timestamp in Unix seconds.
|
|
1124
|
+
The browser SDK exposes the same operation independently of playground sessions:
|
|
1125
|
+
|
|
1126
|
+
```ts
|
|
1127
|
+
import { compilePython } from 'wasm-idle';
|
|
1128
|
+
|
|
1129
|
+
const controller = new AbortController();
|
|
1130
|
+
const result = await compilePython('print("Hello")', {
|
|
1131
|
+
fileName: 'main.py',
|
|
1132
|
+
optimize: 0,
|
|
1133
|
+
runtimeAssets: { rootUrl: 'https://cdn.example.com/repl' },
|
|
1134
|
+
signal: controller.signal
|
|
1135
|
+
});
|
|
1136
|
+
// result.path: "main.pyc"
|
|
1137
|
+
// result.data: Uint8Array, suitable for a Blob or binary file storage
|
|
1138
|
+
// result.pythonVersion, result.cacheTag, result.magicNumber identify the compiler format.
|
|
1139
|
+
```
|
|
1140
|
+
|
|
1141
|
+
Each request uses a dedicated Pyodide worker and disposes it on success, failure, or cancellation.
|
|
1142
|
+
It calls CPython's `py_compile` without executing user code or installing its imports, and leaves
|
|
1143
|
+
the playground workspace and active interpreter unchanged. By default, the output uses checked-hash
|
|
1144
|
+
invalidation, which stores a source hash instead of a timestamp, and the relative `fileName` in
|
|
1145
|
+
tracebacks. With the same source, `fileName`, options, and CPython runtime version, repeated
|
|
1146
|
+
compilations produce identical bytes, regardless of the wall clock or temporary directory.
|
|
1147
|
+
Pin the runtime assets when comparing builds across machines or releases.
|
|
1148
|
+
`fileName` defaults to `main.py`;
|
|
1149
|
+
`optimize` accepts `0`, `1` (remove assertions), or `2` (also remove docstrings).
|
|
1150
|
+
|
|
1151
|
+
The optional `invalidationMode` selects CPython's bytecode cache format:
|
|
1152
|
+
|
|
1153
|
+
| Mode | Header and source validation |
|
|
1154
|
+
| ------------------------ | --------------------------------------------------------------------------------------- |
|
|
1155
|
+
| `checked-hash` (default) | Stores a source hash; Python checks source content when validating the cache. |
|
|
1156
|
+
| `unchecked-hash` | Stores a source hash; Python normally trusts the cache without checking source content. |
|
|
1157
|
+
| `timestamp` | Stores source modification time and encoded source byte length. |
|
|
1158
|
+
|
|
1159
|
+
In `timestamp` mode, `timestamp` defaults to **0**, keeping this mode reproducible too.
|
|
1160
|
+
To choose another fixed time, supply an integer Unix timestamp from `0` to `4294967295`:
|
|
1161
|
+
|
|
1162
|
+
```ts
|
|
1163
|
+
const result = await compilePython(source, {
|
|
1164
|
+
fileName: 'pkg/main.py',
|
|
1165
|
+
invalidationMode: 'timestamp',
|
|
1166
|
+
timestamp: 1_700_000_000
|
|
1167
|
+
});
|
|
1168
|
+
```
|
|
1169
|
+
|
|
1170
|
+
`timestamp` is accepted only with `invalidationMode: 'timestamp'`; hash modes have no timestamp
|
|
1171
|
+
field. To use the current time, explicitly pass `Math.floor(Date.now() / 1000)` in timestamp
|
|
1172
|
+
mode; the resulting bytes then depend on that time. When distributing a timestamp-based cache
|
|
1173
|
+
alongside source, its timestamp and encoded byte size must match the source file's metadata
|
|
1174
|
+
for Python to reuse the cache.
|
|
1175
|
+
|
|
1176
|
+
The optional `progress` callback and `persistentCache` setting follow the runtime asset APIs.
|
|
1177
|
+
`limits` supports asset/startup/compile deadlines, `maxAssetBytes`, `maxWorkspaceBytes` for the
|
|
1178
|
+
source, and `maxOutputBytes` for the returned bytecode.
|
|
1179
|
+
|
|
1180
|
+
The generated file targets the loaded CPython bytecode version; it does not bundle imported
|
|
1181
|
+
modules. Standard `.pyc` compilation rejects top-level `await`, even though the playground's
|
|
1182
|
+
interactive execution supports it. Source-free files should be distributed as `module.pyc`
|
|
1183
|
+
beside other modules, rather than as orphaned `__pycache__` entries. Bytecode upload/execution
|
|
1184
|
+
is not a new playground input mode. See Python's [py_compile documentation](https://docs.python.org/3.14/library/py_compile.html)
|
|
1185
|
+
and [compiled module behavior](https://docs.python.org/3.14/tutorial/modules.html#compiled-python-files).
|
|
1186
|
+
|
|
1067
1187
|
### Ruby split standard library
|
|
1068
1188
|
|
|
1069
1189
|
The bundled Ruby runtime also provides a verified `ruby.splitStdlib: true` profile. It compiles the genuine Ruby core Wasm while fetching the complete standard library and bundled gems as a separate read-only filesystem pack. The web demo selects this profile; library consumers retain the embedded-stdlib profile unless they opt in. Custom trust profiles continue to use the embedded path.
|