Khelforge Kernel

The kernel is the part of an operating system that everything else depends on. Khelforge is developing its own.

What a kernel does

A kernel sits between programs and the computer. It decides which program runs on the processor, gives each one its own memory, talks to devices, and stops programs from interfering with each other. When you press a key in a game, the kernel helps carry it there.

Why an independent kernel

An operating system built on another kernel inherits many of its early design decisions, and changing them later is difficult. Developing our own lets gaming, security and compatibility be design goals from the first decision.

It is also far more work. Established kernels carry decades of hardware support and testing. An independent one starts without any of it.

Independent Khelforge Kernel In development
Solid lime means work has started. Dashed means it is not built. The plain bottom layer is your computer, which is not part of the system.

What it is designed for

These are goals. None of them is a measured result or a finished feature.

Processor time

Share the processor fairly, and keep response times steady while a game is running.

Memory

Keep every program’s memory separate, and behave predictably when memory runs low.

Interrupts

Carry news from devices to the right program without needless delay.

Hardware

Keep hardware details behind clear interfaces, so that devices can be added without changing the rest.

Security

Give each part only the access it needs, and keep faults contained.

Performance

Study what causes stutter and input delay, and measure before making any claim.

Compatibility

Provide the foundations that later environments for other platforms would need.

How it is engineered

Principles for the work, not a record of finished work.

Small steps
Each step is finished and checked before the next one depends on it.
Faults must be visible
A fault inside the kernel itself should stop the system in a known way. A fault in a separate part should stay contained.
Simple before fast
A part is made correct and understandable first. Speed comes from measurement.
Checked more than once
Automatic tests, static analysis and review look for different mistakes.

Verified status

In development

No public milestone has been verified yet. The kernel cannot be downloaded, and it is not ready for any use.

A first version that starts on a computer would be a prototype, not a finished kernel. The source code and internal design are private. The order of work is on the roadmap.