Multilingual Programming

Many browser runtimes. One language model.

This GitHub Pages site demonstrates interactive execution through Pyodide, ahead-of-time deployment through precompiled WebAssembly bundles, and the polymodal computation track: one modality-free program projected into linear, spatial, volumetric, sonic, and MIDI browser runtimes.

Scalar compute

Fibonacci Bundle

A small precompiled WASM program built from multilingual source and executed in the browser with a tiny generated host layer.

  • Prebuilt `module.wasm`
  • Generated ABI shim and renderer
  • Shows the minimal deployment flow

browser/fibonacci/

Open Fibonacci Demo
Host imports

DOM Bridge Bundle

A precompiled WASM program that manipulates live browser DOM nodes through generated `env.ml_dom_*` host imports.

  • Multilingual source to WebAssembly
  • JS only as host bridge, not as app logic
  • Shows real browser integration

browser/dom-demo/

Open DOM Demo
Reactive UI

Memory Game Showcase

A browser-published showcase for the reactive UI direction, using the current standalone demo page while compiler support for that surface syntax continues to evolve.

  • Demonstrates `observe var`, async flow, and event binding
  • Published today as a standalone browser demo
  • Links the docs experience to the reactive UI roadmap

browser/memory-game/

Open Memory Game
Post-textual research

Spatial Dynamics

A browser-native 2D workspace where fixed visual primitives interact through emit, diffuse, attract, repel, oscillate, split, merge, and contain laws.

  • No source editor inside the workspace
  • No labels drawn on the computational canvas
  • Click the symbol palette to sculpt behavior

browser/spatial-dynamics/

Open Spatial Dynamics
Polymodal projection

Sonic Dynamics

The same program.multi as Spatial Dynamics, projected into a WebAudio composition instead of a 2D scene. Includes a microphone capture path that runs the inverse projection (audio -> semantic core) in the browser.

  • No textual source inside the workspace
  • Frequency, amplitude, and routing derived from semantic fields
  • Press play to hear the spatial program as sound

browser/sonic-dynamics/

Open Sonic Dynamics
Polymodal projection

Linear Dynamics

The same program.multi as Spatial Dynamics, projected into a one-dimensional timeline. Each entity becomes a positioned mark along a single axis; channel drives the vertical lane.

  • 1D peer of the 2D spatial track
  • Glyph vocabulary deliberately distinct from 2D shape names
  • Press play to sweep a cursor across the timeline

browser/linear-dynamics/

Open Linear Dynamics
Polymodal projection

Volumetric Dynamics

The same program.multi as Spatial Dynamics, projected into a three-dimensional scene rendered on canvas with a hand-rolled rotation and perspective -- no WebGL or 3D library required.

  • 3D peer closing the 1D / 2D / 3D dimensionality loop
  • Primitive vocabulary deliberately disjoint from 1D and 2D names
  • Press play to rotate the scene around the Y axis

browser/volumetric-dynamics/

Open Volumetric Dynamics
Polymodal projection

MIDI Dynamics

The same program.multi as Spatial Dynamics, projected into a sequence of discrete MIDI events rendered as a piano roll. An optional Web MIDI Out button forwards the events to a connected synthesizer.

  • Discrete-event peer of the continuous-shape projections
  • Each opcode commits to a MIDI role (note / drum / cc / program / bus)
  • Stress-tests whether the ontology is genuinely modality-free

browser/midi-dynamics/

Open MIDI Dynamics