Galfus

Core Strengths: The Virtual Kernel

If Virtual Threads isolate memory and the virtual machine (VM) runs the Bytecode, who actually manages the queue and dictates when everything should run?

In Galfus, this responsibility does not fall to the host operating system. This is where the grand orchestrator comes in: the Virtual Kernel.

OS-Agnostic Orchestrator

The Virtual Kernel should not be confused with the Kernel of your base operating system (like Linux, Windows, or macOS). It is a lightweight lifecycle engine written entirely in a hardware-agnostic manner.

Its responsibilities include:

  • Receiving suspended tasks (PendingContinuation).
  • Routing byte messages (ByteMessage) between Virtual Threads.
  • Making consistent and portable scheduling decisions, handling chronological tie-breaks to guarantee determinism.

The Benefit of the Virtual Layer

The immense advantage of this architectural design is cross-determinism.

Because scheduler decisions are made by pure software within the Virtual Kernel—rather than being relegated to the underlying OS pthreads or Win32 threads—the exact same package (PackageImage) is guaranteed to fire events and return asynchronous operations in the exact same order everywhere.

It doesn't matter if the code is running natively on a powerful Linux server, compiled as a single script in a browser WASM environment blocking an Event Loop, or even running on a bare-metal IoT chip with no Operating System at all. The Virtual Kernel ensures that Galfus behaves identically, predictably, and deterministically across any environment.