Quick Answer: You can now run Linux in a browser tab at usable speed. unkernel compiles the Linux kernel to WebAssembly so the kernel runs at wasm speed, while only user programs are emulated. Combined with trynix.dev, which boots Nix packages, you get GUI windows, audio, networking, and even Firefox running inside Firefox, with no install.
Two years ago, running a full Linux desktop in a browser was a party trick you'd show once and forget. Most people who tried it hit a wall within minutes. The problem wasn't capability. It was speed. A new engine called unkernel changes that math, and the author of a recent post on fzakaria.com put it best: the timeline Gary Bernhardt once joked about has arrived years early.
Why Linux in a browser stayed a novelty
The old approach ran a full virtual machine under QEMU, compiled to WebAssembly as qemu-wasm. Every instruction the kernel executed was emulated, and the kernel does an enormous amount of work during boot. The result was a machine that technically worked but felt like watching paint dry.
Here's the cause-and-effect chain that matters. When the kernel does heavy setup work, that work runs through an emulation layer, so every boot and first-run operation pays a penalty. Users then see long waits before anything useful happens, and the experience reads as a demo instead of a tool.
The common assumption is that browser emulation is inherently too slow for real work. That's only half right. The slow part was the kernel, not the user programs. Moving the kernel itself onto wasm attacks the bottleneck directly, which is why the design is more interesting than a simple speed-up.
What unkernel actually changes
unkernel is Linux compiled to WebAssembly. The kernel and system components run at wasm speed, and only user-space programs are emulated. It was published on November 19, 2026 by Pooya Parsa and is available on npm.
This split is the key design decision. Your shell and tools like rg, jj, or python3 still run through emulation, but the parts that dominated boot time no longer do. Think of it as moving the expensive bookkeeping out of the slow lane.
The author integrated the engine into trynix.dev, which already let visitors run any Nix package, with over 300,000 distinct package versions, from a browser. Previously the QEMU path made the platform feel more like a novelty than a practical environment. With unkernel as the default, that changed.
Benchmarks: the 2x to 32x claim, with caveats
The author reports that unkernel delivers 2x to 32x faster performance than qemu-wasm, depending on the workload, with the largest gains on first runs where kernel work dominates. The benchmark page tracks both engines over time, measured through the real page and shell rather than a synthetic harness.
Two caveats matter before you plan around these numbers. First, the author applied a set of patches on top of the engine to make it faster, so your results from stock unkernel may differ. Second, a range of 2x to 32x is wide on purpose: it reflects the workload mix, not a single guaranteed multiplier. Treat it as direction and magnitude, then measure your own workload.
Here's where it gets interesting for practitioners. A 32x gain on a cold start changes what's worth attempting in a browser. Tasks that once made you give up, like pulling a package and running a short test, become tolerable.
What works in the browser now
The practical question is whether this is a real environment or a demo. The source describes four capabilities that go well beyond a terminal:
| Capability | How it works in trynix | What it means for you |
|---|---|---|
| Kernel | Runs at wasm speed under unkernel | Faster boot and first-run tasks |
| GUI windows | Wayland surfaces composited by wland, floating over the terminal | Real graphical apps, not only text |
| 3D graphics | Minimal Mesa build with the virgl driver, rendered through WebGL2 | GL demos like gears run in-tab |
| Audio | ALSA sound card playing through the browser | Sound from programs inside the VM |
| Networking | Each TCP connection tunneled over one WebSocket to a Wisp relay | curl, git clone, and pip install work |
The networking row deserves a closer look. Browsers can't open raw TCP sockets, so the design tunnels each connection over a WebSocket to a Wisp relay. The author notes that Wisp relay operators have to allow-list hosts, which is a real operational constraint if you plan to depend on this for anything beyond experiments.
The author's demo list is a useful checklist for your own testing: solitaire, GL gears, xeyes, a voice program, a weather check over curl, and Firefox. If one of these fails in your environment, check whether the relay allow-list or WebGL2 support is the cause before blaming the kernel.
The Firefox-in-Firefox test
Gary Bernhardt's 2014 talk, The Birth & Death of JavaScript, included a joke about a browser running inside another browser. The author made it real: Firefox on Linux, compiled to WebAssembly, running in a Firefox tab, loading trynix.dev, then loading Firefox again inside itself.
It's a stunt, and the author admits it took more than an hour to render. But the stunt proves something useful. Each layer of the stack, from wasm kernel to Wayland compositor to WebGL2 rendering, held together under nested load. That's a stronger signal than a benchmark chart.
Most people stop here and treat it as a joke. Don't. The fact that a graphical browser can run inside a sandboxed tab is the same property that makes browser-hosted development environments plausible.
Where Atwood's Law fits
Jeff Atwood's 2009 observation, that any application that can be written in JavaScript eventually will be, is the frame the author uses. Bernhardt's talk imagined that outcome by 2035, worked backward from that date. Large language models, the author argues, sped the timeline up considerably.
Is that a fair reading? The honest answer is partly. Compiling C and C++ to WebAssembly and running an operating system's kernel in a tab is a real shift in where software can execute. But "everything runs on JavaScript" overstates it. The browser is a host for wasm modules, and JavaScript is the glue. The more defensible claim is that the browser is becoming a general-purpose runtime, and JavaScript is the interface to it.
Frequently Asked Questions
What is unkernel?
unkernel is Linux compiled to WebAssembly. The kernel and system components run at wasm speed, while only user-space programs are emulated. It was published by Pooya Parsa on November 19, 2026, and is available on npm for building browser-based Linux environments.
How do I run Linux in a browser without installing anything?
Open a browser-hosted environment such as trynix.dev, which boots on unkernel by default. You get a shell, GUI windows, audio, and networking in the tab. Check that your browser supports WebGL2 and that your network allows WebSocket connections to the relay, since both are required for graphics and internet access.
Why is Linux in a browser slow?
Traditional browser setups emulate the whole machine, including kernel boot and setup work, through QEMU compiled to WebAssembly. That makes first runs expensive. unkernel moves the kernel onto wasm, so the heavy kernel work runs at wasm speed and only user programs pay the emulation cost.
Is unkernel faster than qemu-wasm for every task?
No. The author reports 2x to 32x speed-ups depending on workload, with the biggest gains on first runs, and used a set of patches to reach those numbers. Measure your own workload, because gains vary with what you run.
Can I run GUI apps in a browser tab with WebAssembly?
Yes, in trynix. Wayland surfaces are composited into the page by wland and float over the terminal, and GL rendering goes through a minimal Mesa build with the virgl driver over WebGL2. Heavier apps like Firefox work but can take a long time to render.
Quick takeaways and where to start
The single most useful change here is conceptual: the slow part of browser Linux was the kernel, and moving the kernel to wasm fixes the bottleneck where it actually sat. Run Linux in browser tests like this one are now worth doing rather than merely demonstrating. Open trynix.dev this week, run glxgears or curl against a site you care about, and note how long the first run takes. Then pass the link to a colleague who keeps saying a browser can't run real software.