/nebulet

(Going to be) A microkernel that implements a WebAssembly "usermode" that runs in Ring 0.

Primary LanguageRustMIT LicenseMIT

Nebulet

Join the chat at https://gitter.im/nebulet/nebulet Build Status

What is Nebulet?

Nebulet is a microkernel that executes WebAssembly modules instead of ELF binaries. Furthermore, it does so in ring 0 and in the same address space as the kernel, instead of in ring 3. Normally, this would be super dangerous, but WebAssembly is designed to run safely on remote computers, so it can be securely sandboxed without losing performance.

Eventually, once the Cretonne compiler matures, applications running on Nebulet could be faster than their counterparts running on Linux due to syscalls just being function calls, low context-switch overhead, and exotic optimizations that aren't possible on conventional operating systems.

Right now, Nebulet isn't ready to do anything yet, but it'll get there.

Building & Running

# install tools
# make sure that `python` is accessible.
$> cargo install xargo
$> rustup component add rust-src
$> cargo install cargo-xbuild
$> cargo install bootimage

# checkout code and associated submodules
$> git clone https://github.com/nebulet/nebulet.git
$> cd nebulet/ && rustup override set nightly
$> git submodule update --init

# compile the kernel
$> bootimage build

# run qemu
$> bootimage run