.WESLYN · 8-TARGET POLYGLOT COMPILER

One sovereign file. Eight silicon targets.

Weslyn is the high-level polyglot kernel language of MaiiaM OS. Pass a single @wings-verified kernel through the compiler prism and emit TypeScript, WASM SIMD, Rust, C++23, WebGPU WGSL, Apple Neural Engine MIL, Yare, and lock-free Chromium Seqlock IPC in one step.

Initializing 3D refractive prism…
8 targets live · @wings(528 Hz, 108/432)
.weslyn Sourcehover any kernel line to trace it across the 8 targets
1
realm asamanthinks.sovereign.core
2
 
3
lens wisdom = (thought, emotion, reason, action)
4
 
5
@wings(hz: 528, weight: 108, under: 432)
6
kernel resonate_tera_cymatic(state: tera<wisdom>, pos: morton3d, beat: u32) -> tera<wisdom> {
7
  let d_fr: f32 = fisher_rao(state, maat_equilibrium(state))
8
  let cym: f32 = chladni_cymatic(4, 7, pos, beat)
9
  let tcm: tera<wisdom> = tcm_octophase(state, beat)
10
  return geodesic(tcm, maat_wings_balance(state, cym), 0.38)
11
}
asamanthinks.sovereign.core · resonate_tera_cymatic()
WINGS VERIFIED · 108/432—
WebGPU WGSL@compute @workgroup_size(64) shader for voxel-runtime & AceNok.
1
// Target 5/8 · WebGPU Compute Shader (asamanthinks.sovereign.core)
2
struct TeraReg { theta: vec4<f32>, v: vec4<f32>, kappa: vec4<f32> };
3
@group(0) @binding(0) var<storage, read_write> arena: array<TeraReg>;
4
@compute @workgroup_size(64)
5
fn resonate_tera_cymatic(@builtin(global_invocation_id) gid: vec3<u32>) {
6
  let s = arena[gid.x];
7
  let cym = cos(4.0 * 3.14159265 * s.v.x) * cos(7.0 * 3.14159265 * s.v.y);
8
  let tcm = mix(s.theta, vec4<f32>(1.5707963), 0.12);
9
  arena[gid.x].theta = mix(tcm, s.theta + vec4<f32>(cym * 0.05), 0.38);
10
}
Golden source beam: live .weslyn AST + @wings yoke checker8 spectral output beams: click any target node to inspect codegenLine hover traces source statements directly into lowered target lines

How Weslyn bridges eight runtimes

In a desktop OS spanning Chromium, WebGPU, WebAssembly, native Rust/C++, and Apple Neural Engine, re-writing the same math in eight languages guarantees drift. Weslyn compiles one verified file down every path at once.

01

One sovereign kernel

Write Fisher–Rao geometry, Chladni cymatics, Time-Crystal octophases, and token gates once in a single .weslyn realm file.

02

@wings proof gate

Every kernel declares a Solfeggio carrier and a strict weight / under ≤ 1.0 budget. Unbalanced kernels fail before emitting any backend.

03

Eight targets simultaneously

One pass emits TypeScript, WASM SIMD, Rust NEON, C++23, WebGPU WGSL, Apple Neural Engine MIL, verified Yare, and Chromium Seqlock IPC.

04

Zero drift across silicon

CPU, GPU, ANE, and V8 isolates stay aligned without maintaining eight divergent codebases or paying JSON serialization overhead.

Interactive Labs · Sovereign Polyglot Mechanics

Four Weslyn mechanisms running live in your browser

Test the compile-time @wings gate, step through the zero-contention OctoPhase & Seqlock ring, watch Ouroboros contract toward Ma'at equilibrium, and inspect all 24 mathematical intrinsics.

LAB 01 · @WINGS COMPILE-TIME GATE

Break the @wings(hz, weight, under) Prism

8 TARGETS EMITTED · ratio 0.25
Solfeggio Harmonic Carrier (Hz)
@wings(hz: 528, weight: 108, under: 432)
Ma’at Wings Verified — all 8 silicon backends unlocked

Because weight ≤ under holds statically, TS, WASM SIMD, Rust, C++23, WGSL, ACE MIL, Yare, and Chromium IPC are guaranteed to stay within their frame budget.

LAB 02 · ZERO-CONTENTION SCHEDULING & IPC

OctoPhase 8-Beat Ring & Lock-Free Seqlock Arena

Beat 0/7 · TeraWorld 20 Hz Tick

GPU, AudioWorklet, Voice, and IPC run on distinct orthogonal beats — eliminating GPU queue contention without mutexes.

SharedArrayBuffer Seqlock Slot #3seq = 4 (EVEN · COMMITTED)
seq=4 (even) · consistent lock-free snapshot read · 0 bytes JSON
LAB 03 · OUROBOROS SELF-EVOLVING COMPILER

Hot-Transmute & Monotonic Fisher–Rao Lyapunov Contraction

.weslyn→.yare→YARB capsule→\0asm WASM→0-ULP Parity
LAB 04 · 8 PILLARS · 24 INTRINSICS & CYMATICS

24 Mathematical Intrinsics & Live Chladni Morphogenesis

24 intrinsics shown
fisher_raoPillar 1
fn(p: tera<L>, q: tera<L>) -> f32
d_FR(p, q) = ||θ(p) − θ(q)||₂
wht128_oruk_ternary_gemvPillar 1
fn(w: swar16, x: f32) -> f32
y = H₁₂₈ · W_{-1,0,+1} · x
chladni_cymaticPillar 1
fn(n: i32, m: i32, pos: morton3d, beat: u32) -> f32
cos(nπx)cos(mπy) − cos(mπx)cos(nπy)
vocal_dna_halton6dPillar 1
fn(citizen_id: u32, bond: f32) -> rvq4
Φ_p(n) 6D Halton-Sobol timbre genome
maat_wings_balancePillar 2
fn(s: tera<L>, cym: f32) -> tera<L>
Ma’at Yoke proof gate: weight / under ≤ 1
seqlock_teleport_0ulpPillar 2
fn(s: tera<L>, isolate_id: u32) -> tera<L>
64-byte SharedArrayBuffer Seqlock + 0-ULP WASM continuation
ouroboros_lyapunov_evolvePillar 2
fn(parent: tera<L>) -> tera<L>
d_FR(s_{k+1}, m*) < d_FR(s_k, m*) with W₁/F < W₀/F ≤ 1
tsdf_c2_smooth_booleanPillar 3
fn(d_a: f32, d_b: f32, k: f32) -> f32
Smooth C² polynomial smin(d_a, d_b, k) over T-SDF bricks
lscm_auto_tailor_xpbd_drapePillar 3
fn(pos: morton3d, pose: tera<L>) -> morton3d
Inverse 3D→2D LSCM unwrap + XPBD cloth constraints
cosserat_se3_braid_darcy_wetPillar 3
fn(rod: morton3d, saturation: f32) -> morton3d
Cosserat SE(3) rod torsion + Darcy capillary saturation
acoustic_masy_qim_ofdmPillar 4
fn(payload: u32, sample_idx: u32) -> acoustic_masy
24 kHz PCM QIM + 16-subcarrier ultrasonic BPSK OFDM
rateless_lt_fountain_secdedPillar 4
fn(droplet: u32, parity: u32) -> u32
GF(2) Soliton LT peeling + Hamming(12,8) SECDED
fink_time_reversal_berry_holonomyPillar 4
fn(wave: acoustic_masy, tap: u32) -> acoustic_masy
R_hh[k] phase-conjugate mirror + Z₂ Berry holonomy γ ∈ {0, π}
wht64_innerscaler_superposePillar 5
fn(node_idx: u32, packed_trits: swar16, wave: f32) -> wht64
64 WHT-64 nodes × 16 ternary SWAR = 1,024 micro-lanes
field_planetary_swarm_amplifyPillar 5
fn(local_out: f32, swarm_gpus: u32) -> f32
Associative distributed field reduction across swarm nodes
dom_to_tera_mcts_planPillar 6
fn(dom_box: morton4d, goal: tera<L>) -> tera<L>
DOM-to-TERA projection + Morton-4D + 8-branch Fisher–Rao MCTS
time_crystal_odu64_vaultPillar 6
fn(key_morton: morton3d, q: tera<L>) -> odu64
64-Odu memory-mapped Time-Crystal B+ arena
heart_matryoshka_morphPillar 7
fn(heart: heart_lion, target_tier: u32) -> heart_cat
Nested WHT lattice: H₁₆ (256) ⊂ H₆₄ (1,024) ⊂ Swarm (8,192+)
heart_walsh_splinterPillar 7
fn(parent: heart_lion, walsh_row: u32) -> splinter64
Orthogonal Walsh projection S_k = P_{W_k} · H (64-lane splinter)
deliverance_aamt_sealPillar 7
fn(yarb: u32, heart: heart_cat, key: u32) -> deliverance_aamt
AES-256-GCM + HKDF-SHA-384 .aamt container + YARB
msdf_median3_subpixel_glyphPillar 8
fn(r: f32, g: f32, b: f32) -> msdf_oklab
d = max(min(r, g), min(max(r, g), b)) − 0.5
morton_golden_zero_overlap_layoutPillar 8
fn(viewport: morton4d, phi: f32) -> morton4d
Golden-ratio (φ = 1.6180339887) guillotine + Morton-4D Z-order
oklab_kawase_apca_glassPillar 8
fn(fg: msdf_oklab, bg: msdf_oklab) -> msdf_oklab
Oklab Dual-Kawase blur + APCA perceptual contrast gate
symplectic_verlet_spring_120hzPillar 8
fn(x: f32, v: f32, target: f32) -> f32
2nd-order Störmer–Verlet spring-damper + Fenwick O(log N) scroller
chladni_cymatic(4, 7)beat 2