Release notes
Daphnis 0.1.0
Daphnis is a small operating system for x86-64 PCs. Its kernel, desk and programs are written in cint, where every integer operation is checked: an overflow or an out-of-range conversion stops with a fault, never a wrong value. Every pixel the desk draws, its text, shadows and motion included, comes from integer arithmetic. A small C runtime and a few short assembly stubs remain. Static Linux x86-64 programs run unmodified on the part of the Linux system call set Daphnis implements.
Built with public cint 0.2.18, commit a14a03f3, compiler source identity baa6d80a. The build refuses any other toolchain, so this is the one to install to build it again.
In 0.1.0
Desk
- Tap Super for the Super plane: pinned apps, search over apps and files, recent files, minimized windows, the power button.
- Apps open as floating windows; a Super+ combination opens them tiled. Alt+Tab shows each window. F11 fills the screen.
- The app's name in the bar is its menu: About, Settings, the app's own items, Window, Exit.
- Right-click menus, a tray, and a system panel for grants, sound and theme.
- Dark and light themes. Inter for the desk, JetBrains Mono for terminals, drawn natively at sizes 1x, 2x and 3x.
- Soft shadows and motion, with one switch to turn motion off.
- The power button offers Lock, Shut Down and Restart. Shut Down turns the computer off.
- Screen sizes from 1280 x 720 to 5120 x 1440, portrait to 2160 x 3840, up to 3840 x 2160 pixels in all.
Accounts and rights
- Parent and Child accounts. First boot makes a Parent. Every boot ends at the login screen. Super+L locks.
- A wrong password waits before the next try: none for the first three, then 2 seconds, doubling to 60. No account is ever locked out.
- File permissions follow POSIX. The kernel's own user gets nothing extra.
- A program that asks for disk, network, sound or kernel rights beyond its account's raises an approval prompt. The prompt carries an
AUTHmark that no unauthorized program can replicate, and names the app the desk opened, never a name the program chose. - Accounts in Settings: add, remove, change role, rights and password, each on a Parent's password. A removed account's home is set aside, never deleted. The last Parent cannot be demoted or removed.
- Grants in Settings: Revoke takes a right back from a running window and cuts what it already has open.
- Every home has Documents, Downloads and Pictures.
Files
- The home folder is an ext2 volume on the drive and survives a restart.
- Linux's limits: names of 255 bytes, paths of 4,096, 256 open files a process.
- Index, the file browser: Grid and List, Trash with Restore and Empty Trash, Properties, rename in place, cut, a rubber band. Names that begin with a dot stay hidden.
- Files keep their real modified time, in whole seconds.
Apps
| app | what |
|---|---|
| Console | cish, a POSIX shell, in a terminal |
| Edit | ced, the text editor, on the dark Console surface in both themes |
| CVim | a modal editor with Vim's grammar; build errors in a list |
| Read | cless, the pager, on the same surface; its commands in the app menu |
| View | PNG pictures up to 3840 x 2160; Show in Index |
| Calc | a calculator window over the same arithmetic as ccalc |
| Monitor | processor, memory, disk and network, and processes; End Process for the account's own |
| Fetch | downloads over HTTPS into Downloads; the tray counts finished downloads; in Console, grant net,disk fetch -o got.txt URL |
| Settings | Display, Desk, Sound, Keyboard, Network, Date and Time, Storage, Accounts, Grants, About |
- Screenshots: Print takes the screen, Super+Shift+S an area, Alt+Print the focused window. Each is a PNG in Pictures.
- Local time for 418 cities with daylight rules, the city chosen in Date and Time; a calendar under the bar's clock.
- Key repeat, with delay and rate in Keyboard settings.
Development
- The cint toolchain runs inside Daphnis: cint, QBE, cint's own assembler and linker.
cibbuilds a program; cint rebuilds itself to a fixpoint. No C compiler is in the image. - A native set of core commands. No busybox in any image a person uses.
Hardware
- Boots by UEFI from a USB drive, Secure Boot off.
- Keyboards and pointers on PS/2.
- USB keyboards and mice that speak the boot protocol, through xHCI: one keyboard and one mouse at a time, plugged in before or after boot.
- Wired network on QEMU's virtio.
- Intel e1000 family adapters, the I219-V included; an address by DHCP.
- Sound through Intel HD Audio, as QEMU models it.
Not in 0.1.0
- Dragging between windows.
- JPEG. View takes PNG only.
- A picture as the desk background. The Desk page offers six colors.
- Setting the clock by hand.
- Removable drives and eject.
- Keyboard layouts other than US.
- Changing the network after boot. The Network page reads only.
- Graphics load and graphics memory in Monitor.
- Wi-Fi and Bluetooth. Their rows show as unavailable.
- A web browser. Web Browser is listed and opens nothing.
- Busybox, a C compiler and GPL programs in the system. Doom is not in the image; its port is its own repository.
Known limits
- One processor core.
- Daphnis has no driver for NVMe or SATA. It never writes the computer's internal drives.
- On the drive it was written to, Daphnis writes only its own volume. It uses only the first USB drive it finds.
- On hardware the screen keeps the mode the firmware set. The Resolution list changes the mode under QEMU only; the Size setting works everywhere.
- No graphics acceleration: every pixel is drawn in software.
- USB: devices on the controller's own ports, no hubs. A USB drive plugged in after boot is not seen.
- Network on hardware: Intel e1000 family only. No Realtek driver, no Wi-Fi.
- Sound is untested on hardware.
- Nothing on the volume is encrypted. Whoever holds the drive can read every file and can attempt passwords offline. There is no recovery key yet; a second Parent can reset a forgotten password.
- One session at a time. No fast user switching. No sleep. No Log Out.
- Removing or demoting the account in use, or cutting its rights, ends its session at once, without asking about unsaved work.
- File times are ordered within one boot and kept in whole seconds.
- Monitor: a Child sees only its own processes; a Parent sees every process.
- One time zone a machine.
- Moving a window between floating and tiled may happen without motion.
- Of virtual machines, only QEMU is tested.
Download
One disk image, for QEMU or a USB drive, daphnis-0.1.0-x86_64.img, and its checksum file, SHA256SUMS.
The drive's boot loader is GNU GRUB, under GPL-3.0. LICENSES/ on the drive's EFI partition holds its license and names its source package, beside every other license text the image's notices name.
Requirements
In a window with QEMU, the way to start:
- A Linux PC with QEMU and its UEFI firmware.
On a PC from a USB drive:
- An x86-64 PC with UEFI. Secure Boot off.
- A processor with RDRAND. Passwords are salted from it; without it no account can be made.
- Memory: 4 GB minimum, 8 GB recommended. The desk itself needs 512 MiB.
- A USB drive at least as large as the image. Writing the image erases the drive.
- A keyboard on PS/2, or a USB keyboard on one of the computer's own ports.
To build the image from source:
- Debian or Ubuntu. The image's build takes GRUB and the name of its source package from the system's package records.
Booted so far on an MSI MPG Z390 Gaming Edge AC (Core i7-8700K) and an HP Laptop 15-da0xxx (Core i5-8250U).