Ecosystem · GroupTherapyOrg
Ecosystem & Compatibility
WasmTarget.jl powers the GroupTherapyOrg browser stack and compiles tested workloads from Julia's scientific and standard library ecosystem to standalone WasmGC.
The GroupTherapyOrg Browser Stack
Each browser package builds on WasmTarget.jl through typed host_modules and WasmTarget.@wasm_overlay without custom compiler forks or plugins:
| Package | Host Surface | Role |
|---|---|---|
| WasmTarget.jl | wasm:js-string | Pure-Julia WasmGC compiler built directly on Julia type inference and TrimVerifier. |
| Therapy.jl | "dom", "for_fns" | Server-side rendering and fine-grained reactive @island web framework compiling client components to WasmGC. |
| WasmMakie.jl | "canvas2d" (72 ops) | Makie-style 2D and projected 3D (Axis3) interactive plotting compiled to browser Canvas2D. |
| Snapshot.jl | Therapy + WasmMakie | Exports reactive Pluto notebooks into self-contained HTML + WasmGC pages for static-subset cells. |
Tested Julia Ecosystem Workloads
Each row summarizes the exact kernels checked in our native-versus-WasmGC differential testbed and notes what has not been audited yet. See the Ecosystem Support Matrix for the full per-package breakdown.
| Domain / Package | Verified Kernels | Not Yet Verified / Outside | Status |
|---|---|---|---|
Base (static subset) | Numerics, UTF-8 String, multi-dim Array, Dict, IdDict, cyclic structs, Tuple, Exceptions | eval, invokelatest, Tasks/Threads, file and network I/O | Verified |
LinearAlgebra & SparseArrays | Dense real dot, norm, matmul, lu, qr, cholesky, det, symmetric eigvals, svd; SparseMatrixCSC mul | Complex/non-symmetric LAPACK, SuiteSparse direct sparse solves | Tested subset |
Statistics, Random, Printf, Dates, TOML, Logging | mean/std/var/median/quantile, Xoshiro RNG, @sprintf, Date/DateTime math, TOML.parse, folded logs | MersenneTwister, dynamic Printf.Format, TOML.print, custom runtime logger sinks | Tested subset |
SciML (10 benchmark workloads) | OrdinaryDiffEq (Tsit5, Vern7, Rodas5P), host-lowered MTK ODEs, LinearSolve (LU, QR, GMRES), NonlinearSolve (Newton, TrustRegion) | Callbacks/events, SDE/DDE/DAE/BVP/Jump solvers, sparse Jacobians, in-Wasm symbolic MTK | Tested subset |
StaticArrays & ForwardDiff | SVector/SMatrix linear algebra plus dual-number derivative, gradient, jacobian, and hessian (explicit Chunk) | Dynamic chunk heuristics, MArray edge cases, SizedArray wrappers | Tested subset |
Images.jl (15 benchmark workloads) | imfilter (Gaussian, Sobel, Laplacian), imresize, otsu_threshold, morphology, Canny, SSIM, Gray/RGB/HSV/Lab | Disk image I/O codecs (PNG/JPEG), segmentation, feature descriptors, GPU arrays | Tested subset |
FFTL.jl | Pure-Julia 1D/2D/3D complex fft/ifft, real rfft/irfft, and orthonormal dct/idct without FFTW | Threaded SIMD pointer plans, general r2r kinds beyond DCT-II/III, GPU extensions | Tested subset |
StatsBase & Interpolations | Histograms, zscore, autocor, countmap, sampling, and 1D linear interpolation | Weighted estimators, statistical tests, cubic B-spline and multi-dim boundary paths | Tested subset |
General-Safe Package Extensions
Packages never need to commit type piracy or mutate Base to support WebAssembly. WasmTarget.@wasm_overlay registers Wasm-only replacements in WasmTarget.EXT_METHOD_TABLE, which is consulted only during WasmGC compilation while native CPU Julia keeps calling the original BLAS, C, or host implementation untouched.
module MyPackageWasmExt
using MyPackage, WasmTarget
WasmTarget.@wasm_overlay function MyPackage.fast_kernel(x::Matrix{Float64})
# Pure-Julia fallback compiled only when targeting WasmGC.
# Native Julia continues to call MyPackage.fast_kernel unchanged.
return MyPackage._generic_kernel(x)
end
endBinary Footprint & Zero-Runtime Design
Because WasmTarget.jl compiles directly to native WasmGC structs and arrays and relies on the garbage collector built into V8, SpiderMonkey, and JavaScriptCore, compiled modules never bundle a linear-memory allocator, libjulia, or an LLVM runtime image.
| Property | WasmTarget.jl | Why It Matters |
|---|---|---|
| Package dependencies | Binaryen_jll only | Single-package install with fast precompilation and offline CI support. |
| LLVM Wasm backend | None | Compiles straight from Julia typed code with a pure-Julia WasmGC encoder. |
| Custom GC runtime | None | Uses native browser and Node.js 26+ WasmGC garbage collection. |
| Incremental IR cache | Config(ir_cache = true) | Caches validated world-pinned IR across rebuilds for multi-island apps and notebooks. |
| Exception modes | :values, :control, :none | Choose full Julia exception payloads, payload-free control traps, or zero-EH minimal binaries. |
| String interop | wasm:js-string | Direct engine builtin conversion without linear-memory scratch buffers. |