DEV Community

Juwen Lie
Juwen Lie

Posted on Originally published at juw12.github.io

Inti: A small capability-based microkernel OS for 32-bit x86, written from scratch in Rust.

POV: you try Inti for the first time.

A small operating system, written from scratch, that you can break on purpose.

A small capability-based microkernel OS for 32-bit x86, written from scratch in Rust. Boots in a browser tab to a desktop with windows; a crashed or hung driver, the display included, is restarted while the system keeps running, and files on its disk survive a restart. Emulator only, not verified.

In short:

  • Boot. A boot sector of 512 bytes, written in Rust, loads the kernel through the BIOS. No GRUB, no multiboot.
  • G8: The same disk image boots to the shell prompt in a web browser.
  • G9: Every number in the documents comes from a script or carries a source.
  • G2: Boots from its own boot sector to a shell prompt in QEMU within 20 s.

Feedback welcome, especially the critical kind.

What else it does

  • Mac: Inti-macOS-AppleSilicon.dmg (M1 and newer) or Inti-macOS-Intel.dmg. The first time, macOS blocks it because it is not notarized: System Settings → Privacy & Security → Open Anyway.
  • Android: Inti-android.apk: open the file on the phone and allow your browser to install apps once.
  • G1: One command builds the disk image from a clean tree.
  • G3: The self-test inside the system passes with at least 30 checks.
  • G4: Each supervised service is crashed and hung, restarted automatically, and timed.
  • G5: Every attempt of the hostile program without capabilities is denied.
  • G6: At least 1,000,000 random system calls: no kernel panic, no invariant violated.
  • G7: No heap in the kernel, every unsafe justified, at most 4,000 lines of kernel code.
  • help: lists every command.
  • tour: the guided tour: a hostile program, a keyboard driver crash, a display crash, a server hang, two failures at once and the kernel's counters, each step announced before it runs.

Under the hood

  • Written mostly in Rust
  • Hosted for free on GitHub Pages
  • Tests run in GitHub Actions on every push
  • MIT licensed

Links

Top comments (1)

Collapse
 
digivated profile image
Digivated Biz •

This is seriously impressive — the part that stuck with me is that it boots in a browser tab and you can watch a crashed driver restart while everything else keeps running. That's the kind of demo that makes a capability model click for people who would never read a paper about it.

One concrete thought: the "break it on purpose" angle is your best showcase. If you recorded a short clip of a driver crash and live restart — or the self-test catching the hostile program — that would travel far beyond this post. It's the one moment that's hard to convey in text alone.

Also appreciate the honesty about where it isn't finished yet. The guided tour command is a smart touch for getting people to actually try it instead of bouncing off the setup.