Daphnis 0.1.0

Daphnis

An operating system written in cint,
from the kernel to the calculator.

Daphnis is experimental. Use at your own risk.

The Daphnis desk with open windows

An ecosystem of applications
built from the ground up in cint,
with no outside dependencies.

The desk

Tap Super to open the Super plane. It holds your pinned apps, a search over apps and files, recent files, minimized windows and the power button. Apps open as floating windows, and a Super+ combination opens them tiled.

The Super plane over the desk: pinned apps, search and the power button

Ten apps

Daphnis comes with a file browser, a shell, two editors, a pager, a picture viewer, a calculator, a system monitor, a downloader and Settings. Every one of them is written in cint.

  • Index
  • Console
  • Edit
  • CVim
  • Read
  • View
  • Calc
  • Monitor
  • Fetch
  • Settings

Grants

When a program asks for more disk, network, sound or kernel rights than its account has, Daphnis shows an approval prompt. The prompt carries an AUTH mark that no unauthorized program can replicate, and a Parent's password answers it. Settings lists every grant, and Revoke takes a right back from a running window.

Settings, on its Grants page

The language

cint is integer C, and it checks every integer operation. An overflow, a division by zero or a bad shift stops the program with a fault record instead of giving a wrong value. The cint toolchain runs inside Daphnis, and cint rebuilds itself there.

user/ci/kit/roundel.ci
I64 sq(I64 v) { return v * v; }

Bool disk(I64 m, I64 u, I64 v, I64 cx, I64 cy, I64 r) {
    return sq(u - cx * m) + sq(v - cy * m) <= sq(r * m);
}

Integer arithmetic like this draws the round logo, and every other pixel on the desk, its text, shadows and motion included.

Get Daphnis 0.1.0

Start with QEMU, which runs Daphnis in a window on a Linux PC. To use a real x86-64 PC, write the image to a USB drive and start the PC from it; the PC needs UEFI, Secure Boot turned off and a processor with RDRAND. Daphnis is experimental. Use at your own risk.