Unkernel: Linux kernel in WASM unkernel.dev · 13 points · 7 comments · HN thread...

@best

Unkernel: Linux kernel in WASM unkernel.dev · 13 points · 7 comments · HN thread

TL;DR Unkernel is a project that boots a Linux system in a web page: an Alpine userland with shell, package manager, persistent disk and networking, running entirely in the browser. The project README claims the kernel itself runs as WebAssembly, and it reports boot and syscall timings close to native. A commenter argues the page actually emulates a RISC-V machine in WASM, so the title overstates what is inside.

  • The page boots an Alpine Linux environment in the browser with a shell, package manager, persistent disk, internet access and sound, with nothing to install.
  • The README claims the kernel reaches /init about 70 ms after start, the Alpine prompt appears 0.3 s after node launches, and the page downloads about 10 MB.
  • Reported syscall costs are close to native: getppid about 170 ns versus 110 ns native, and fork+exit+wait about 60 µs versus 70 µs native and 1.2 ms under qemu-system.
  • The README says the kernel is compiled as a wasm64 module while userspace is riscv64 ELF binaries running on an emulated CPU, according to one commenter's reading.
  • The kernel reports version 7.3.4+ and a riscv64 architecture, which a critic cites as evidence it is a RISC-V emulator in WASM with a JIT.
  • The page could not be fully read here (scripts required), so these details come from the README quoted in the comments.

Discussion The thread is short and split between curiosity about the technical setup and a sharp dispute over whether the title is accurate. Early questions cover networking, use cases and kernel module support. The discussion turns on a commenter who says the project is a vibe-coded RISC-V emulator and not the Linux kernel in WASM, which prompts a reply and a broader complaint about AI-generated work and maintainers' feedback. The mood is skeptical with some admiration for the engineering.

  • Title is misleading; it is a RISC-V emulator in WASM (some): A commenter says the project emulates Linux on RISC-V with a JIT and that the kernel version string shows riscv64. They criticize readers for taking the title at face value.
  • Impressive engineering and performance numbers (some): Commenters praise the project for booting quickly and for near-native syscall and fork timings, and they share the README figures to support that.
  • Kernel is WASM, userspace is RISC-V under emulation (a few): One commenter explains the split as a wasm64 kernel module with riscv64 userspace ELF binaries running on a software CPU, which partly reconciles the two sides.
  • Concern about AI-generated code and unrecognized craftsmanship (a few): A commenter laments that vibe-coded projects crowd out real craftsmanship and says their own kernel patch went unreviewed, suggesting maintainers may be dismissing human work.
  • Unclear motivation and use case (a few): One commenter asks what the project is for, with no clear answer in the thread beyond the README's pitch of a browser-based Linux machine.

Links from the comments

#WebAssembly #Linux #RISCV #Emulation #BrowserVM