Loading video...

Video Failed to Load

Go Home

weekend quest: A real Linux kernel, compiled to WebAssembly. Programs run on a fast RISC-V CPU with a wasm JIT. It works on Node.js, Browsers, and even iOS.

69,114 views • 1 day ago •via X (Twitter)

27 Comments

Pooya Parsa's profile picture
Pooya Parsa1 day ago

Run any Linux program on your device: bash, node, ubuntu, python, databases, even Doom. Right in your browser tab. The kernel boots in milliseconds. [demo in realtime]

Pooya Parsa's profile picture
Pooya Parsa1 day ago

The kernel itself runs as native wasm. Only the programs are emulated, on kwemu: a riscv64 CPU written in Zig, with a wasm JIT. A syscall is a plain wasm call. Devices are paravirtual, backed by the JS SDK.

Pooya Parsa's profile picture
Pooya Parsa1 day ago

And you can use the JS SDK to embed unkernel in any Node.js or Web app:

Pooya Parsa's profile picture
Pooya Parsa1 day ago

Try online: Source:

Alex Zu's profile picture
Alex Zu1 day ago

the syscall being a plain wasm call is the detail that matters. every emulator before this had to trap and marshal across a boundary, and that trap is where they all got slow and miserable. also means the filesystem is a js object you can shim in tests

John Lindquist's profile picture
John Lindquist1 day ago

Amazing. Definitely going to see how I can push this.

Max Kupriianov's profile picture
Max Kupriianov1 day ago

you should ditch the RISCV64, check out ARM64v8 emulator in Zig (validated against real HW like ampere and mac)

れいちぇる_Web制作出身のAI・Webアプリ開発者's profile picture
れいちぇる_Web制作出身のAI・Webアプリ開発者1 day ago

カーネルをWasm化してブラウザやiOSまで動かせるのは、OS依存の実験環境を配りやすくするのが面白いですね。RISC-V上のJITまで含めて、移植先ごとの差をどこで吸収しているのか気になります。

Je Xia's profile picture
Je Xia1 day ago

insane 🚀

robby - rbby.dev's profile picture
robby - rbby.dev1 day ago

Very cool !

KiNFiSH's profile picture
KiNFiSH1 day ago

how practical is running a full WASI runtime inside the Linux guest given kwemu + JSPI and are there hard blockers on that ?

Syrus Akbary's profile picture
Syrus Akbary1 day ago

Nice! Great work!!

Kuldeep Pisda's profile picture
Kuldeep Pisda1 day ago

does guest RAM top out at wasm32's 4GB linear memory, or is unkernel on memory64 already

BrandonC's profile picture
BrandonC1 day ago

Awesome!

Smobile's profile picture
Smobile1 day ago

linux in wasm running on ios is a sentence that shouldn't work

J$'s profile picture
J$1 day ago

That has got to be one of the coolest projects 🤯

Boardy's profile picture
Boardy1 day ago

unkernel in a browser tab! tried to dm you about a sandbox builder running untrusted code i can intro you to but it didn't go through

Khalid Zoabi's profile picture
Khalid Zoabi1 day ago

@jexia_ This is awesome! We had the same weekend quest 😯

YCM Jason's profile picture
YCM Jason1 day ago

great song

John's profile picture
John1 day ago

Excited at first, but is it normal of a pure CPU task to be around 19x slower than native run? Running on arm64 Android natively. npx unkernel --mem 1024

TheMaker's profile picture
TheMaker1 day ago

I’d love to run <ununkernel> inside a browser inside it.

Dani Akash 🧪💥's profile picture
Dani Akash 🧪💥1 day ago

Can't wait to experiment on this 🤩

John Rood's profile picture
John Rood1 day ago

the part agents people should clock: the sandbox boundary is an import list. everything the code inside can touch is a wasm import you chose to expose, so the capability surface is enumerable. a container gives you a wall with a whole kernel behind it.

aFuzzyBear 🇺🇦's profile picture
aFuzzyBear 🇺🇦1 day ago

👀

Alan Hoa👨‍💻's profile picture
Alan Hoa👨‍💻1 day ago

Hey Pro! Let's connect, followed

Adam Wolff's profile picture
Adam Wolff1 day ago

I also built this this weekend. Promising!

Tom Zarebczan 🛡's profile picture
Tom Zarebczan 🛡1 day ago

Multithreaded with sharedarraybuffer?

Related Videos