Show HN: erXos – a microkernel OS in Erlang based on Genera/Plan 9/QNX ideas sta...

@best

Show HN: erXos – a microkernel OS in Erlang based on Genera/Plan 9/QNX ideas stass.github.io · 9 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 every BEAM process visible to the OS scheduler. The author, Stass, presents it as a Show HN with a browser emulator, QEMU and Raspberry Pi 4 images, and a Phase 1 build that uses a modified Fiasco kernel. The code is BSD-licensed.

  • Kernel is a modified Fiasco (C++) behind erXos's own kernel interface; the kernel knows nothing of Erlang, and Erlang runs everything above it, with a planned replacement kernel in Phase 2.
  • Runs in the browser via the v64 AArch64 emulator, in QEMU virt, and from a Pi 4 SD image; the shell is plan 9 rc written in Erlang, with ps, top, ping and erl.
  • Drivers (UART, virtio, SD, GENET Ethernet, display), an EROFS filesystem and a TCP/IP stack in Erlang, the latter based on the FreeBSD stack and checked against it.
  • Each app runs in its own domain, an address space that is also an Erlang node; a crashed domain looks like a dead node, and supervisors reset and restart failed drivers.
  • Correctness work includes running stock OTP test suites on erXos, herd7 weak-memory litmus tests, TLA+ models, CBMC proofs and fuzzing/sanitizers, with stated limits.
  • Upcoming: Raspberry Pi 5, full Pi display, WiFi, Bluetooth, POSIX-lite for C programs, and tracing/debugging.

Discussion The thread is small, with only a few comments. The main exchange is a security question from thomasdziedzic about whether any process can connect to a site like badsite.com and exfiltrate data, and whether access can be controlled per process or profile. The author answers that access is capability-based, that network access is an explicit capability that can be narrowed by protocol, port or traffic, and that per-site rules would be easy to add because all network requests pass through the Erlang network server. One short, enthusiastic reply followed. The mood is curious and mildly positive, with the security question as the one substantive thread.

  • Security model and per-process network control matter most (some): The commenter wants to know whether arbitrary processes can reach external hosts or exfiltrate data, and asks for documentation of how each malware class is prevented. The author says capabilities gate network access and can be refined by protocol, port or traffic, but has not yet built per-site restrictions.
  • Enthusiastic praise for the project (a few): One commenter simply responded with approval, with no technical content.

#erlang #microkernel #operatingSystems #capabilities #showHN