Kernelium

„Všechno je objekt."

Experimentální operační systém napsaný v Rustu.

Bez souborů. Bez složek. Append-only log. Object Store.

Experimental operating system written in Rust.

No files. No folders. Append-only log. Object Store.

GitHub

Vize

Současné operační systémy jsou zatíženy historickými kompromisy, které vznikly v době, kdy paměť i výpočetní výkon byly extrémně omezené. Soubory, adresáře a cesty nejsou fundamentem výpočetních systémů, ale pouhou implementační berličkou.

Kernelium staví na jiné myšlence: operační systém jako databáze. Místo souborů máme objekty s typy, metadata a vztahy. Místo file systému máme append-only log s automatickou persistencí. Místo procházení složek AI-driven queries podle obsahu a kontextu.

Každá entita má identitu, chování a vztahy k ostatním objektům. Historie je zachována. Time-travel je built-in. Crash recovery je triviální.

Vision

Modern operating systems are burdened by historical compromises created in an era of extremely limited memory and computing power. Files, directories, and paths are not fundamental concepts of computation, but merely implementation artifacts.

Kernelium is built on a different idea: the operating system as a database. Instead of files, we have objects with types, metadata, and relationships. Instead of a file system, we have an append-only log with automatic persistence. Instead of browsing folders, AI-driven queries by content and context.

Every entity has identity, behavior, and relationships to other objects. History is preserved. Time-travel is built-in. Crash recovery is trivial.

Implementované funkce

Core OS

  • BIOS boot
  • VGA text mode 80x25
  • IDT, GDT, exception handlers
  • PS/2 keyboard driver

Memory Management

  • Heap allocator (1 MiB)
  • Virtual memory (paging)
  • Page fault handler
  • Memory statistics & regions

Multitasking

  • Task management
  • Preemptive scheduling
  • Context switching (x86_64 asm)
  • Round Robin scheduler

Disk I/O

  • ATA driver (PIO mode)
  • LBA 28-bit addressing
  • 512-byte sector operations
  • Automatic disk detection

Object Store

  • 9 object types (Text, Audio, Video...)
  • Metadata systém (key-value)
  • Object relations (vazby)
  • Query API (type, metadata, time)

Disk Persistence

  • Superblock (sektor 0)
  • Append-only log
  • Object serialization
  • Auto-recovery on boot

Implemented Features

Core OS

  • BIOS boot
  • VGA text mode 80x25
  • IDT, GDT, exception handlers
  • PS/2 keyboard driver

Memory Management

  • Heap allocator (1 MiB)
  • Virtual memory (paging)
  • Page fault handler
  • Memory statistics & regions

Multitasking

  • Task management
  • Preemptive scheduling
  • Context switching (x86_64 asm)
  • Round Robin scheduler

Disk I/O

  • ATA driver (PIO mode)
  • LBA 28-bit addressing
  • 512-byte sector operations
  • Automatic disk detection

Object Store

  • 9 object types (Text, Audio, Video...)
  • Metadata system (key-value)
  • Object relations
  • Query API (type, metadata, time)

Disk Persistence

  • Superblock (sector 0)
  • Append-only log
  • Object serialization
  • Auto-recovery on boot

Stav vývoje jádra

Boot & VGA Text Mode✓ HOTOVO
IDT / PIC / IRQ / Keyboard✓ HOTOVO
Memory Management (Heap + Paging)✓ HOTOVO
Preemptive Multitasking✓ HOTOVO
Disk I/O (ATA Driver)✓ HOTOVO
Object Store (Types, Metadata, Relations)✓ HOTOVO
Disk Persistence (Append-only Log)✓ HOTOVO
Garbage CollectionPLÁN
Compression & IndexingPLÁN
AI Integration (Embeddings)PLÁN
Network StackPLÁN
User Space & ShellPLÁN

Kernel Development Status

Boot & VGA Text Mode✓ DONE
IDT / PIC / IRQ / Keyboard✓ DONE
Memory Management (Heap + Paging)✓ DONE
Preemptive Multitasking✓ DONE
Disk I/O (ATA Driver)✓ DONE
Object Store (Types, Metadata, Relations)✓ DONE
Disk Persistence (Append-only Log)✓ DONE
Garbage CollectionPLANNED
Compression & IndexingPLANNED
AI Integration (Embeddings)PLANNED
Network StackPLANNED
User Space & ShellPLANNED

Architektura

Object Store Format

Disk Layout:

Sektor 0:     Superblock
              ├─ Magic: "KERN" (0x4B45524E)
              ├─ Version: 1
              ├─ Next free sector
              └─ Total objects, total bytes

Sektor 1+:    Append-only Log
              ├─ Object 1 (N sektorů)
              ├─ Object 2 (M sektorů)
              └─ Object 3 (K sektorů)...
        

Binary Format:

[8B ObjectID][1B Type][8B Created][8B Modified]
[4B DataLen][4B MetaCount][4B RelCount]
[N bytes Data]
[M bytes Serialized Metadata]
[R bytes Serialized Relations]
        

Architecture

Object Store Format

Disk Layout:

Sector 0:     Superblock
              ├─ Magic: "KERN" (0x4B45524E)
              ├─ Version: 1
              ├─ Next free sector
              └─ Total objects, total bytes

Sector 1+:    Append-only Log
              ├─ Object 1 (N sectors)
              ├─ Object 2 (M sectors)
              └─ Object 3 (K sectors)...
        

Binary Format:

[8B ObjectID][1B Type][8B Created][8B Modified]
[4B DataLen][4B MetaCount][4B RelCount]
[N bytes Data]
[M bytes Serialized Metadata]
[R bytes Serialized Relations]