Hasty Briefsbeta

Bilingual

Show HN: Munal OS: a graphical experimental OS with WASM sandboxing

a year ago
  • #Rust
  • #WASM
  • #Operating System
  • Munal OS is an experimental operating system written entirely in Rust with a unikernel design.
  • It features a fully graphical interface in HD resolution with mouse and keyboard support.
  • Applications are sandboxed using WASM, ensuring security and memory separation.
  • The OS includes a network driver, TCP stack, and a customizable UI toolkit.
  • Embedded applications include a web browser, text editor, and Python terminal.
  • Munal OS does not implement traditional OS features like bootloaders, page mapping, virtual address space, or interrupts.
  • It runs as a single EFI binary, utilizing UEFI boot services minimally.
  • The OS relies on VirtIO drivers for input, network, and GPU, making it currently limited to QEMU.
  • Performance is monitored via a global event loop, with cooperative scheduling for applications.
  • The UI toolkit, Uitk, supports immediate mode rendering and basic widgets with customizable styling.
  • Munal OS uses Wasmi for WASM execution, providing a custom system call API instead of WASI standards.
  • The project is built with Rust Nightly 2025-06-01 and requires specific Rust components for compilation.
  • Acknowledgments include Philipp Oppermann's Rust OS tutorial and various open-source projects.