Explore a browser engine

Twenty-four lessons, Rust/WASM executions and six interactive models connect URLs and HTTP to HTML, CSS, JavaScript, events, scheduled work and repainting.

Study the concepts, combine the execution models, then build the Rust project. Actual WASM executions and measured QEMU records are labelled separately.

Before you start

Build, diagnose and repair

Your reading and questions

Loading learning records…

Demo predictions and repair results appear separately below and are saved on this device.

Read and experiment in order

Put the parts together

From a click to a rendered update

Connect events, JavaScript, DOM, layout and paint to repair a broken page.

Repair the example, then verify it under different conditions.

Interactive experiments

Playback, prediction answers and repairs are tracked separately in this browser.

Build and run the Rust implementation

Rust / WASM execution

Parse HTML and build a DOM in Rust

Run the same Rust core as WASM and inspect byte positions, tokens, DOM nodes and diagnostics.

Loading…

Local implementation (self-reported): Not recorded

Rust / WASM execution

Compute style, layout and paint in Rust

Use the parsed DOM to inspect limited CSS rules, computed styles, boxes and drawing commands.

Loading…

Local implementation (self-reported): Not recorded

Run events and interrupts in Rust

Rust / WASM execution

Parse and execute JavaScript in Rust

Run a Rust lexer, parser and evaluator as WASM; inspect bindings, function calls, return values and DOM updates.

Loading…

Local implementation (self-reported): Not recorded

Rust / WASM execution

Dispatch a click and repaint in Rust

Deliver events through the same Rust DOM, inspect capture, bubbling and propagation stops, then recompute layout and paint.

Loading…

Local implementation (self-reported): Not recorded

Run reserved work and I/O in Rust

Rust / WASM execution

Run timers and tasks in Rust

Reserve work from a click and inspect virtual time, deadlines, cancellation and task order alongside the same Rust DOM.

Loading…

Local implementation (self-reported): Not recorded

Rust / WASM execution

Inspect microtasks and paint in Rust

Follow enqueueing, draining and checkpoints, and observe the gap between a DOM mutation and committed paint.

Loading…

Local implementation (self-reported): Not recorded

My learning