r/linux • • 13d ago

Kernel Unkernel : A real Linux kernel, compiled to WebAssembly

https://github.com/pithings/unkernel
152 Upvotes

25 comments sorted by

View all comments

5

u/Lenticularis19 12d ago

Why does it say riscv64 when it is supposed to be "compiled to WebAssembly"?

8

u/vip17 12d ago

The kernel is wasm, but the userspace is emulated RISC-V

Only user programs are emulated, with a JIT: unmodified riscv64 Linux binaries, so Alpine and Ubuntu packages run as they are.

6

u/deviled-tux 12d ago

We should just build the binaries to WASM and make a WASM-native distro

0

u/ldn-ldn 12d ago

The kernel should just be rewritten in JavaScript and run directly in V8, skipping all C/Rust/Assembly nonsense.