Skip to content

Releases

pisco 0.2.0

Choose a tag to compare

@github-actions github-actions released this 03 Dec 19:14
8fdc29a

pisco 0.2.0 for Linux and macOS, x86-64 and arm64. Install: curl -fsSL https://github.com/Yhozen/pisco/releases/latest/download/install.sh | sh (docs/images.md#installing-pisco)

pisco 0.2.0-bun.1 (experimental: the Bun host)

Choose a tag to compare

@github-actions github-actions released this 03 Dec 22:40
aacf446

pisco 0.2.0 with the experimental Bun host: pisco run and pisco open need no Node on the machine. Linux and macOS, x86-64 and arm64. Highly experimental and not tested in CI: Bun moves fast (docs/images.md).

Install

curl -fsSL https://github.com/Yhozen/pisco/releases/download/v0.2.0-bun.1/install.sh | sh -s 0.2.0-bun.1
export PATH="$HOME/.pisco/bin:$PATH"
pisco install doom && pisco open doom

Back to the stable release: curl -fsSL https://github.com/Yhozen/pisco/releases/latest/download/install.sh | sh. Both are pisco 0.2.0, so each replaces the other; installed apps and saves stay.

Not for base/microvm-x64 apps (linux, alpine): pisco run says so, and PISCO_HOST=node runs them with Node. Building an app still needs bash and Python 3.

Licences of what is inside bin/pisco-host

The host is web/run-node.mjs (GPL-2.0-or-later, its source is in the kit under web/) compiled into one program with Bun 1.4.5 (MIT). Bun statically links JavaScriptCore and WebKit (LGPL-2.0-or-later and BSD) and tinycc (LGPL-2.1). Their notices are in the kit as bin/pisco-host.LICENSE.md. The source of those libraries, as built into this host:

To relink the host with another Bun (a changed JavaScriptCore): from a checkout of this repository, BUN_RUNTIME=<your bun> tools/build-host.sh <out>, then PISCO_HOST=<out> pisco run <app>.

The PS5 raymarching tech demo, in the browser (video)

Choose a tag to compare

@Yhozen Yhozen released this 27 Nov 03:41
fa1701a

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.

  • The lifter reads a native PS5 executable (an ELF of type 0xFE10): its loadable segments, relative relocations (their values kept for the runtime; the file holds 0 there) and imports by NID, named through ps5_nids.txt. The functions start from the entry point and every FDE of .eh_frame_hdr.
  • AVX, AVX2, FMA and BMI are lifted (avx.rs, rt/avx.h) instead of trapping: the demo has about 4,700 such instructions. A ymm register is its xmm register and c->yh[n]. tests/avx.sh checks 120 results of a Zen 2 build against what the CPU printed. A fused multiply-add is a multiply then an add by default (the last bit can differ); OPT='-O2 -DPISCO_FMA_EXACT=1' makes float ones exact but for rare double rounding, about a third slower in the demo. CPUID still does not report AVX, so titles that check it take their SSE paths; a PS5 title does not ask.
  • The runtime (rt/ps5/) answers the 38 system functions this demo calls: libkernel (direct memory, time, pthreads, sysctl), the C library, the system and user services, VideoOut (frame buffers flipped to the GPU back end as a texture), Pad (the page's keys and gamepad as a DualSense) and AudioOut (ports as mixer sources). tools/build-title.sh picks the base for OS=ps5.
  • Headless Chrome now passes --use-vulkan=swiftshader. Without it, Chrome 156 on the machine we used could not create the canvas's 1920x1080 swap chain texture, and the WebGPU device was lost on the first present.
  • tools/build-ps5-raymarch.sh downloads the demo's v1.4 release (GPL-3.0-or-later, not vendored), checks its SHA-256 and builds it. docs/ps5.md says how to run it, what works and what does not.
  • An offline render in Node (SW_CLOCK, SW_DUMP_RAW, SW_AUDIO_WAV, SW_MAX_FRAMES, SW_KEYS) dumps each 1920x1080 frame and the mix for ffmpeg. Worker yields no longer move the virtual clock, so the demo's own timers stay at 60 frames a second.

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=-).

fastfetch and neofetch, Linux programs, in the browser (video)

Choose a tag to compare

@Yhozen Yhozen released this 27 Nov 02:00
488f77c

The fourth runtime, Linux x64: two system-information programs, built as static x86-64 Linux programs, recompiled ahead of time to WebAssembly and run in Chrome. No Linux kernel or emulator runs in the page: the runtime answers the programs' system calls itself.

  • fastfetch 2.71.0 (C): one process. It reads the machine it finds through a generated /proc, /sys and uname, and prints it with its logo and colours (PR #31).
  • neofetch 7.1.0 (a bash script) on bash 5.2.37 and busybox 1.36.1: 83 processes forked and executed (fork, execve, wait4, pipes), each in a worker with its own memory. The page is a terminal, so neofetch can draw its logo, move the cursor back up and write beside it (PR #35).

The clip is 25 s, recorded in headless Chrome at real speed: fastfetch first, then neofetch. It is silent.

Build it yourself: tools/build-fastfetch.sh and tools/build-neofetch.sh build the programs from their pinned sources, and pisco build recipes/fastfetch / recipes/neofetch makes the title images. See docs/fastfetch.md and docs/neofetch.md.

The full changelog is on the project page: https://yhozen.github.io/pisco/

Narbacular Drop, a 2005 Windows PC game, in the browser (video)

Choose a tag to compare

@Yhozen Yhozen released this 25 Nov 03:59
a670eeb

The first Windows PC title: Narbacular Drop (2005, DigiPen), a 32-bit Direct3D 9 game, recompiled ahead of time to WebAssembly and played by hand in Chrome on an M1 MacBook Pro. No Wine or emulator runs in the page. Wine was only the reference the results were compared against.

Changes since the previous update (Doom, 2026-11-24)

  • XCL's console checks: all 50 pass in Chrome (step 4 of the ladder), and a progress map shows what the runtime implements against what titles use.
  • A second kind of title, Windows PC games: 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, DirectInput, and Wine as the reference every result is compared against (PRs #1–#7).
  • Recipes and title images: a title is built from your own installer, checked by sha256 (PR #8).
  • Narbacular Drop is playable in a desktop browser (PR #10).

The full changelog is on the project page: https://yhozen.github.io/pisco/

The clip is 51 s of level 1: the hint, leaving the cage, portals, and the princess in third person. It is cropped to the game's canvas. It is silent: the game's sound played during the session but wasn't recorded. A headless capture with sound can be made with recipes/narbacular-drop/video.sh.

What runs underneath

  • CPU: the game's x86 code, lifted to C and compiled to wasm (the lifter's 32-bit mode, x87 included).
  • Graphics: Direct3D 9 fixed-function, drawn with WebGPU through WGSL shaders the runtime writes.
  • Text: GDI with Liberation Sans.
  • Sound: FMOD 3 on an AudioWorklet.
  • Input: DirectInput from the keyboard and a Pointer Lock mouse.
  • Saves: kept in OPFS.

Speed on that machine: 294–355 frames a second in lighter views and 103–174 in the heaviest. No WebGPU error over 4.4 M draws.

Build it yourself: the game is built from your own installer into a title image with sw build recipes/narbacular-drop --source <installer>. The installer is checked by sha256, and no game files are in the repository. See docs/narbacular-drop.md and docs/images.md.

Narbacular Drop © DigiPen Institute of Technology. It is shown here as played from the publicly released installer.

Doom as an Xbox console title in the browser (video)

Choose a tag to compare

@Yhozen Yhozen released this 24 Nov 13:27

Doom as an Xbox console title, running in a web browser. This is the first public update. The changelog of every update since is on the project page: https://yhozen.github.io/pisco/

In this update

  • The title: our console Doom, doomgeneric with Freedoom, built against D3D12.X, GameInput, XAudio2 and XGameSave.
  • CPU: its x86-64 code recompiled ahead of time to WebAssembly.
  • Graphics: D3D12.X translated to WebGPU. Step 3 of the graphics ladder.
  • Sound: XAudio2 mixed into an AudioWorklet.
  • Input and saves: GameInput from the page; saves kept in OPFS.

The clip was recorded in headless Chrome with WebGPU on SwiftShader (no GPU), every frame read back from WebGPU. It shows the title and attract demo, a new game, the automap, a save, a page reload (a new title process) and the save loaded back.

Game data: Freedoom (BSD-3-Clause). Engine: doomgeneric (GPL-2.0).