WASM SHOWCASE
WebAssembly Computation Demos
Real algorithms in Rust/WASM. Each widget demonstrates a computation that benefits from native-speed execution in the browser.
Mandelbrot Set
80 iterations per pixel. WASM renders the full fractal in under 1 second where JS takes 8+ seconds.
Boids Flocking
150 birds. O(n^2) separation, alignment, and cohesion computed each frame. Emergent flocking from 3 simple rules.
Lorenz Attractor
Real ODE solver (sigma=10, rho=28, beta=8/3). Two particles with 0.0001 offset diverge chaotically.
Solar System
5 planets at correct relative orbital speeds. Each frame computes angular position from Kepler's third law.
K-Means Clustering
100 data points, K=3. Real assign-update iterations converge to natural clusters in real-time.
Volatility Surface
3D implied volatility mesh showing the smile/skew shape. Rotating wireframe rendered from a 12x12 strike-expiry grid.
Fourier Series — Time vs Frequency
Partial sums S_N(t) converge to the target waveform while the magnitude spectrum |c_n| traces a continuous analytic envelope. Drag the harmonic count and watch Gibbs overshoot persist at discontinuities.
S_N(t) = sum_n a_n * sin(n * w * t + phi_n)
Sine: a_1 = 1, all other a_n = 0.
Truncating the series at N leaves an RMS (L2) error that shrinks as N grows; smooth targets (sine, triangle) converge fastest. Near a jump discontinuity the partial sums overshoot by about 8.9% no matter how large N gets. This is the Gibbs phenomenon: the overshoot narrows but never disappears.
Cellular Automata
Conway's Game of Life with WASM grid computation. Each generation is a full grid update.
Generative Art
Parameter-driven procedural rendering. Each frame draws a unique composition from mathematical functions.
Quant Analytics (WASM)
Beyond these demos, the site uses 10 additional WASM-powered quant modules for real financial analysis. See the World Monitor and ETF Intelligence pages for: