← Friday, October 9, 2026Performance & OSDeep dive

DOS demos run in browsers through traced, cycle-accurate WebAssembly recompilation

treylorswift.github.io Editor score 8/10

The demos are traced in an x86 emulator, translated instruction-for-instruction to C, compiled to WebAssembly, and checked against the emulator event by event. The technique offers a concrete approach to preserving timing and behavior when porting legacy software.

What
An x86 emulator traces DOS demo execution, then recompiles the executed code instruction-for-instruction into browser-running WebAssembly.
How
Recorded instructions become C with emulated cycle timing; WebAssembly includes models of the timer, VGA card, and Sound Blaster.
Why it matters
Event-by-event comparison with the emulator helps preserve legacy software behavior while moving execution into browsers.

Discussion

Discussion is not switched on yet. Use Note above to keep your own thoughts on this story.

Headline, summary, brief and diagram are written by a model from the source's own text; the link, byline and numbers come from the source. Read the original before relying on a claim.

Your note

Private to you. Stored in this browser, and synced to your account when you are signed in.