AKUMA
Bohemian operating system

Compose
your own kernel

A platform kernel assembled from crates to fit your runtime. Akuma is an experiment at building a durable and minimal operating system that can sustain its own development needs.

main.rsrust
#![no_std]
#![no_main]

akuma_tokio_kernel::entry!(main);

fn main(kernel: akuma_tokio_kernel::Kernel) -> ! {
    kernel
        .name("Akuma")
        .banner(include_str!("banner.txt"))
        .console()
        .disk()
        .net()
        .smp()
        .run_init()
}

A computer you can understand.

Akuma is a small, hackable operating system written in Rust. It runs in the cloud, under KVM, and on bare-metal personal computers. It has enough of a development environment to build itself—and a stack a single engineer can explore, understand, extend, and adjust for their own needs.

Akuma is built from crates, so you can compose a kernel for the job and leave out what you don’t need. At roughly 140,000 lines of production Rust, it offers a more approachable codebase to study and audit than a general-purpose system built over decades. It provides an easy path to building custom kernels for the workloads you want to run—whether that’s Scala, Rust, Go, Python, or something more fun and niche like Clojure—with a kernel ELF of just a couple of megabytes.

You don’t have to abandon your favorite tools: thanks to Linux ABI compatibility on aarch64 and amd64, you can run familiar Alpine packages and Docker images. If you like source-based distros, try it with Gentoo.

Linux is a mature and vastly more capable operating system. Akuma is an experiment in a different direction: how much of a useful computer can we build, understand, and maintain ourselves?

00 / the kernel family

Shared roots.
Different missions.

A family of kernels composed from shared foundations, each built to run a specific runtime.

Akuma

Linux ABI compatible OS and hypervisor. Runs on AWS and on amd64 Ryzen laptop and is used to develop itself and other kernels

                      =#=      .-
                      +*#*:.:-**
                      +%%#%##***
                      +%%%#%%#**.
                      +%@@@%%%+*:
          :::::--=+++*%@%@%%%%*-
     :-+##%%%%%%%%@%@#%%@%%%%##%+
  .=##%%%%%%%%%@@@@@%#%%@%%%@@@%%-
.*%%%%%%%@%%%%@%@@@@%%%%@%%%%%@@#-
%@%%%%%%%%%%@%%%%%@@@%%%@@@@@%%%#+
*%%%%%@%@@%@@@%%%%#%@@@@@@@%%@@%@@@*+--
 ::=+*#@@@@@@@@@@@%%%%%%@%%@#----=**@%@#
         .--+**%@@@@@%@@%%@@%*       :-.
                  ::::---#@%%*
Rust / TokioPythonamd64aarch64JVMContainersKVM host

Denver

A JVM platform kernel composed from Akuma crates, built to run Clojure and Scala.

   /\        /\        /\        /\        /\
  /  \  /\  /  \  /\  /  \  /\  /  \          D E N V E R
 /    \/  \/    \/  \/    \/  \/    \        https://akuma.sh/
_/                                    \_     Beans System Debauchery:
  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~       kernel for Clojure
Rust / TokioPythonamd64aarch64JVMContainers · experimental

Taoxichuan

A self-hosting kernel born from an experiment with open models.

                                   ||==================||
       )  (                        ||   TAOXICHUAN     ||
      (    )                       ||                  ||
     )  (  (                       ||        陶        ||
     /\/\/\/\                      ||        溪        ||
    /        \                     ||        川        ||
   /          \                    ||                  ||
  /   .-""-.   \                   ||    KILN-FIRE     ||
 |   /      \   |                  ||     MARKET       ||
 |__|________|__|                  ||==================||
                                   ||                  ||
===================================||==================||=
┌──────────────────────────────────||──────────────────||┐
│  • Fired in Akuma's kiln                               │
│  • Booted under Akuma's hypervisor on Akuma's metal    │
└────────────────────────────────────────────────────────┘
Rust / TokioPythonamd64aarch64

Shanghai

A small tutorial kernel assembled from the Tokio kernel building blocks.

            |                                                      ___
            |                   |                                 /   \
         .-----.               /_\           ___________         /     \
        ( ==o== )              | |          |  _______  |       /       \
         '-----'              /___\         |  /     \  |      /         \
            |                 |   |         |   /   \   |     |           |
     .-------------.         /_____\        |    /_\    |     |           |
    /               \        |     |        |           |     |___________|
   |     ===o===     |      /_______\       |           |     |           |
    \               /       |       |       |           |     |           |
     '-------------'       /_________\      |           |     |___________|
        //     \\          |         |      |___________|     |           |
       //       \\         |         |      |           |     |           |
      //         \\        |         |      |           |     |___________|
     //           \\       |         |      |           |     |           |
    //             \\      |         |      |           |     |           |
 __________________________________________________________________________
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Rust / TokioPythonamd64aarch64
01 / field notes

Experiments

Talks and experiments from the strange places you can go when you build your own operating system.

02 / by the numbers

Stats

A snapshot of the code and the bugs we have found along the way.

136,200

production Rust code lines in src/, crates/ and taoxichuan/src/. Line counter ↗

73,890

test Rust code lines in the same source scope, counted separately from production. Line counter ↗

99.25%

of production Rust code lines are outside unsafe blocks in that scope. Line counter ↗

330

production unsafe sites counted across the same Rust source scope. Line counter ↗

3 / 4

kernels initially built with mostly open models: Denver, Taoxichuan and Shanghai.

1,695

distinct fixes recorded in the Akuma bug-fix audit. Bug-fix list ↗

142

distinct Taoxichuan fixes recorded in its separate audit. Bug-fix list ↗

500+

investigation documents contribute fixes to the Akuma bug-fix audit. Bug-fix list ↗