这里有人对参与这个操作系统的开发感兴趣吗?
Is anyone here interested in contributing to this OS?

原始链接: https://github.com/valivalivali/x-os

X OS 是一款专为 AI 时代设计的全新 x86_64 微内核操作系统。通过摒弃 POSIX 累赘和传统的 Unix 假设,它实现了一种极简架构:内核仅处理调度、内存管理和进程间通信(IPC)等核心任务;包括显示服务器和文件系统在内的所有其他服务,均作为 Ring-3 用户空间进程运行。 主要特性包括: * **极简设计:** 仅约 33 个系统调用,初始化进程和合成器等关键组件直接嵌入内核映像中。 * **透明开发:** 应用程序以软件包形式分发(通常包含源代码),允许用户随时阅读、理解并修改软件。 * **动态定制:** 用户空间配置系统在确保视觉统一的同时,赋予用户对界面的完全控制权。 * **实时演进:** 系统支持实时代码变更,消除了“编译-等待-运行”的周期。 目前 X OS 已通过 QEMU 在 Apple Silicon 上完成测试。该项目强调“活”的系统,致力于为开发者提供便利,并消除用户与创作者之间的隔阂。本项目基于 Business Source License 1.1 开放源代码,旨在促进社区研究与贡献,同时保留商业控制权。

一位开发者正在为其“X OS”招募贡献者。这是一个从零开始构建的 x86_64 自定义微内核,旨在避开 POSIX 和 Unix ABI。该内核仅专注于调度、内存和 IPC,而显示服务器和文件系统等系统组件则运行在 Ring 3 特权级。目前该项目已能在 QEMU 中运行并具备基本的硬件支持,现正寻求在驱动程序、网络、UI 和核心应用程序方面的帮助。 此贴在评论区引发了褒贬不一的反应。有用户认为,该操作系统可以成为 AI 代理的理想基础,因为 AI 代理更倾向于基于终端的界面,而非传统的 UI。然而,另一位潜在的贡献者表达了顾虑,指出该项目的许可条款未能充分保护或尊重贡献者的知识投入。
相关文章

原文

A clean-slate x86_64 microkernel operating system built from scratch. No POSIX baggage, no legacy Unix assumptions. The kernel stays minimal: scheduling, memory management, IPC ports, and hardware abstraction. Everything else (display server, filesystem, shell) lives in ring-3 userspace and communicates over message passing.

X OS Desktop

X OS is a microkernel designed for the AI era. No decades of compatibility debt, no legacy Unix assumptions, no POSIX baggage. The goal is an operating system that feels native to intelligent agents and human users alike: beautiful, consistent, and fully open to modification.

  • Microkernel architecture — the kernel provides ~33 syscalls. Filesystem access, GPU rendering, and input handling are delegated to ring-3 services that talk over IPC ports.
  • No POSIX / no Unix ABI — this is not Linux, BSD, or anything derived from them. The syscall surface is deliberately minimal.
  • Embedded userspace — the init process and display server (composer) are compiled as ELF binaries, then embedded directly into the kernel image as byte arrays. The kernel spawns them at boot.
  • Display server in userspace — a hardware-accelerated composer runs in ring 3, receiving surface commands from applications via IPC and flushing to a virtio-gpu framebuffer.

This is not a retro hobby OS. The goal is a forward-looking system where the boundary between user and developer disappears.

Applications ship as bundles. In many cases the source code is included directly in the bundle. Open any app, read how it works, modify it, and run your version immediately. Software on X OS is meant to be read, understood, and changed.

Controlled User Customization

Users have absolute control over the look and feel of the system, but within guardrails that preserve beauty and consistency. A user-space xui.plist file lets you tune animations, transitions, spacing, and behavior. You can make it yours without turning the desktop into a Frankenstein. The system enforces visual coherence — customization, not chaos.

Eventually, X OS will host a real-time programming environment. You edit code and see the result immediately, with no compile-wait-run loop. Changes propagate live into running processes. This is the natural endpoint of a microkernel built on IPC and dynamic surface composition: the entire system is designed to be modified while it runs.

Component Ring Responsibility
Kernel 0 Scheduling, memory alloc/map, IPC ports, timer, interrupts, NVMe/virtio drivers
Init (PID 1) 3 First userspace process; spawns services and registers well-known nameserver ports
Composer 3 Display server — surfaces, dirty rectangles, cursor, desktop background
Future: Terminal, Shell, FS service 3 Will run as normal ring-3 processes using IPC

Tested on macOS with Apple Silicon. You need:

  • Xcode Command Line Tools (provides clang, make, git)

  • Homebrewhttps://brew.sh

  • lld (LLVM linker)

  • xorriso (for building the bootable ISO)

  • QEMU — install via Homebrew or build from source. The Makefile auto-detects the path.

    Option A — Homebrew (quickest):

    Option B — build latest from source into /opt/qemu-head:

    git clone https://gitlab.com/qemu-project/qemu.git
    cd qemu
    mkdir build && cd build
    ../configure --prefix=/opt/qemu-head --target-list=x86_64-softmmu \
      --enable-virtiofsd --enable-spice --enable-cocoa
    make -j$(sysctl -n hw.ncpu)
    sudo make install
    

    The Makefile checks /opt/qemu-head first, then the Homebrew prefix, then falls back to qemu-system-x86_64 in your PATH.

One-time setup (downloads the Limine bootloader):

Build the bootable ISO:

This produces x-os.iso in the project root.

BIOS mode (SeaBIOS):

UEFI mode (OVMF):

QEMU is launched with:

  • Machine: q35
  • 512 MB RAM, 1 SMP
  • virtio-gpu-pci at 2560x1600, Cocoa display
  • NVMe disk (disk.img, created automatically if missing)
  • Serial output forwarded to stdio
x/
├── boot/           # Limine bootloader config and handoff structures
├── kernel/         # Microkernel source
│   ├── arch/x86_64/   # GDT, IDT, syscall entry, context switch
│   ├── memory/        # Physical page allocator, VMM, heap
│   ├── sched/         # Round-robin scheduler
│   ├── ipc/           # Port-based message passing
│   ├── proc/          # ELF loader; init and composer blobs
│   ├── hal/           # NVMe, virtio GPU, PS/2 input, PCI, timers
│   ├── fs/            # Custom XFS filesystem
│   └── entry/         # kmain() boot sequence
├── userspace/      # Ring-3 code
│   ├── init/          # PID 1
│   ├── runtime/       # Syscall wrappers (shared C library)
│   └── services/
│       └── composer/  # Display server
├── Makefile
└── disk.img        # Raw 4 MiB block device image (auto-created)
make clean       # remove build artifacts and ISO
make distclean   # also remove the fetched Limine directory

Business Source License 1.1

X OS is source-available under the BSL. This means:

  • Free for contributors — you can fork, modify, build, and send pull requests.
  • Free for personal, educational, and research use.
  • Commercial use requires a paid license — if you want to sell it, offer it as a service, or embed it in a product, contact the copyright holder.
  • All commercial rights reserved — the copyright holder controls all commercial licensing and may grant or deny commercial use at their sole discretion.

This model lets the community grow the project while keeping all commercial and acquisition paths fully controlled by the copyright holder. See LICENSE for full terms.

For commercial licensing, partnership, or acquisition inquiries, contact the copyright holder.

联系我们 contact @ memedata.com