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.

CapabilityStatusVerified Coverage & Known Boundaries
Primitives & mathVerifiedFixed-width integers (including 128-bit and unsigned checked arithmetic), floats, Bool, Char, bitwise ops, and elementary math functions.
Structs, tuples & closuresVerifiedImmutable and mutable structs, cyclic and recursive references, NamedTuple, closures, and parametric types mapped to WasmGC structs.
Multiple dispatch & unionsVerifiedStatic multiple dispatch, inlining, small Union splitting (including Nothing), and closed concrete abstract-type sets.
Arrays & broadcastingVerifiedMulti-dimensional Array, Vector, Matrix literals, views, loops, and dot broadcasting backed by WasmGC arrays.
UTF-8 strings & exceptionsVerifiedNative Julia String UTF-8 handling, try / catch / finally, and configurable exception_mode (:values, :control, :none).
Tasks, threads & file I/OOutside subsetMulti-threading, Task / Channel scheduling, sockets, and filesystem I/O are not compiled into standalone WasmGC.
Dynamic reflection & evalOutside subseteval, 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 LibraryStatusVerified vs. Unverified
LinearAlgebraTested subsetVerified: 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.
SparseArraysTested subsetVerified: SparseMatrixCSC construction, indexing, and sparse matrix-vector multiply. Unverified / outside: sparse direct solves calling C SuiteSparse (UMFPACK, CHOLMOD) and general sparse-sparse matrix factorizations.
StatisticsTested subsetVerified: mean, std, var, cor, median, and quantile on dense numeric arrays. Unverified: dimension-keyword dims=... combinations across every function and missing-value propagation.
RandomTested subsetVerified: Xoshiro scalar rand, randn, shuffle!, and bulk Float64 / Float32 / Bool / UInt8 vector sampling. Unverified: MersenneTwister, randstring, and global task-local RNG state.
PrintfTested subsetVerified: @sprintf with standard integer, float, string, width, and precision specifiers. Unverified: runtime-constructed Printf.Format objects and stdout @printf.
DatesTested subsetVerified: Date, DateTime, period arithmetic, and calendar accessors. Unverified: custom DateFormat string parsers and locale lookup tables.
TOMLTested subsetVerified: pure-Julia TOML.parse on concrete scalar and nested tables. Unverified: TOML.print serialization and file I/O helpers.
LoggingTested subsetVerified: @debug, @info, and @warn fold away cleanly so library logging macros do not reject compilation. Unverified: custom runtime logger sinks and formatted log output.
UnicodeTested subsetVerified: 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.

PackageStatusVerified vs. Unverified
OrdinaryDiffEqTested subsetVerified: 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.
ModelingToolkitHost-loweredVerified: 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.
LinearSolveTested subsetVerified: LinearProblem with LUFactorization(), QRFactorization(), and KrylovJL_GMRES() on dense concrete matrices. Unverified: sparse C backends (KLU, UMFPACK, MKL, Pardiso) and default polyalgorithm dispatch.
NonlinearSolveTested subsetVerified: NonlinearProblem{false} with SimpleNewtonRaphson(), NewtonRaphson(), and TrustRegion() on concrete small systems. Unverified: sparse Jacobians, automatic polyalgorithm fallback chains, and interval or bracketing solvers.
ForwardDiffTested subsetVerified: 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.
StaticArraysTested subsetVerified: SVector, SMatrix arithmetic, inv, qr, and symmetric eigen. Unverified: MArray mutation edge cases and SizedArray wrappers.
StatsBaseTested subsetVerified: sample, fit(Histogram, ...), mean_and_std, zscore, autocor, and countmap. Unverified: weighted estimators, statistical tests, and remaining API surface.
InterpolationsTested subsetVerified: 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.

PackageStatusVerified vs. Unverified
ImageFilteringTested subsetVerified: 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.
ImageTransformationsTested subsetVerified: imresize with bilinear interpolation on concrete 2D arrays. Unverified: arbitrary warp coordinate maps, imrotate with general interpolants, and 3D volume warps.
ImageBinarization, ImageMorphology, ImageEdgeDetection, ImageQualityIndexesTested subsetVerified: 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 / ColorsTested subsetVerified: Gray, RGB, RGBA, HSV, and Lab conversions plus FixedPointNumbers (N0f8) arithmetic. Unverified: color-blindness simulations, colormap generators, and string color-name lookup tables.
FFTL.jlTested subsetVerified: 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.

LayerStatusVerified Scope & Boundaries
WasmMakie.jlTested subsetVerified 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.jlVerifiedFull-stack Julia SSR and fine-grained reactive @island web framework compiling interactive UI components to WasmGC (powering this site).
Snapshot.jlVerifiedExports 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 BindingsVerifiedBind 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.

PackageStatusWhy & Recommended Path
Optim.jlIn progressPure Julia mathematically, blocked mainly by stdout trace printing and abstract objective wrappers. Concrete-typed overlays are planned.
Clarabel.jlIn progressPure-Julia conic solver whose top-level solver struct holds abstract cone arrays. Needs concrete LP/QP kernel specialization for static compilation.
Tulip.jlIn progressPure-Julia LP solver that currently reaches stdout formatting and abstract solver-factory fields inside optimize!.
JuMP.jl / MOIOutside subsetJuMP.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.jlOutside subsetWraps 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 AreaStatusTarget Packages & Workloads
Broader SciML solversQueuedCallbacks and events, StochasticDiffEq, DelayDiffEq, BDF/implicit RK solvers (FBDF, RadauIIA5), and sparse-Jacobian stiff problems.
Probability & distributionsQueuedDistributions.jl (pdf, cdf, quantile, and rand on common continuous and discrete distributions).
Iterative & sparse linear solversQueuedBroader Krylov.jl (CG, BiCGSTAB) and LDLFactorizations.jl for pure-Julia sparse solves in the browser.
Units, uncertainty & geometryQueuedUnitful.jl, Measurements.jl, and GeometryBasics.jl value-type arithmetic.
Structured data & codecsQueuedTyped Tables.jl kernels, pure-Julia JSON parsing and serialization, and pure-Julia image/binary codecs.
Additional AD backendsQueuedDifferentiationInterface.jl, FiniteDiff.jl, and static reverse-mode AD kernels.
Browser host APIsQueuedTyped host_modules bindings for WebAudio DSP worklets, WebGPU compute buffers, and WebWorker messaging.