PISCO

PISCO Imitates Systems, Compiles Originals. It runs x86 titles in WebAssembly, in a browser tab or in Node, by recompiling their code ahead of time and supplying the system they were written for: one recompiler, one package format (pisco build makes a title image from a recipe and your own copy of the title), and several compatibility runtimes. Nothing of a title is in the repository. Windows titles are checked against Wine, screen by screen and call by call.

Source: github.com/Yhozen/pisco · Progress map: what each runtime implements against what titles use · Videos: releases

Changelog

an experimental pisco that needs no Node 2026-12-03PR #112

An experimental release of pisco runs apps on a machine with no Node: its kit has bin/pisco-host, the Node host (web/run-node.mjs) compiled by Bun 1.4.5 into one program, and pisco run uses it.

pisco open, and a hello32 that runs 2026-12-03PR #110

Three things the first release of pisco 0.2.0 showed, the day it was cut.

pisco without the repository 2026-12-03PR #109

pisco 0.2.0 installs and runs apps on a machine that has no checkout of this repository. Everything it needs comes from GitHub and from each file's publisher. There is no server of ours.

Montezuma's Revenge, the review's fixes, and the 800XL's oracle and recipe 2026-12-01PR #101

What the review of the Atari 2600 and 800XL runtimes left open, and what the 800XL was missing to be built and checked like the 2600.

Montezuma's Revenge on the Atari 800XL, with no OS ROM 2026-12-01PR #99

The same game's 800XL cartridge (16 KB) runs lifted on a ninth runtime, with the 2600's 6502 front end. A census of the cartridge (tools/census-atari8.py) showed it calls nothing in the OS's ROM and needs only what the OS's vertical blank does for it, so the runtime does that in C, as the DOS runtime is DOS: no OS ROM is lifted, downloaded or needed. It starts and draws its first room in Node and in Chrome, with POKEY's sound, in the colours of the screenshots people know. The cartridge stays outside the repository; docs/montezumas-revenge.md has the details.

Still missing: an oracle (atari800 7.2 will not start without Atari's OS ROMs, which it downloads), DMA's stolen cycles and fine scrolling, and a recipe.

Montezuma's Revenge on the Atari 2600, the first app that is not x86 2026-12-01PR #98

Parker Brothers' Montezuma's Revenge (1984), the Atari 2600's cartridge, runs lifted: its 6507 code (a 6502) becomes WebAssembly, once per build, and a new runtime is the console, with no emulator. Stella, through Farama's ALE, is the oracle: started the same way, all 128 bytes of the RAM and every pixel are Stella's at every frame, idle, through games played from seeds to their game over, and through the recipe's session. Played by hand in Chrome on a MacBook, with sound. The ROM stays outside the repository; docs/montezumas-revenge.md has the details.

Still missing: the sound set against Stella's, and the 800XL's version (next).

Daggerfall, a DOS game, into its first dungeon, with sound and music 2026-11-28PR #96

The Elder Scrolls II: Daggerfall (1996, free on Steam) runs lifted: FALL.EXE is a 32-bit DOS program under the CauseWay extender, and pisco lifts it to WebAssembly and runs it on a new DOS runtime, with no emulator. In Node and in the page (headless Chrome) it goes through character creation into Privateer's Hold, where the player walks and turns in the textured, lit dungeon, as on DOSBox. The game's files stay outside the repository (tools/daggerfall-dir.sh). docs/daggerfall.md has the details.

Still missing: saving and loading a game in the page.

A network for the lifted Linux 2026-11-28PR #75

The lifted Linux reaches the network in Node (SW_NET=1): the microvm-x64 machine has virtio's network device, and unkernel's user-mode network stack (MIT) terminates its frames on the host. A shell gets a DHCP lease, looks a name up and fetches a page from a web server on the host, as with QEMU's user networking.

Still missing: the network in the page.

Libraries on the lifted Linux, linked and opened 2026-11-27PR #64

A program's own shared libraries now run on the lifted Linux: one it is linked against, and one it opens itself with dlopen and calls by name. Each is lifted into a module of its own when its code is first met, and prints what it prints on QEMU (fixtures/linux-dyn, on Alpine's musl).

Still missing: a network, snapshots.

A distribution's program on the lifted Linux: Alpine's busybox 2026-11-27PR #64

The lifted Linux runs Alpine 3.24.4's busybox as Alpine ships it: position-independent and dynamically linked, on musl's loader. Both the loader and the program are lifted when they first run, each into a module of its own, and they print what they print on QEMU.

Still missing: shared libraries the loader opens beside musl's.

Programs from anywhere, lifted from memory, on the lifted Linux 2026-11-27PR #64

A program met for the first time is now lifted from its image in memory, not from a file the host has to find. At a program's entry point, its stack's auxiliary vector says where its headers are, and its segments are as the kernel loaded them. The microvm-x64 machine rebuilds the ELF from that and hands it to the host, which lifts it, caches it and loads it. A static program can therefore run from the initramfs, the disk or anywhere: /init copies a program to the disk and runs it from there.

Still missing: position-independent and dynamically linked programs, which are somewhere else each time.

Programs lifted when they first run, on the lifted Linux 2026-11-27PR #60

A program that no build lifted can now run on the lifted Linux kernel, in Node. When the microvm-x64 machine meets user code it has no lifted program for, it hands the page to the host. The host finds the initramfs program whose code page there is the same, lifts it into a module of its own, caches it by its sha256, loads it, and the machine goes on. /init runs fixtures/linux-proc that way: lifted in 2.7 s the first time, from the cache after, printing what it prints on QEMU.

Still missing: the page cannot lift (no lifter there), and programs on the disk or written while the machine runs are not found yet.

bash on the lifted Linux, in a module of its own 2026-11-27PR #60

A program can now be a wasm module of its own, loaded by the host beside the kernel's. bash, whose GPL-3.0 licence keeps it out of a module linked with the GPL-2.0-only kernel, runs that way on the lifted Linux: /init prints what it prints on QEMU, in Node and in headless Chrome.

fastfetch and cowsay on the lifted Linux 2026-11-27PR #60

Real programs run on the lifted Linux kernel. fastfetch 2.71.0 and cowsay 3.8.4 on perl 5.44.0 are in its initramfs beside busybox, all static at the same addresses, each lifted on its own into the kernel's module. /init prints fastfetch's lines and cowsay's cow exactly as on QEMU.

Still missing: bash (its GPL-3.0 keeps it out of a module linked with the kernel), a network.

Signals anywhere, and thousands of processes, on the lifted Linux 2026-11-27PR #60

Two gaps in the microvm-x64 machine are closed. A program can now take a signal at any point, not only in a system call. And processes that end give back their stacks, so a shell running 500 programs one after another is part of the tests; 4,000 took 5.2 s.

Programs at the same addresses on the lifted Linux 2026-11-27PR #60

The lifted Linux kernel can now run several programs linked at the same addresses. busybox and our own fixtures/linux-hello, both static at 0x400000, run interleaved in /init and print the same 22 lines as on QEMU.

Still missing: bash, whose licence (GPL-3.0) keeps it out of a module linked with the GPL-2.0-only kernel; that needs a module per program.

A disk for the lifted Linux 2026-11-27PR #60

The microvm-x64 machine has a disk: virtio's block device on its MMIO transport. With SW_DISK=16M (zeros) or SW_DISK=<file>, the lifted Linux finds /dev/vda. /init formats it as ext2 with busybox, writes 1,000 lines, mounts it again and reads them back. It worked on its first run.

Still missing: the disk's writes are kept in memory, not in its file; there is no network.

A Linux shell to type into, and a Linux image 2026-11-27PR #60

The lifted Linux kernel's console now takes input, so its busybox shell can be typed into: in a terminal (pisco run), in the page (keys as a terminal sends them), or through a pipe. And pisco build recipes/linux makes it an image like any other title's. Two builds with empty caches give the same manifest, and pisco run boots it in Node and in headless Chrome.

Still missing: disks and a network (virtio), programs at the same addresses as one another, and more than one CPU.

Linux runs its programs 2026-11-27PR #60

The lifted Linux kernel now runs programs: busybox, lifted into the same module, runs the initramfs's /init to its end on the microvm-x64 machine in Node. That covers pipes, a shell in a shell, awk, a 4 MiB file written and hashed, a child killed, a signal handled, ten programs executed. It prints the same 15 lines it prints on QEMU, the same on every run, in 2.5 s from Node's start to the exit port. fork, exec, signals, pipes and files are the kernel's own work, not an imitation of it.

Still missing: typing into the console, pisco build of the Linux title, and programs at the same addresses as one another (bash and busybox).

Linux boots, lifted 2026-11-27PR #60

Linux 6.18 runs on PISCO: the whole kernel, lifted ahead of time into one 42 MB module, boots on the microvm-x64 machine in Node to Run /init as init process in 0.9 s, printing the same boot log on every run. No program runs yet: /init is busybox, which is not lifted with the kernel yet; that is next.

A sixth runtime, a small x86-64 machine 2026-11-27PR #60

The machine Linux will run on, rt/microvm-x64 (base/microvm-x64): one x86-64 CPU in long mode, a software MMU over the kernel's own page tables, a local APIC and its timer, a serial port and an exit port. It is checked on a test kernel of our own, fixtures/microvm-hello. That kernel pages, takes a page fault and returns, has a fault fixed up, handles int3 and ud2, waits for the timer, switches between two tasks, and drops to a ring-3 task that makes system calls until the timer preempts it. Lifted, it prints on its serial port the 20 lines QEMU prints, in Node and in headless Chrome. Linux itself does not run yet; that is next (docs/linux.md).

Still missing: Linux's alternatives and static calls, fxsave and xsave, the IOAPIC, the serial port's interrupt and input.

Linux itself as a title, the groundwork 2026-11-27PR #60

The plan to run a real Linux kernel on PISCO: lifted ahead of time like any other title, on a runtime that imitates a small x86-64 machine. Nothing of the kernel runs under PISCO yet. This first step builds the kernel, makes the lifter read it, sets up QEMU as the reference, and measures the three things the design stands on. The reasoning and the numbers are in docs/research/kernel-as-a-title.md; the title's page is docs/linux.md.

Still missing: the machine itself (rt/microvm-x64), and so everything that runs. Next is a small test kernel of our own on it, then this one.

Medal of Honor: Allied Assault's demo, an OpenGL game 2026-11-27PR #52

The single-player demo of Medal of Honor: Allied Assault (2001), on Ritual's version of the Quake III engine, on the Windows x86 runtime: the logos, the menu, the difficulty, the briefing and its level, with Miles' sound. In headless Chrome the menus are within 0.4 of 255 of Wine's screenshots on average and the level's first view within 2.6; its sound is within 0.3 dB of Wine's recording.

The PS5 raymarching tech demo, in the browser 2026-11-27PR #39

ps5-raymarch-techdemo v1.4, a CPU raymarcher built as PS5 homebrew (ten threads, AVX2 and FMA for the console's Zen 2), now runs as a web title on a new base/ps5 runtime. Its three scenes, DualSense and synthesized music work in Node and in headless Chrome. AnyPS5 was the reference for the executable's format and for what the system functions do; nothing of Sony's is used or needed.

Still missing: only these 38 functions are there, and an import without a name traps when called; no GPU (AGC) title runs (this one draws on the CPU); pisco build images of a PS5 title are not wired up (tools/build-title.sh is the way); kern.proc.pathname is not answered (the demo prints path=-).

This changelog, from files 2026-11-27PR #38

Each pull request now adds its entry as a file in changelog/, and a workflow on main draws this page from them and publishes the release holding an entry's video, in the manner of changesets. The page was edited by hand before.

cowsay, on perl 2026-11-27PR #37

cowsay 3.8.4 on perl 5.44, built from source as a static Linux program: six runs (cowsay and cowthink, several cows) print what native perl prints, in Node and in Chrome. The port found two recompiler gaps that a newer compiler (gcc 13) exposes: a switch table whose bound is far from its jump, and notrack jumps through tables. Without the fix, perl's parser was lifted as a recursion that overflowed Chrome's worker stack. Also included, as an experimental option: tools/boat.sh runs the test steps on several boat.dev sandboxes at once.

Desire: the first third-party Direct3D 12 game 2026-11-27PRs #28–#34

Desire (DESI:Re v0.1), a free maze escape on its author's own Direct3D 12 engine, on the Windows x64 runtime. Played by hand in Chrome on an M1 MacBook Pro: the logo, the maze, the enemy, the CRT effect, GAME OVER.

neofetch: Linux processes 2026-11-26PR #35

neofetch 7.1.0, a bash script, runs on bash and busybox built as static Linux programs: 83 processes forked and executed (fork, execve, wait4, pipes), each in a worker with memory of its own. A title image can now hold several programs. In Chrome, fastfetch then neofetch, at real speed (video).

A fourth runtime: Linux x64, with fastfetch 2026-11-26PR #31

Linux at its system calls, for one statically linked program: files, memory, the clock, a generated /proc. The recompiler reads ELF; the core's system-neutral parts moved to files of their own. fastfetch 2.71.0 prints the machine it finds, a Linux x86-64 system imitated in WebAssembly, with its logo and colours, in Node and in the page.

Tag in the browser, faster 2026-11-26PRs #26, #27

Tag: The Power of Paint, a Direct3D 9 shader game 2026-11-25PRs #18–#24

DigiPen's paint-gun game (2008), with Microsoft's own D3DX from its installer lifted beside it: its 16 effects compile at run time to the same 46 shaders as under Wine, Direct3D 9 shader bytecode is translated to WGSL, FMOD Ex's calls are Wine's, and in headless Chrome its first level is within 1.4 of 255 of Wine's screenshots on average.

PISCO: runtimes as peers 2026-11-25PRs #11–#17

Microsoft's desktop D3D12 samples 2026-11-25PR #38

Steps 1 and 2 of the graphics ladder: Microsoft's SimpleTriangleDesktop (clang-cl and MSVC builds) and SimplePBR on the Windows x64 runtime, drawn with WebGPU.

Narbacular Drop, a 2005 Windows PC game 2026-11-25PRs #1–#10

The first Windows PC title, a 32-bit Direct3D 9 game, played by hand in Chrome on an M1 MacBook Pro (video). What it took: the recompiler's 32-bit mode with x87, a Win32 process for a 32-bit guest, fixed-function Direct3D 9 on WebGPU, GDI text, FMOD 3 on an AudioWorklet, DirectInput from the keyboard and a Pointer Lock mouse, saves in OPFS, and recipes that build title images. 103–355 frames a second on that machine.

XCL's console checks, 50 of 50 2026-11-24PR #38

Step 4 of the ladder: XCL's console test title passes all 50 of its checks in Chrome. The progress map shows what the runtime implements against what titles use.

Doom as an Xbox console title, in a web browser 2026-11-24PR #38

doomgeneric + Freedoom, built against D3D12.X, GameInput, XAudio2 and XGameSave; its x86-64 code recompiled to WebAssembly, D3D12.X translated to WebGPU, XAudio2 mixed into an AudioWorklet, saves kept in the browser (OPFS). Recorded in headless Chrome with WebGPU on SwiftShader (no GPU); every frame was read back from WebGPU. Shows: title and attract demo, a new game from scripted keys, the automap, a save, a page reload (a new title process), the save loaded back.

Game data: Freedoom (BSD-3-Clause, © the Freedoom contributors). Engine: doomgeneric (GPL-2.0; Chocolate Doom, id Software's Doom). Narbacular Drop © DigiPen Institute of Technology; Tag: The Power of Paint © DigiPen Institute of Technology; Desire © satokunDayo. No game files are published here.