Skip to content

Instantly share code, notes, and snippets.

@lemanschik
Created November 26, 2026 17:10
Show Gist options
  • Select an option

  • Save lemanschik/80cfc2a6fbf24744b3cd07661bc47744 to your computer and use it in GitHub Desktop.

Select an option

Save lemanschik/80cfc2a6fbf24744b3cd07661bc47744 to your computer and use it in GitHub Desktop.
Report to urus

github.com/popovicu — Full 42-Repository Audit & AwesomeOS Integration Matrix

Important

Why popovicu (Uroš Popović) Matters to AwesomeOS: Across 42 public repositories, Popović explores the exact same foundational thesis as AwesomeOS — stripping away legacy GNU/glibc/systemd/X11 bloat and targeting the bare-metal CPU / Linux syscall / VM socket boundary directly using Zig, C, JS, Java, Rust, Go, and single-source-of-truth build specs.


1. Complete Categorization of All 42 popovicu Repositories

Category Repositories (42 Total) Core Technical Pattern
A. Bare-Metal & Zig/RISC-V Kernels (8) zig-time-sharing-kernel (★218), risc-v-bare-metal-fake-bios (★47), risc-v-bare-metal-fake-kernel (★21), risc-v-bare-metal-rust-dynamic-memory (★12), risc-v-sbi-timer (★6), risc-v-software-interrupts (★5), zig-riscv-interrupts (★4), bare-metal-zig Freestanding Ring-0/S-Mode kernels (startup.S, linker.ld, OpenSBI timer traps, preemptive context.zig / scheduling.zig / syscall.zig, MMIO UART) in < 1,000 LOC of Zig/C/Rust.
B. Polyglot Micro-Linux Distros (7) ultimate-linux (★329, JS + sys_ops.c), linux-micro-distro (★63, C), linux-no-mmu-userspace-example (★48, C), linux-userspace-lua (★22, Lua bytecode in C), alpine-linux-self-setup (★12, rootless unshare), jlinux (★5, Init.java + musl), linux-multiplatform-initramfs (★4) Booting the Linux kernel straight into a tiny single-binary polyglot PID 1 (JS, Java, Lua, C) with zero glibc/systemd.
C. VM & Kernel Storage/IPC Plumbing (2) g2disk (★32, Go userspace Linux block device over NBD), vsock-grpc (★11, C++ host ↔ guest VM RPC over AF_VSOCK) Bypassing virtual NIC/TCP stacks (AF_VSOCK) and projecting remote/content-addressed storage directly as a Linux /dev/nbd* block disk.
D. Custom Silicon, ISAs & Bare-Metal JS (6) mrav-cpu (★95), bare-metal-cstdlib (★16), raspberry-pi-led-minimal-system (★11), bare-metal-javascript (★8, elk.c JS on RISC-V with 0 OS!), avr-cooler-control (★1), onespec + kappa-isa (single-spec ISA → docs + assembler + simulator + SystemVerilog RTL) Zero-drift hardware/ISA generation (OneSpec) and running JavaScript in < 20 KB RAM on bare metal (Elk + custom cstdlib).
E. Compiler & Hermetic Monorepo Tooling (17) llvm-go-codegen (★19), pageforge (Go static site builder), typst-bazel + typst-bazel-examples, bazel-monorepo-modern, bazel-monorepo-example, bazel-cross-compile-c, bazel-rust-example (riscv64 + wasm32 shared no_std), avr-bazel, glua-kit + glua-kit-example, go-grpc-bazel-example, cross-compile-cgo-bazel, golang-container-bazel, bazel-grpc-services Hermetic 1-command polyglot monorepo builds, shared riscv64 + wasm32 no_std crates, and deterministic Typst/HTML document pipelines.
F. Misc / Profile (2) go-easy-http-server, popovicu, grpc-go (fork) Minimal Go helper & profile repo.

2. Architecture Map — Where the Top 8 Gems Plug Into AwesomeOS

flowchart LR
    subgraph Popovicu["Top 8 popovicu Patterns to Adopt"]
        P1["zig-time-sharing-kernel\n(Zig + OpenSBI S-Mode scheduler)"]
        P2["vsock-grpc\n(AF_VSOCK host <-> VM transport)"]
        P3["g2disk\n(Userspace Linux block device)"]
        P4["ultimate-linux + jlinux\n(JS & JVM PID 1 /init)"]
        P5["alpine-linux-self-setup\n(Rootless unshare JSON -> sysroot)"]
        P6["onespec + kappa-isa\n(1 ISA spec -> sim + asm + docs + tests)"]
        P7["bare-metal-javascript + cstdlib\n(<20 KB freestanding JS)"]
        P8["pageforge + typst-bazel\n(Hermetic doc/SVG/PDF rendering)"]
    end

    subgraph AwesomeOS["Target Subsystem in awesome-os/awesome-os"]
        A1["os/microkernel-zig/ (Option 3 <64 KB Freestanding Holo-Microkernel)"]
        A2["sections/sectium-device/ + Holo Crostini (Zero-TCP B8G016 VM IPC)"]
        A3["os/kernel/ + registry/ (Mount cas/v11 directly as /dev/b8g-cas0 block disk)"]
        A4["runtime/sectium-es/ & runtime/sectium-jvm/ (Polyglot PID 1 appliances)"]
        A5["fleet/workspaces.mts (On-demand rootless Crostini Linux containers)"]
        A6["packages/@awesome-os/b8g-emu-kit (b8g-riscv-emu / x64-emu single-spec)"]
        A7["os/bootloader/ (Scriptable UEFI / OpenSBI recovery shell in <32 KB)"]
        A8["compiler/holo-compiler/ (Zero-Bazel Typst/SVG/HTML doc projections)"]
    end

    P1 --> A1
    P2 --> A2
    P3 --> A3
    P4 --> A4
    P5 --> A5
    P6 --> A6
    P7 --> A7
    P8 --> A8
Loading

3. Detailed Breakdown: What to Take, What to Skip, and Why

Tier 1 — Immediate High-Impact Adoptions (Direct Production Value)

  1. vsock-grpc → AwesomeOS Holo Crostini & sectium-device (AF_VSOCK Transport)

    • What we take: The AF_VSOCK (VMADDR_CID_HOST = 2 ↔ guest CID) socket framing pattern — replacing gRPC/Protobuf bloat with our 64-byte B8G_ABI_MAGIC_V3 NDJSON/binary rings!
    • Why it fits AwesomeOS: Our workspace rule B8G016 strictly forbids 127.0.0.1 TCP/HTTP for local VM/daemon IPC. Adding CONFIG_VSOCKETS=y + CONFIG_VIRTIO_VSOCKETS=y to awesome-os-7.3.config lets AwesomeOS Shell on the host talk to Holo-Linux 7.3.6 Crostini VMs in QEMU/Hyper-V/KVM at near-memory speed with zero virtual NIC or NAT setup!
  2. zig-time-sharing-kernel → os/holo-microkernel-zig/ (Freestanding < 64 KB MicroVM / Edge Kernel)

    • What we take: His clean 11-file Zig structure (startup.S, linker.ld, sbi.zig, timer.zig, interrupts.zig, context.zig, scheduling.zig, thread.zig, syscall.zig, uart_mmio.zig) — which compiles out of the box with our existing .\bin\zig.cmd (0 WSL, < 0.5 s compile time!).
    • Why it fits AwesomeOS: Earlier we discussed pairing Holo-Linux 7.3.6 (for bare-metal laptops/GPUs) with a freestanding < 64 KB holo-microkernel (for instant < 5 ms RISC-V / x86_64 MicroVMs, rescue boot, and @awesome-os/b8g-riscv-emu browser VMs!). Adapting zig-time-sharing-kernel to expose B8G_ABI_MAGIC_V3 syscalls gives us a real, readable, 100%-Zig Ring-0/S-Mode kernel we can boot directly inside our browser shell via b8g-riscv-emu!
  3. g2disk (Concept, Rewritten Without Go/cgo/Bazel) → v11 CAS Block-Device Mapper (holo-nbd / ublk)

    • What we take: The architecture of serving a massive virtual disk on demand over Linux NBD (or Linux 6.0+ io_uring ublk), implemented in C11 / TypeScript backed directly by holo-v11 SHA-512 chunks instead of Go+cgo+gRPC.
    • Why it fits AwesomeOS: Lets a 25 MB netbooted AwesomeOS machine mount a 14 GB read-only A/B Slot A root disk (GNOME / KDE / CUDA / vLLM) instantly over HTTPS v11 CAS, fetching only the 4 KB–64 KB blocks pages actually fault in — just like ChromeOS dm-verity + lazy SquashFS/EROFS!
  4. alpine-linux-self-setup → Rootless Holo Crostini Container Hydrator (fleet/workspaces.mts)

    • What we take: His 80-line declarative JSON config -> curl + tar + unshare rootless sysroot builder (zero Docker daemon, zero root required!).
    • Why it fits AwesomeOS: In ChromeOS, Crostini gives power users an isolated Linux terminal where apt/apk works without touching the immutable host OS. Pairing alpine-linux-self-setup's rootless unshare pattern with v11 CAS hardlinks gives AwesomeOS a < 2 second ChromeOS Crostini container!

Tier 2 — Strategic R&D & Runtime Accelerators

  1. ultimate-linux (sys_ops.c + ultimate_shell.js) & jlinux (Init.java) → runtime/sectium-es & runtime/sectium-jvm
    • What we take: His tiny sys_ops.c (mount("proc", ...), mount("sysfs", ...), reboot()) syscall shim (~60 LOC of C) so sectium-es (79.7 KB Linux musl) or sectium-jvm (72.1 KB Linux ELF64) can boot directly as /init (PID 1) inside specialized AwesomeOS app-appliances!
  2. onespec + kappa-isa → @awesome-os/b8g-emu-kit (b8g-riscv-emu, b8g-x64-emu, b8g-ppc-emu)
    • What we take: The OneSpec invariant (define instruction encodings & semantics once in TypeScript/StealifyLang data → auto-generate decoder, JIT/Wasm emitter, disassembler, markdown reference, and differential conformance tests), eliminating drift across our 3 emulators.
  3. bare-metal-javascript (cesanta/elk + bare-metal-cstdlib) → Scriptable Bootloader / Rescue Shell
    • What we take: Elk is a ~15 KB C99 JS subset engine that runs in fixed static RAM (0 malloc!). Embedding a tiny scriptable evaluator into os/bootloader/ lets admins write declarative JS boot-policy rules (Slot A vs Slot B health checks) right inside UEFI / OpenSBI!

What We Deliberately Do NOT Take (Keep AwesomeOSDebloated!)

  • Skip Bazel / Starlark (MODULE.bazel, *.bzl): Half of popovicu's repos wrap tiny 200-line programs in heavy JVM-based Bazel toolchains. AwesomeOS already has holo-compiler + .\bin\zig.cmd + v11 CAS, which cross-compiles the exact same C/Zig/Rust/Wasm targets in < 1 s with zero Bazel JVM daemon.
  • Skip grpc-go / Protobuf wire bloat: Keep AF_VSOCK and NBD/ublk kernel transports, but speak flat 64-byte B8G_ABI_MAGIC_V3 structs and Web Streams instead of HTTP/2 + Protobuf.

4. Recommended Next Execution Batch (Click "Proceed" to Build)

  1. os/holo-microkernel-zig/: Build a clean < 32 KB freestanding RISC-V time-sharing microkernel in Zig (inspired by popovicu/zig-time-sharing-kernel, compiled via .\bin\zig.cmd, exposing B8G_ABI_MAGIC_V3 syscalls and bootable in QEMU + @awesome-os/b8g-riscv-emu).
  2. AF_VSOCK Zero-TCP Crostini Bridge: Enable CONFIG_VSOCKETS=y + CONFIG_VIRTIO_VSOCKETS=y in awesome-os-7.3.config and add vsock:// host↔VM channel support in sections/sectium-device/ (popovicu/vsock-grpc pattern, zero B8G016 TCP!).
  3. Rootless Crostini Sysroot Builder (os/crostini/bootstrap-sysroot.mts): Declarative JSON → SHA-512 v11 CAS rootless Linux container hydrator (popovicu/alpine-linux-self-setup pattern).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment