unkernel Compiles Linux to WebAssembly and Boots the Kernel in 70 Milliseconds
Running Linux in a browser has a long history. v86 and JSLinux emulate an entire PC, handling everything from the kernel to user space in software. The result is faithful but slow. Every system call and page fault goes through emulation.
Another approach emulates only the CPU and leaves system calls to the runtime. It is faster, but reproduces only the Linux behavior the runtime implements. Programs can also be rebuilt as wasm and run in a POSIX-compatible environment, but features that need a memory management unit (MMU), such as fork, either break or are approximated.
unkernel takes a different approach. It compiles the Linux kernel itself into a single wasm module. System call handling, scheduling, memory management, the ext4 file system, and the TCP/IP stack all run as compiled code at wasm speed.
Only user-space programs are emulated. The Zig-based aarch64 (ARM64) CPU emulator kwemu is linked into the kernel and runs unmodified Linux binaries. Because kwemu reads kernel page tables directly, Linux's own code handles memory management. A full MMU with Sv48 page tables gives fork, mmap, copy-on-write, shared memory, threads, and signals their hardware semantics. This is a full MMU port.
When a program makes a system call, kwemu hands control back to the kernel. Compiled wasm code handles it directly, without an emulated trap or kernel mode. Many of the operations that slow an emulated system happen inside the kernel: process creation, page faults, file I/O, and network I/O. In unkernel, all of them run at wasm speed.
A kernel that boots in 70 milliseconds
The project's benchmarks, run in Node.js on November 14, 2026, show that the kernel reaches /init in about 70 milliseconds. The Alpine Linux prompt appears after 0.3 seconds.
System calls approach native Linux speeds. getppid takes about 170 nanoseconds, around 60 more than the native result of 110. That is one-tenth of the 1,700 nanoseconds under qemu-system. The full fork + exit + wait sequence takes about 60 microseconds, compared with about 70 natively and 1,200 under qemu-system, a 20-fold difference from QEMU.
System call performance in three environments
| Operation | unkernel | Native | qemu-system |
|---|---|---|---|
| getppid | About 170ns | 110ns | About 1,700ns |
| Fork sequence | About 60µs | About 70µs | About 1,200µs |
※Benchmarks ran in Node.js on November 14, 2026.The fork sequence measures fork+exit+wait.
JIT compilation also helps user-space code. kwemu compiles frequently executed aarch64 code into wasm modules at runtime, yielding 1.6x to 2.3x the speed of its interpreter alone. It still falls well short of native performance.
Farid Zakaria, who develops Trynix for running the Nix package manager, switched from a QEMU-based WebAssembly emulator to unkernel. In a blog post published on November 23, 2026, US time, he said speed had limited the usefulness of the QEMU-based environment. After switching and making optimizations, he measured about 2x to 32x faster performance on first runs, depending on the workload. The first run of hello showed the largest gain, at 32x. Initial runs dominated by kernel work benefit most.
CPU-heavy operations still lag far behind native execution. The README gives examples: apk search takes about 0.8 seconds and apk add python3 about 3.4 seconds. Floating-point and SIMD operations still go through the interpreter because the JIT does not cover them. The speed gains are concentrated in the kernel.
First-run gains from QEMU to unkernel
※First-run speedup varies by workload.
A Linux desktop inside the browser
Open unkernel.dev and a Linux desktop appears after a download of about 10MB.
It boots Debian 13 by default, with shell access through the terminal. Users can switch to Alpine Linux 3.24. Supported browsers include Chrome and Edge 137 or later, Firefox 153 or later, and Safari 27 or later, including on smartphones. Changes persist across reloads in browser storage.
The desktop uses Wayland. A compositor called wland displays Wayland surfaces from GUI apps as windows on the web page. Mesa's virgl driver is compiled to WebAssembly and renders OpenGL through WebGL 2. Browsers with WebGPU can also run Vulkan 1.2. Audio output is supported.
Trynix uses unkernel to run more than 300,000 distinct package versions from 13 years of nixpkgs history. Opening a URL fetches the specified package and version from cache.nixos.org and unpacks it into the Linux guest. It works for GUI applications as well as command-line tools.
In a hands-on article published on November 28, 2026 (UTC), The Register's Liam Proven described Doom running on an iMac more than a decade old and Linux Firefox running within Chrome on macOS. Zakaria himself opened trynix.dev in Firefox running under Trynix and then launched another Firefox inside it. The nested run took more than four hours. He had to disable JIT in the innermost Firefox and OpenGL in the middle instance.
The Register also covered SideBySide, a practical use of unkernel and Nix developed by Michael Lohr. It places Firefox, Chromium, and WebKit-based Epiphany side by side in one browser tab, loading the same URL in all three engines at once, without a virtual machine.
The release files are compact. In v0.2.0-261127-3b71fa5, released November 27 (UTC), the Alpine Linux file system image is about 3.86MB and Debian's about 74.2MB. The compressed wasm kernel is about 4.22MB.
2035 came nine years early
The Register identifies unkernel's developer, Pooya Parsa, as Iranian. He announced the project on X on November 15 and published v0.2 on November 19. Vercel is listed as a GitHub sponsor. The kernel is licensed under GPL-2.0-or-later, while the JavaScript SDK and web page use the MIT license, allowing developers to bundle them with their own products. The project is also available on npm and can start from a terminal with npx unkernel.
Zakaria's title, "2035 Came Early," refers to Gary Bernhardt's 2014 PyCon talk "The Birth & Death of JavaScript." Bernhardt looked back from an imagined 2035, predicting that technologies derived from JavaScript would replace operating systems and hypervisors. The talk came a year after asm.js, a precursor to WebAssembly.
Twelve years later, unkernel is realizing part of that prediction. Proven also recalled a 2019 remark by Docker founder Solomon Hykes, who said he would not have needed to create Docker if WASM and WASI had existed in 2008.
The project documents its limitations. IPv6 is unsupported. In browsers, UDP is limited to DHCP and DNS. Inbound connections are unsupported. Floating-point and SIMD operations still run through the interpreter, and a wasm trap inside the kernel ends the session. The project is still far from replacing native operating systems or virtualization infrastructure wholesale.
Even so, compiling the kernel bypasses layers of OS and hypervisor design built up over 50 years. Running Linux in a browser tab opens the possibility of distributing existing software and its dependencies through a single URL.
The link delivers the environment itself: a Linux shell with the tools already in place. The technology is open source and drew more than 2,800 stars in less than two weeks. Performance and browser constraints remain. But a kernel boot in 70 milliseconds shows that bringing a full operating system into a tab has moved beyond a novelty.
KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.
