Artifact e5e7b4705aab62726d69efd55bf84dfb1ecf7b9cdc4bb67a03b4dc01cb492634:
- File docs/manual/platforms.md — part of check-in [d66dc3f8af] at 2026-11-21 11:05:58 on branch docs-reorg — docs: short README; manual, reference, dev, design and archive under docs/; AGENTS.md; docs.sh checks docs against code; changelog.inc built at build time (user: dmestas, size: 1385) [annotate] [blame] [check-ins using] [more...]
Where pic can run
pic is C11 with every dependency vendored, links only libc, libm and pthread, does its own TLS, and
keeps all its state in SQLite. What touches the operating system sits behind two interfaces:
pic_platform (clocks, entropy, the lock, input files, the SQLite VFS) and pic_executor (file
operations and running commands). That makes unusual targets reachable:
- Today, or a build flag away: Linux and macOS; a single static musl binary for any Linux (distroless containers, rescue systems); ARM and RISC-V boards and routers, fully offline against a local OpenAI-compatible model server; the BSDs and illumos; Android under Termux; a memory-safe build under Fil-C, which already passes every suite.
- Reachable through the interfaces: a microVM with no userland, pic as its only process and the
project in SQLite, commands run on a separate runner (the optional no-OS build in the
plan); unikernels such as Unikraft, OSv or Nanos; WebAssembly
under WASI or in a browser tab, with the journal in browser storage and a
fetchor WebSocket transport; a Cloudflare Durable Object, whose built-in SQLite storage holds the journal. - With more porting: Windows natively (processes, the terminal and locking; WSL works today) and
iOS, where there is no
fork, through WebAssembly or the remote runner.