The Operating System
ApexRift is a from-scratch, bare-metal operating system written entirely in KernRift. There is no C, no Rust, no libc, no LLVM, and no host kernel underneath it. Every subsystem — bootloaders, page tables, interrupt handlers, the ArFS block filesystem, AES-128-XTS volume encryption, the ARX executable loader, the TCP/IP and TLS 1.3 stack, the graphical compositor, the DEFLATE compressor, and the handset WiFi, Bluetooth, and PMIC drivers — is written in-tree.
ApexRift is self-hosting: the KernRift compiler (krc) runs natively inside ApexRift and compiles its own source into an ARX binary whose FNV-1a checksum is byte-identical to the host-compiled binary.
Real Hardware & Morgana_VM
Emulators lie by omission. A kernel that runs in QEMU can still hang silently on a real UEFI laptop (where the GOP framebuffer lives at 912 GiB) or a Redmi Note 8 Pro handset (which has no serial port at all, so every bring-up fault looks identical: a dark panel).
Because of that, ApexRift is proven on physical hardware — an ASUS ROG Strix G18 UEFI laptop and a MediaTek MT6785 handset — and checked beforehand under Morgana_VM, a pair of KernRift-written x86_64 and AArch64 emulators held to QEMU byte for byte. Unlike a general emulator, Morgana stops on any unknown instruction or unmodelled device access and names it rather than guessing.
Design Values
- Non-vacuous evidence. Assertions in the tree are expected to be proven falsifiable — break the mechanism under test and confirm that specific gate fails.
- Import-time backend selection. Hardware backends are wired at import time, never dispatched through nullable function pointers at runtime. A missing backend is a link error before silicon is ever touched.
- Fixed RAM regions for OS state. The kernel owns the memory map, so shell and OS state live in explicit fixed regions rather than a hidden allocator.
- No black boxes. Every protocol, crypto primitive, compression pass, and boot-image packer is owned end to end and measured against independent references (
curl,gzip -t, QEMU, and physical silicon).
The Creator
ApexRift is created by Pantelis Christou, an Electrical and Computer Engineering student. The project grew out of a simple rule: understand the entire machine from bare metal up by building every layer yourself, with no legacy abstractions in the way.
Bug reports, architecture discussions, and contributions are welcome on GitHub.
Related Projects
ApexRift is part of a vertically sovereign computing stack built from the compiler up:
- KernRift: The self-hosted bare-metal systems language and compiler that builds ApexRift, with direct x86_64, AArch64, RISC-V 32, and Xtensa codegen and 8-platform fat binaries.
- Morgana_VM: The x86_64 and AArch64 test instrument written in KernRift, held to QEMU byte for byte, with physical machine profiles for the laptop and handset.
- MLRift: A bare-metal ML compiler forked from KernRift with a native AMD RDNA 2/3 GPU backend — no ROCm, no hipcc, no LLVM, no Python at runtime.
- SpicyRift: A zero-C, zero-libc desktop MP3 player with karaoke lyrics, live spectrum visualizer, and Whisper auto-sync compiled from KernRift to Linux ELF, Windows PE, and universal fat binary.
- CarRift: A bare-metal ESP32 CAN-bus interface written entirely in KernRift — no ESP-IDF, no FreeRTOS, no C toolchain.
Contact
For collaborations, architecture discussions, or inquiries regarding ApexRift and the rest of the stack:
Bug Reports & Discussions