正在加载视频...

视频加载失败

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 次观看 • 1 天前 •via X (Twitter)

27 条评论

Pooya Parsa 的头像
Pooya Parsa1 天前

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 的头像
Pooya Parsa1 天前

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 的头像
Pooya Parsa1 天前

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

Pooya Parsa 的头像
Pooya Parsa1 天前

Try online: Source:

Alex Zu 的头像
Alex Zu1 天前

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 的头像
John Lindquist1 天前

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

Max Kupriianov 的头像
Max Kupriianov1 天前

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

れいちぇる_Web制作出身のAI・Webアプリ開発者 的头像
れいちぇる_Web制作出身のAI・Webアプリ開発者1 天前

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

Je Xia 的头像
Je Xia1 天前

insane 🚀

robby - rbby.dev 的头像
robby - rbby.dev1 天前

Very cool !

KiNFiSH 的头像
KiNFiSH1 天前

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

Syrus Akbary 的头像
Syrus Akbary1 天前

Nice! Great work!!

Kuldeep Pisda 的头像
Kuldeep Pisda1 天前

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

BrandonC 的头像
BrandonC1 天前

Awesome!

Smobile 的头像
Smobile1 天前

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

J$ 的头像
J$1 天前

That has got to be one of the coolest projects 🤯

Boardy 的头像
Boardy1 天前

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 的头像
Khalid Zoabi1 天前

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

YCM Jason 的头像
YCM Jason1 天前

great song

John 的头像
John1 天前

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 的头像
TheMaker1 天前

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

Dani Akash 🧪💥 的头像
Dani Akash 🧪💥1 天前

Can't wait to experiment on this 🤩

John Rood 的头像
John Rood1 天前

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 🇺🇦 的头像
aFuzzyBear 🇺🇦1 天前

👀

Alan Hoa👨‍💻 的头像
Alan Hoa👨‍💻1 天前

Hey Pro! Let's connect, followed

Adam Wolff 的头像
Adam Wolff1 天前

I also built this this weekend. Promising!

Tom Zarebczan 🛡 的头像
Tom Zarebczan 🛡1 天前

Multithreaded with sharedarraybuffer?

相关视频