Pure Rust · Single Address Space · AI-Ready · Replace Everything

The Future of the Operating System

Sex Microkernel — 96× smaller than Linux. Hardware-enforced PKU isolation. Zero-copy PDX IPC. Lock-free. Wait-free. Every line pure Rust. This is what every OS should have been.

Scroll
0×
Smaller than Linux
0×
Faster IPC
0
Kernel Image Size
0%
Pure Rust — No C
SAS Visualiser
01 — Architecture

One Space.
No Walls.

Traditional OSes fragment the world into isolated address spaces — a context switch, a TLB flush, a kernel crossing on every message. SexOS uses a single unified virtual address space for kernel, servers, and every user process. Everything sees everything. PKU enforces who may touch what.

  • Zero TLB flush on process switch — no CR3 reload, ever
  • Pointer passing between domains — no copy, no serialization
  • Sub-microsecond context switch latency — Linux can't touch it
  • Linux burns GiB per process VAS. SexOS uses one.
PKU Domain Rings
02 — Isolation

Hardware Keys.
Zero Trust.

One address space, sixteen hardware protection domains. Intel PKU — Protection Keys for Userspace — enforces memory access rights at the CPU level. No kernel involvement. Switching domains costs one instruction: WRPKRU. Not a syscall. Not a context switch. One instruction.

  • 16 PKU domains — kernel, display, input, shell, user processes
  • Domain switch: WRPKRU in userspace — no syscall overhead
  • Isolation enforced by CPU — unforgeable, not bypassable in software
  • Meltdown-class attacks eliminated — hardware walls, not kernel walls
PDX Zero-Copy IPC
03 — Communication

3.5× Faster.
Zero Copy.

Linux IPC copies data between isolated address spaces — memcpy at every boundary. PDX (Protection Domain eXchange) passes raw pointers inside the single address space, flipping PKU keys atomically. The data never moves. Only the permission changes.

  • 3.5× faster than Linux pipe IPC — measured, not theoretical
  • Zero copy — pointer + PKU key flip, not memcpy
  • Lock-free, wait-free — no mutex, no futex, no stall ever
  • 5-arg ABI: pdx_call(slot, syscall, a0, a1, a2)
Rust Type Crystal
04 — Language

Pure Rust.
128K Total.

Every line is Rust. No C, no C++, no assembly beyond a handful of ISR stubs. The borrow checker eliminates use-after-free, buffer overflows, and data races at compile time — the kernel can't have memory safety bugs by construction. The entire image is 128 kilobytes. Linux is 30 megabytes.

  • 128K kernel — fits entirely in L2 cache on any modern CPU
  • Zero memory-safety bugs by construction — compile-time proof
  • Custom allocator, ELF loader, scheduler, work-stealing queue
  • AI-agent-ready — safe, predictable, formally verifiable surface
System Stack

Minimal kernel. Maximum capability.

USER PROCESSES silk-shell · apps · AI agents · future services
PDX SERVERS sexdisplay · sexinput · sexusb · silkbar
KERNEL 128K · PKU · PDX · Sched · ELF
HARDWARE x86-64 · Intel PKU · xHCI · UEFI
Development Videos

Watch SexOS being built.

Deep-dives into the kernel, live demos, architecture breakdowns. Follow the revolution from zero to replacement.

▶ Subscribe on YouTube
Open Development

Replace Everything.
Together.

SexOS is an open project. If you know Rust, systems programming, or you just want to build the operating system of the future — we need you.

Hack the Kernel

PKU domains, PDX IPC, work-stealing scheduler, ELF loader. Real OS work, pure Rust.

🖥

Build Servers

Display compositor, USB input, shell, window manager. User-space OS components.

📖

Write & Spread

Architecture docs, blog posts, tutorials. Help people understand what's possible.