WASM + VibeScript + Etalon · WebGPU & WebGL2 Accelerated · Zero Server Round-trip
Sciences & Math Playground
Geometric algebra, ODE solvers, thermodynamics, bioinformatics, organic chemistry, and fail-closed clinical kernels — running in the browser from playground/qualia_core_db_bg.wasm and pkg/vibe/vibe_wasm_bg.wasm.
0.0.40 also compiles WASM-safe science into the portal package . Human-centric, self-directed execution with deterministic CBOR-LD verification receipts.
VibeScript 0.3 + Etalon 11-Provider Live Kernel
Executes mech.kinematics.kinetic_energy, signal.dsp.rms_energy & nquin.wire.compute_wire_parity
Multi-Domain Verification (Kinematics + DSP + NQuin Parity)
Relativistic Velocity-Verlet + Acoustic RMS
Etalon GPU Dispatch & Wavefield Parity
Execute VibeScript
Live VibeScript Source (eval_program_with_receipt_wasm)
Evaluated Output & CBOR-LD Tag 4200 Receipt
Initializing VibeScript + Etalon runtime...
AST Receipt: pending...
WebGL2 ES3.0 Wavefield
#version 300 es
Geometric Algebra
ODE Solvers
Thermodynamics
Bioinformatics
Clinical Risk
Organic Chemistry
G(3,0,0) Multivector Operations
WASM Native
8-component multivector: scalar + 3 vectors + 3 bivectors + pseudoscalar. Zero-heap geometric operations via WASM.
Operation:
Geometric Product (AB)
Inner Product (A·B)
Outer Product (A∧B)
Reverse (~A)
Norm ‖A‖
Exponential e^A (rotor)
Compute (WASM)
Result
Press Compute to evaluate…
Rotor Visualization (e₁₂ plane)
Rust Implementation Reference
// crates/qualia-core-db/src/modalities/calculus/geometric_algebra.rs
pub struct Multivector3 { pub blades: [f64; 8] } // 1,e1,e2,e3,e12,e13,e23,e123
impl Multivector3 {
pub fn geo_product(&self, b: &Multivector3) -> Multivector3 {
// Grade-aware product table with sign flip from anti-commuting basis
// eᵢeᵢ = +1 (Euclidean metric), eᵢeⱼ = -eⱼeᵢ for i≠j
// SIMD: fused_tensor_contraction.wgsl — 4096 FMA ops per workgroup thread
// Zero-heap: stack-allocated blades array, no Vec/String allocation
}
pub fn rotor_from_bivector(b: &Multivector3, angle: f64) -> Multivector3 {
// Exponential map: e^(Bθ) = cos(θ) + B·sin(θ) for unit bivector B
// Used for 3D rotations without gimbal lock
}
}
Runge-Kutta 4th Order Solver
Phase-space trajectories from RungeKutta4Static — exact match to the Rust kernel.
WASM Native
Solve (WASM)
Phase Space Trajectory
Time Series
RK4 ODE trajectory ready.
Rust Implementation Reference
// crates/qualia-core-db/src/modalities/calculus/ode_solver.rs
pub struct RungeKutta4Static {
// Fixed-size arrays for zero-heap ODE integration
k1: [f64; N],
k2: [f64; N],
k3: [f64; N],
k4: [f64; N],
temp: [f64; N],
}
impl RungeKutta4Static {
pub fn step(&mut self, y: &mut [f64; N], t: f64, h: f64, f: F)
where
F: Fn(f64, &[f64; N], &mut [f64; N]),
{
// Classic RK4: y_{n+1} = y_n + (h/6)(k1 + 2k2 + 2k3 + k4)
// All allocations on stack, no heap usage
f(t, y, &mut self.k1);
// ... k2, k3, k4 computation
}
}
Thermodynamic Monte Carlo
Metropolis-Hastings MCMC for Gibbs free energy minimization — native WASM implementation.
WASM Native
Run MCMC (WASM)
Energy Distribution
Convergence Trace
MCMC thermodynamics ready.
Sequence Alignment & K-mer / Bit-Vector Analytics
Smith-Waterman DP scoring heatmap, K-mer spectrum & 64-bit Tanimoto overlap — zero-heap WASM implementation.
WASM Native + Canvas
Query Sequence
Target Sequence
Mode
Nucleotide (DNA/RNA)
Protein (Amino Acid)
Scoring Matrix
Default (BLOSUM62 for protein, +5/-4 for DNA)
Align & Render Heatmap (WASM)
2D Alignment Scoring Heatmap & Base-Pair Match Track
A/T/G/C color-coded alignment + K-mer & Tanimoto telemetry
Enter sequences and click Align…
Smith-Waterman ready.
K-mer spectrum ready.
Tanimoto bit-vector ready.
Clinical Risk Assessment
Framingham, CHA₂DS₂-VASc, SCORE2. Every field is required; missing is not a patient value. Result is not a diagnosis.
WASM Native + Risk Gauges
Risk Calculator
Framingham Cardiovascular Risk
CHA₂DS₂-VASc Stroke Risk
SCORE2 Cardiovascular Risk
Labeled reference profile (JSON; not a patient record)
Calculate Risk & Plot Gauges (WASM)
Clinical Risk Gauges (Framingham · CHA₂DS₂-VASc · SCORE2) & Factor Attribution
Low / Moderate / High clinical risk zones
Enter parameters and click Calculate…
Framingham ready.
CHA₂DS₂-VASc ready.
SCORE2 ready.
Organic Chemistry Analysis
SMILES parsing, Lipinski 5-axis radar polygon, 64-bit Morgan fingerprint barcode & Henderson-Hasselbalch / Arrhenius curves — native WASM chemistry engine.
WASM Native + Radar Canvas
Analyze & Render Lipinski Radar + Barcode (WASM)
Lipinski 5-Axis Radar · 64-Bit Morgan Barcode · Henderson-Hasselbalch / Arrhenius Curve
MW ≤ 500 · LogP ≤ 5 · HBD ≤ 5 · HBA ≤ 10 · TPSA ≤ 140
Enter SMILES and click Analyze…
SMILES descriptor ready.
Gibbs ΔG ready.
Arrhenius k(T) ready.
Henderson-Hasselbalch ready.
Skeletal & Tissue Densitometry + Coupled Musculoskeletal/Mobility
8 Cross-Kingdom Presets · Carter–Hayes · Gibson–Ashby
Evaluates cortical/trabecular BMD (ρapp , vBMD, aBMD, T-score, Z-score, BV/TV, fabric tensor Mfabric , mineralization μmin ), Carter–Hayes stiffness (E ∝ ρ3 ), Gibson–Ashby yield, fracture callus stages 0..4, muscle HU & IMAT myosteatosis, pregnancy/ovulatory relaxin ligament laxity, pediatric-to-senescent ontogeny, laterality, Relative Effort Ratio (RERj ), Hof Margin of Stability (MoS), and Structural Factor of Risk (Φb ).