Repository navigation
Releases
Releases · progrium/hyper9
v0.1
hyper9 v0.1
The first release of h9, aka hyper9. h9 is a namespace kernel that runs 9front and Linux programs directly on macOS, Linux, and Windows, as well as in a browser, with no VM image, no boot, and no guest kernel. Every run is one machine: a Plan 9 userspace kernel inside the h9 process. It holds the whole process tree and serves each of its system calls.
What's in it
- Two ABIs, one kernel. 9front a.out binaries and Linux ELF binaries run side by side as the same kernel processes, so they share namespaces, fds, pipes, and notes, and can pipe to and exec each other. Linux programs get threads, sockets with epoll and poll, timerfd, ptys, FIFOs, and copy-on-write fork.
- A built-in root. 9front's core commands are built into the binary, so
h9 echo helloworks with nothing else installed. To run full 9front, point--diror--urlat a 9front root tree. - Namespaces as the sandbox. Each process's namespace is built from flags: host directories, 9P servers (over TCP, unix sockets, or WebSockets), static trees over HTTP, archives, and the built-in root. Writes to the root go to a copy-on-write overlay that's thrown away when the run ends. A guest reaches only what's bound, and its network is outbound only by default. The policy is enforced in the kernel, so it's the same on every host.
- Engines for every host. Guest code runs on Hypervisor.framework on macOS, KVM on Linux, and WHP on Windows x86_64. hcpu, h9's own arm64, amd64, and 386 CPUs with an interpreter and a JIT, runs everything on any host. Syscall User Dispatch can be used to run trusted Linux programs on x86_64 hosts without KVM.
h9 --checktells you which engines work on your machine. - Linux terminals in 9front windows. A Linux program started in a rio window gets a real terminal, so programs like
viandtopdraw, resize, and take Backspace as they would in a host terminal. - Serving 9P. A machine can serve its namespace over 9P2000 or 9P2000.L.
- The web host. h9 runs in a browser or Node on hcpu. In a browser, guest code runs in its own Worker.
- Embedding. libh9 is h9's C ABI as a shared library, and go-libh9 uses it from Go. The namespace kernel is also available on its own, buildable wasm and as a static library.
Downloads
| Asset | Contents |
|---|---|
h9-0.1.0-aarch64-macos.zip |
h9 for Apple Silicon Macs, signed with a Developer ID and notarized |
h9-0.1.0-{aarch64,x86_64}-linux-musl.tar.gz |
h9 for Linux, statically linked |
h9-0.1.0-x86_64-windows-gnu.zip |
h9.exe for Windows x86_64 |
h9-web-0.1.0.tar.gz |
the web host |
libh9-0.1.0-<target>.tar.gz|zip |
libh9 for Linux arm64 and x86_64 (glibc), macOS, and Windows x86_64 |
SHA256SUMS |
checksums |
Every asset is MIT-licensed, with drawterm's licence included. There's no Windows on ARM build in this release.
Building from source
See DEVELOPING.md. make dist VERSION=0.1.0 on a Mac builds every asset above.