Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

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 Aufrufe • vor 1 Tag •via X (Twitter)

27 Kommentare

Profilbild von Pooya Parsa
Pooya Parsavor 1 Tag

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]

Profilbild von Pooya Parsa
Pooya Parsavor 1 Tag

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.

Profilbild von Pooya Parsa
Pooya Parsavor 1 Tag

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

Profilbild von Pooya Parsa
Pooya Parsavor 1 Tag

Try online: Source:

Profilbild von Alex Zu
Alex Zuvor 1 Tag

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

Profilbild von John Lindquist
John Lindquistvor 1 Tag

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

Profilbild von Max Kupriianov
Max Kupriianovvor 1 Tag

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

Profilbild von れいちぇる_Web制作出身のAI・Webアプリ開発者
れいちぇる_Web制作出身のAI・Webアプリ開発者vor 1 Tag

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

Profilbild von Je Xia
Je Xiavor 1 Tag

insane 🚀

Profilbild von robby - rbby.dev
robby - rbby.devvor 1 Tag

Very cool !

Profilbild von KiNFiSH
KiNFiSHvor 1 Tag

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

Profilbild von Syrus Akbary
Syrus Akbaryvor 1 Tag

Nice! Great work!!

Profilbild von Kuldeep Pisda
Kuldeep Pisdavor 1 Tag

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

Profilbild von BrandonC
BrandonCvor 1 Tag

Awesome!

Profilbild von Smobile
Smobilevor 1 Tag

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

Profilbild von J$
J$vor 1 Tag

That has got to be one of the coolest projects 🤯

Profilbild von Boardy
Boardyvor 1 Tag

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

Profilbild von Khalid Zoabi
Khalid Zoabivor 1 Tag

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

Profilbild von YCM Jason
YCM Jasonvor 1 Tag

great song

Profilbild von John
Johnvor 1 Tag

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

Profilbild von TheMaker
TheMakervor 1 Tag

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

Profilbild von Dani Akash 🧪💥
Dani Akash 🧪💥vor 1 Tag

Can't wait to experiment on this 🤩

Profilbild von John Rood
John Roodvor 1 Tag

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.

Profilbild von aFuzzyBear 🇺🇦
aFuzzyBear 🇺🇦vor 1 Tag

👀

Profilbild von Alan Hoa👨‍💻
Alan Hoa👨‍💻vor 1 Tag

Hey Pro! Let's connect, followed

Profilbild von Adam Wolff
Adam Wolffvor 1 Tag

I also built this this weekend. Promising!

Profilbild von Tom Zarebczan 🛡
Tom Zarebczan 🛡vor 1 Tag

Multithreaded with sharedarraybuffer?

Ähnliche Videos