Compatibility · Measured Testbed
Ecosystem Support
This page separates what our automated differential testbed checks bit-for-bit against native Julia from what remains unverified or outside static compilation.
A Tested subset badge means specific kernels listed in that row are compiled and verified against native Julia, not that every function in the package has been audited. Pure-Julia, type-stable code outside the listed rows may still compile, but it is unverified until added to the testbed.
Language & Core
WasmTarget.jl compiles the static, type-inferred subset of Julia directly to WebAssembly GC types. Pure-Julia code whose types resolve at compile time runs in browsers and Node.js with native garbage collection and no separate runtime.
| Capability | Status | Verified Coverage & Known Boundaries |
|---|---|---|
| Primitives & math | Verified | Fixed-width integers (including 128-bit and unsigned checked arithmetic), floats, Bool, Char, bitwise ops, and elementary math functions. |
| Structs, tuples & closures | Verified | Immutable and mutable structs, cyclic and recursive references, NamedTuple, closures, and parametric types mapped to WasmGC structs. |
| Multiple dispatch & unions | Verified | Static multiple dispatch, inlining, small Union splitting (including Nothing), and closed concrete abstract-type sets. |
| Arrays & broadcasting | Verified | Multi-dimensional Array, Vector, Matrix literals, views, loops, and dot broadcasting backed by WasmGC arrays. |
| UTF-8 strings & exceptions | Verified | Native Julia String UTF-8 handling, try / catch / finally, and configurable exception_mode (:values, :control, :none). |
| Tasks, threads & file I/O | Outside subset | Multi-threading, Task / Channel scheduling, sockets, and filesystem I/O are not compiled into standalone WasmGC. |
| Dynamic reflection & eval | Outside subset | eval, Core.invokelatest, dynamic Any dispatch, non-const globals, and runtime methods(f) queries sit outside static compilation. |
Standard Libraries
Standard library rows below list both the specific functions verified in our differential suite and the parts that remain unverified or depend on native C libraries.
| Standard Library | Status | Verified vs. Unverified |
|---|---|---|
LinearAlgebra | Tested subset | Verified: pure-Julia overlays for dot, norm, A * B, lu, qr, cholesky, det, symmetric eigvals, svd, and dense real A \ b with zero BLAS/LAPACK C libraries. Unverified: non-symmetric eigen, complex LAPACK routines, bunchkaufman, schur, and banded or tridiagonal specializations. |
SparseArrays | Tested subset | Verified: SparseMatrixCSC construction, indexing, and sparse matrix-vector multiply. Unverified / outside: sparse direct solves calling C SuiteSparse (UMFPACK, CHOLMOD) and general sparse-sparse matrix factorizations. |
Statistics | Tested subset | Verified: mean, std, var, cor, median, and quantile on dense numeric arrays. Unverified: dimension-keyword dims=... combinations across every function and missing-value propagation. |
Random | Tested subset | Verified: Xoshiro scalar rand, randn, shuffle!, and bulk Float64 / Float32 / Bool / UInt8 vector sampling. Unverified: MersenneTwister, randstring, and global task-local RNG state. |
Printf | Tested subset | Verified: @sprintf with standard integer, float, string, width, and precision specifiers. Unverified: runtime-constructed Printf.Format objects and stdout @printf. |
Dates | Tested subset | Verified: Date, DateTime, period arithmetic, and calendar accessors. Unverified: custom DateFormat string parsers and locale lookup tables. |
TOML | Tested subset | Verified: pure-Julia TOML.parse on concrete scalar and nested tables. Unverified: TOML.print serialization and file I/O helpers. |
Logging | Tested subset | Verified: @debug, @info, and @warn fold away cleanly so library logging macros do not reject compilation. Unverified: custom runtime logger sinks and formatted log output. |
Unicode | Tested subset | Verified: graphemes, case conversion, and titlecase. Unverified / outside: Unicode.normalize (calls C utf8proc). |
SciML & Scientific Computing
Ten differential benchmark workloads across selected SciML solvers and automatic differentiation compile to standalone WasmGC with bit-exact parity against native Julia. Broader SciML domains, including SDEs, DDEs, DAEs, BVPs, JumpProcesses, callbacks and events, and sensitivity analysis, are not yet verified.
| Package | Status | Verified vs. Unverified |
|---|---|---|
OrdinaryDiffEq | Tested subset | Verified: Tsit5() (in-place and out-of-place), Vern7(), and stiff Rodas5P(autodiff = AutoForwardDiff()) on small fixed-dimension ODE systems with concrete signatures. Unverified: callbacks and events, sparse Jacobians, finite-difference colorings, BDF and implicit RK solvers (FBDF, QNDF, RadauIIA5), and dense interpolation across all tableaus. |
ModelingToolkit | Host-lowered | Verified: symbolic @mtkbuild / structural_simplify runs in native Julia at build time to generate a concrete numerical RHS, and the lowered ODEProblem + Tsit5() solve compiles to WasmGC bit-exact. Outside Wasm: symbolic Symbolics.jl algebra, model construction, and structural_simplify themselves run on host Julia, not inside WebAssembly. |
LinearSolve | Tested subset | Verified: LinearProblem with LUFactorization(), QRFactorization(), and KrylovJL_GMRES() on dense concrete matrices. Unverified: sparse C backends (KLU, UMFPACK, MKL, Pardiso) and default polyalgorithm dispatch. |
NonlinearSolve | Tested subset | Verified: NonlinearProblem{false} with SimpleNewtonRaphson(), NewtonRaphson(), and TrustRegion() on concrete small systems. Unverified: sparse Jacobians, automatic polyalgorithm fallback chains, and interval or bracketing solvers. |
ForwardDiff | Tested subset | Verified: derivative, gradient, jacobian, and hessian on SVector and heap Vector inputs with explicit Chunk{N}(). Unverified: runtime chunk-size heuristics and deeply nested higher-order duals. |
StaticArrays | Tested subset | Verified: SVector, SMatrix arithmetic, inv, qr, and symmetric eigen. Unverified: MArray mutation edge cases and SizedArray wrappers. |
StatsBase | Tested subset | Verified: sample, fit(Histogram, ...), mean_and_std, zscore, autocor, and countmap. Unverified: weighted estimators, statistical tests, and remaining API surface. |
Interpolations | Tested subset | Verified: linear_interpolation on 1D concrete grids. Unverified: cubic B-spline, gridded multi-dimensional, and extrapolation boundary paths. |
Example verified pattern: passing concrete types and ODEProblem{false} compiles an adaptive Tsit5() solve with WasmTarget.Entry and WasmTarget.Config:
using OrdinaryDiffEqTsit5, StaticArrays, WasmTarget
function lorenz_rhs(u::SVector{3, Float64}, p::NTuple{3, Float64}, t::Float64)
sigma, rho, beta = p
return SVector{3, Float64}(
sigma * (u[2] - u[1]),
u[1] * (rho - u[3]) - u[2],
u[1] * u[2] - beta * u[3],
)
end
function solve_lorenz(rho::Float64)::Float64
u0 = SVector{3, Float64}(1.0, 0.0, 0.0)
prob = ODEProblem{false}(lorenz_rhs, u0, (0.0, 5.0), (10.0, rho, 8.0 / 3.0))
sol = solve(prob, Tsit5(); abstol = 1e-8, reltol = 1e-8)
return sol.u[end][1]
end
cfg = WasmTarget.Config(optimize = true, ir_cache = true)
wasm = WasmTarget.compile(WasmTarget.Entry(solve_lorenz, (Float64,)); config = cfg)Images & Signal Processing
Fifteen benchmark workloads across selected Images.jl subpackages and core pure-Julia FFTL.jl transforms pass bit-for-bit against native Julia with zero C libraries. Disk image codecs (PNG, JPEG, TIFF via FileIO / ImageIO), GPU arrays, and untested higher-level computer-vision algorithms are not yet verified.
| Package | Status | Verified vs. Unverified |
|---|---|---|
ImageFiltering | Tested subset | Verified: imfilter with Gaussian, Sobel, and Laplacian kernels and separable spatial convolution. Unverified: FFT-backed large-kernel paths, custom OffsetArrays boundary modes beyond tested cases, and mapwindow arbitrary closures. |
ImageTransformations | Tested subset | Verified: imresize with bilinear interpolation on concrete 2D arrays. Unverified: arbitrary warp coordinate maps, imrotate with general interpolants, and 3D volume warps. |
ImageBinarization, ImageMorphology, ImageEdgeDetection, ImageQualityIndexes | Tested subset | Verified: otsu_threshold, binarize, erode, dilate, opening, closing, canny edge detection, and assess_ssim. Unverified: remaining thresholding algorithms, distance transforms, segmentation (ImageSegmentation), and feature descriptors (ImageFeatures). |
ColorTypes / Colors | Tested subset | Verified: Gray, RGB, RGBA, HSV, and Lab conversions plus FixedPointNumbers (N0f8) arithmetic. Unverified: color-blindness simulations, colormap generators, and string color-name lookup tables. |
FFTL.jl | Tested subset | Verified: pure-Julia 1D, 2D, and 3D complex fft / ifft, real rfft / irfft, and orthonormal dct / idct with zero FFTW C libraries. Unverified: threaded SIMD pointer plans, general r2r kinds beyond DCT-II/III, and GPU extensions. |
Try live WasmGC Gaussian filtering, Sobel edge detection, and Otsu thresholding on the Interactive Showcase page.
Browser & Full-Stack Ecosystem
Pure numerical modules ship with zero host imports. When an application needs DOM updates, interactive browser plotting, or custom host APIs, packages extend WasmTarget.jl using typed host imports and @wasm_overlay.
| Layer | Status | Verified Scope & Boundaries |
|---|---|---|
| WasmMakie.jl | Tested subset | Verified for its 2D and projected 3D (Axis3) Canvas2D plotting surface (lines!, scatter!, barplot!, heatmap!, contour!). Does not cover full GLMakie WebGL shaders or all Makie recipes. |
| Therapy.jl | Verified | Full-stack Julia SSR and fine-grained reactive @island web framework compiling interactive UI components to WasmGC (powering this site). |
| Snapshot.jl | Verified | Exports reactive Pluto notebooks into standalone HTML + WasmGC pages for static-subset cells. Dynamic or C-library cells fall back to static rendered output. |
| Custom Host Bindings | Verified | Bind browser or Node.js APIs using host_modules and WasmTarget.@wasm_overlay. Read the Interop guide. |
Optimization & Solvers
High-level modeling layers in Julia often store abstract solver handles and dispatch constraints dynamically at runtime. For WebAssembly targets, separate model construction on host Julia from the concrete numerical solver kernel.
| Package | Status | Why & Recommended Path |
|---|---|---|
Optim.jl | In progress | Pure Julia mathematically, blocked mainly by stdout trace printing and abstract objective wrappers. Concrete-typed overlays are planned. |
Clarabel.jl | In progress | Pure-Julia conic solver whose top-level solver struct holds abstract cone arrays. Needs concrete LP/QP kernel specialization for static compilation. |
Tulip.jl | In progress | Pure-Julia LP solver that currently reaches stdout formatting and abstract solver-factory fields inside optimize!. |
JuMP.jl / MOI | Outside subset | JuMP.Model stores an abstract optimizer and dispatches MOI.get / MOI.set dynamically. Lower the model to concrete problem matrices on host Julia, then compile the numerical kernel. |
HiGHS.jl | Outside subset | Wraps a compiled C++ shared library via ccall rather than pure Julia source, so it cannot be compiled by WasmTarget.jl directly. |
Testbed Queue (Not Yet Audited)
These domains are not yet audited in our automated differential testbed. Some pure-Julia kernels inside them may already compile, but they have not been systematically verified.
| Candidate Area | Status | Target Packages & Workloads |
|---|---|---|
| Broader SciML solvers | Queued | Callbacks and events, StochasticDiffEq, DelayDiffEq, BDF/implicit RK solvers (FBDF, RadauIIA5), and sparse-Jacobian stiff problems. |
| Probability & distributions | Queued | Distributions.jl (pdf, cdf, quantile, and rand on common continuous and discrete distributions). |
| Iterative & sparse linear solvers | Queued | Broader Krylov.jl (CG, BiCGSTAB) and LDLFactorizations.jl for pure-Julia sparse solves in the browser. |
| Units, uncertainty & geometry | Queued | Unitful.jl, Measurements.jl, and GeometryBasics.jl value-type arithmetic. |
| Structured data & codecs | Queued | Typed Tables.jl kernels, pure-Julia JSON parsing and serialization, and pure-Julia image/binary codecs. |
| Additional AD backends | Queued | DifferentiationInterface.jl, FiniteDiff.jl, and static reverse-mode AD kernels. |
| Browser host APIs | Queued | Typed host_modules bindings for WebAudio DSP worklets, WebGPU compute buffers, and WebWorker messaging. |