{"slug": "show-hn-erxos-a-microkernel-os-in-erlang-based-on-genera-plan-9-qnx-ideas", "title": "Show HN: erXos – a microkernel OS in Erlang based on Genera/Plan 9/QNX ideas", "summary": "A developer released erXos, a capability-based microkernel operating system written in Erlang, built on a slightly modified Fiasco C++ kernel and prototyped with the help of AI coding agents. erXos runs drivers, filesystems and a FreeBSD-derived TCP/IP stack as supervised Erlang processes, boots in a browser ARM64 emulator, QEMU and on a Raspberry Pi 4 SD card, and ships under the BSD license. The project aims for an ultra-reliable OS with hot code loading and combined system and BEAM-based isolation while preserving UNIX and Plan 9 conventions such as rc shell, 9P namespaces and windows-as-files.", "body_md": "What if every Erlang process were an operating-system process? With as much system code and drivers written in Erlang itself. This is something I was pondering for a while, and finally was able to prototype thanks to AI coding agents.\n\nerXos is a capability-based microkernel OS in Erlang: drivers, filesystems, and the network stack are all supervised Erlang processes, same as any app.\n\nThe kernel itself is Fiasco, in C++, slightly modified for erXos needs. This is an OS I wanted for a long time: an Erlang machine where every BEAM process is a process visible to the OS and scheduler, not something bolted on top.\n\nYou can try it right now with nothing to install: there is an emulator on the website that boots the whole OS in the browser ARM64 emulator. At the rc prompt, try `ps`, `top`, `ping` or `erl` and write any kind of erlang code. There's a Pi 4 SD image and a QEMU image too. The goal is to build an ultra-reliable microkernel OS with hot code loading and both system and BEAM-based isolation. The latter is one thing that would allow you to run millions of processes on the system, something that would be prohibitive on a microkernel alone due to the context switch overhead. Capabilities keep every component least-privileged, supervision keeps the machine running when drivers or subsystems crash, and hot code loading would let you fix a broken driver without reboot.\n\nThe secondary goal is to keep as much of a UNIX face as possible. Too many novel OSes change things for no particular reason that makes them hard to use. erXos tries to preserve as many existing UNIX/FreeBSD concepts as much as possible to remove the learning curve.\n\nWhat works today:\n\n- Boots in the browser/v64, in QEMU, and on a Raspberry Pi 4 from an SD card\n\n- A real shell (plan9 rc) with job control, pipes, `ps`, `grep`. It feels like UNIX on the surface\n\n- Erlang versions of basic UNIX apps.\n\n- Drivers written in Erlang: UART, virtio, SD card, Ethernet (GENET), display\n\n- A pure Erlang EROFS filesystem for root images\n\n- A TCP/IP stack in Erlang based on FreeBSD network stack and verified for correctness against it\n\n- Domains: every app runs as its own address space or Erlang node, isolated from others\n\n- Plan 9 namespaces and 9P everywhere; windows are files like RIO and 9P is a file protocol between OS servers\n\n- Supervision end to end: if a driver fails, its supervisor resets the device and restarts it\n\nI also have 2 demo apps built on app sdk: a full-screen kiosk app with live crypto quotes and clock and, of course Doom, which ships on the Pi 4 card image (type `doom`).\n\nWhat's coming:\n\n- Raspberry Pi 5 support\n\n- Full display on the Pi\n\n- WIFI\n\n- Bluetooth\n\n- POSIX-lite for C programs, so existing code can run as a domain\n\n- Performance, debugging and tracing features.\n\nThe code is all available under the BSD license.\n\nWould love to hear all and any feedback!\n\nComments URL: [https://news.ycombinator.com/item?id=50568169](https://news.ycombinator.com/item?id=50568169)\n\nPoints: 2\n\n# Comments: 0", "url": "https://wpnews.pro/news/show-hn-erxos-a-microkernel-os-in-erlang-based-on-genera-plan-9-qnx-ideas", "canonical_source": "https://stass.github.io/erXos/", "published_at": "2026-11-19 23:39:34+00:00", "updated_at": "2026-11-20 00:15:52.721545+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-agents", "developer-tools"], "entities": ["erXos", "Erlang", "Fiasco", "Plan 9", "QNX", "Raspberry Pi 4", "QEMU", "FreeBSD"], "also_reported_by": [], "takeaway": "erXos runs every BEAM process as an OS-visible process on a modified Fiasco microkernel, with Erlang drivers, a pure-Erlang EROFS filesystem and a FreeBSD-verified TCP/IP stack, bootable from a browser emulator, QEMU or a Pi 4 SD image under the BSD license.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/show-hn-erxos-a-microkernel-os-in-erlang-based-on-genera-plan-9-qnx-ideas", "markdown": "https://wpnews.pro/news/show-hn-erxos-a-microkernel-os-in-erlang-based-on-genera-plan-9-qnx-ideas.md", "text": "https://wpnews.pro/news/show-hn-erxos-a-microkernel-os-in-erlang-based-on-genera-plan-9-qnx-ideas.txt", "jsonld": "https://wpnews.pro/news/show-hn-erxos-a-microkernel-os-in-erlang-based-on-genera-plan-9-qnx-ideas.jsonld"}}