Show HN: erXos – a microkernel OS in Erlang based on Genera/Plan 9/QNX ideas sta...
Show HN @show
Show HN: erXos – a microkernel OS in Erlang based on Genera/Plan 9/QNX ideas stass.github.io · 3 points · 3 comments · HN thread
TL;DR erXos is an experimental capability-based microkernel OS in which drivers, filesystems, the network stack and the shell are supervised Erlang processes, with BEAM processes mapped onto OS-visible processes. The author's project page describes it as in Phase 1 (booting on QEMU, Raspberry Pi 4 and in the browser via an emulator), using a modified Fiasco kernel, and released under BSD license. The HN thread is small (3 points, 3 comments) and centers on security questions about per-process network access.
- erXos runs drivers, file systems, the TCP/IP stack and the rc shell as Erlang processes under supervision; the kernel is a modified Fiasco written in C++.
- It boots in the browser (v64 AArch64 emulator), in QEMU virt, and on a Raspberry Pi 4 from an SD image; Doom ships on the Pi image.
- Authority is granted through capabilities; the author says network access is a capability that can be narrowed by protocol, port or traffic, but per-site restrictions are not implemented yet.
- Stated goals include millions of processes, hot code loading of drivers, and a UNIX-like surface (rc shell, ps, pipes, Plan 9 namespaces and 9P).
- Planned work includes Raspberry Pi 5 support, Pi display, WiFi, Bluetooth, and POSIX-lite for C programs.
- The project page reports checks against stock OTP test suites, herd7 litmus tests, TLA+ and CBMC models, and sanitizers, while noting their limits.
Discussion The thread is very short. The main exchange is a question from one commenter about whether any process could reach an arbitrary site and exfiltrate data or receive commands from malware, and how the system would prevent that per process or profile. The author answers that network access is a capability that can be narrowed by protocol and port, and that finer site-level control would be feasible later since all network traffic passes through an Erlang server. A third comment is a one-word enthusiastic reaction. Overall mood is curious and mildly positive, with the substance focused on security.
- Security and malware containment is the key question for a new OS (some): One commenter wants to know how erXos would stop a compromised process from contacting arbitrary hosts or receiving commands, and asks for documentation with concrete malware examples.
- Capabilities already give least-privilege network control (some): The author replies that processes only get explicitly granted abilities, with network access as a capability that can be split by protocol, port or traffic, and that per-site rules are not built yet.
- Enthusiastic reaction to the project (a few): A single one-word comment expresses approval without technical content.
#erlang #microkernel #operatingSystems #capabilities #showHN