# MacroMag OS

Hi everyone!

Over the past month, I’ve been building \*\*MacroMag OS\*\* — an experimental, Linux distribution that replaces the legacy GNU userland and traditional text-based shells with a cohesive, memory-safe userspace written from scratch in \*\*Rust\*\* (with minimal C glue).

Instead of building just another standalone CLI tool or a Debian derivative, my goal was to design an integrated operating system where \*\*init (PID 1)\*\*, \*\*shell execution\*\*, \*\*sandboxing\*\*, and \*\*package management\*\* share a unified, strongly-typed architecture.

\### Core Architecture

1\. \*\*VOS (Virtualized Object Shell) as PID 1 (\`/init\`)\*\*

\* Runs directly as the system's init process (\`PID 1\`), mounting virtual filesystems (\`/dev\`, \`/proc\`, \`/sys\`, \`/tmp\`), reaping orphaned processes, and initializing networking.

\* \*\*Typed Memory Pipelines:\*\* Instead of serializing data to raw ASCII streams and parsing them with \`grep\`/\`awk\`/\`sed\`, VOS commands pass strongly-typed structs (\`Vec&lt;VosObject>\`) directly in memory with native unit awareness (\`B\`, \`KB\`, \`MB\`, \`GB\`).

\* \*\*First-Class Kernel Sandboxing:\*\* Process isolation is built directly into the shell grammar using Linux namespace syscalls (\`CLONE_NEWNET\`, \`CLONE_NEWNS\`, \`CLONE_NEWPID\`):

\`\`\`rust

// Query processes using > 256MB RAM inside an isolated network namespace

sandbox(net: false) -> [sys.ps](http://sys.ps)() | where memory > 256MB && status == "running" | select pid, name, memory | limit 10

\`\`\`

\* \*\*Dual-Mode Execution:\*\* Automatically routes VOS object pipelines to the internal AST executor while delegating legacy POSIX redirections to \`/bin/sh -c\` when needed.

2\. \*\*MUR (MacroMag User Repository)\*\*

\* A lightweight, zero-git package manager written in Rust (\`userspace/mur\`) integrated directly into VOS (\`mur.sync()\`, \`mur.install()\`, \`mur.list()\`).

\* Fetches manifests, verifies \`sha256\` checksums, and installs static binaries cleanly without dependency bloat.

3\. \*\*Multi-Architecture Support (x86_64 & ARM64)\*\*

\* Bootable ISOs are available for both \*\*x86_64\*\* (bare-metal/VM) and \*\*ARM64/AArch64\*\* (tested on Raspberry Pi, Apple Silicon via UTM, and Android via Termux/QEMU without root).

\* Static Rust workspace compiled against \`musl\` (~400 KB core binary), designed to run smoothly on 512 MB RAM and older hardware to fight e-waste.

\### Links & Documentation

\* \*\*GitHub Repository:\*\* <https://github.com/Macromag-os/Macronag-32>

\* \*\*Project Website:\*\* <https://macromag-os.github.io>

\* \*\*License:\*\* GPL v3

\### Looking for Architectural Feedback & Contributors

The system is currently in its MVP stage (20+ milestones completed, automated ISO builds working). As I move toward the next phases — specifically \*\*UEFI/GPT installer support\*\*, a \*\*TOML-based Rust service supervisor\*\*, and designing a \*\*native object-oriented GUI\*\* that maps VOS memory objects directly to screen elements — I’d love to hear your thoughts!

\* How would you approach designing a zero-copy IPC layer if we expand VOS objects across separate user processes?

\* If anyone is interested in low-level Rust, \`no_std\`/musl userspace, or OSDev, check out our open \*\*Issues\*\* on GitHub — feedback, critiques, and PRs are very welcome!
