frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

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

https://stass.github.io/erXos/
3•stass•2h ago
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.

erXos is a capability-based microkernel OS in Erlang: drivers, filesystems, and the network stack are all supervised Erlang processes, same as any app.

The 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.

You 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.

The 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.

What works today:

- Boots in the browser/v64, in QEMU, and on a Raspberry Pi 4 from an SD card

- A real shell (plan9 rc) with job control, pipes, `ps`, `grep`. It feels like UNIX on the surface

- Erlang versions of basic UNIX apps.

- Drivers written in Erlang: UART, virtio, SD card, Ethernet (GENET), display

- A pure Erlang EROFS filesystem for root images

- A TCP/IP stack in Erlang based on FreeBSD network stack and verified for correctness against it

- Domains: every app runs as its own address space or Erlang node, isolated from others

- Plan 9 namespaces and 9P everywhere; windows are files like RIO and 9P is a file protocol between OS servers

- Supervision end to end: if a driver fails, its supervisor resets the device and restarts it

I 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`).

What's coming:

- Raspberry Pi 5 support

- Full display on the Pi

- WIFI

- Bluetooth

- POSIX-lite for C programs, so existing code can run as a domain

- Performance, debugging and tracing features.

The code is all available under the BSD license.

Would love to hear all and any feedback!

Comments

thomasdziedzic•1h ago
The main thing I'm now looking out for in an OS is how secure is it? Can any random process connect to badsite.com and exfiltrate data or take commands from badsite.com in case of malware? Can you control this on a per process / profile level? How does it prevent each type of malware?

Maybe adding a page with examples of how you handle each type of malware / prevent it would be useful.

stass•1h ago
Yes, the OS is based on the capability microkernel so processes are only allowed to do things explicitly granted to them. Network access is an explicit capability and can be broken down further by protocol/port/traffic etc.

I haven’t looked into more granular capabilities like granting access to specific sites yet, but this should be pretty easy to implement as the OS network server is itself in erlang, and all network request go through it.

ryandeverton•1h ago
amazeballs

Show HN: Cornhole News – A Hacker News inspired site for news across the Midwest

https://cornholenews.news
189•cornholemedia•10h ago•89 comments

Show HN: Zeus – Claude Code for AI voice agents

https://thunderphone.com/blog/introducing-zeus
2•kolchinski•1h ago•0 comments

Show HN: Mastra Factory, the open-source software factory we use to build Mastra

140•codekarate•1d ago•42 comments

Show HN: Watch weight-space programming in action with WebGPU

https://tabbyml.github.io/weight-space-playground/
33•wsxiaoys•10h ago•3 comments

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

https://stass.github.io/erXos/
3•stass•2h ago•3 comments

Show HN: Tools4U – 54 file tools that run in the browser

https://tools4u.org
3•emberloop•3h ago•0 comments

Show HN: 15MB transcription model that runs in the browser/device

https://starbright.quickthoughts.ca/
3•quickthoughts•3h ago•1 comments

Show HN: Open-source, real-time object tracking for live video feeds

https://github.com/aryamandarda/tamserve
119•aryaman_darda•3d ago•13 comments

Show HN: Type Fighter 2

https://typefighter2.com/
140•torumitch•1d ago•69 comments

Show HN: Take Voyager 1 apart, down to a single memory chip

https://rshekhar.com/voyager/
234•raj-shekhar•1d ago•57 comments

Show HN: Neoma P-CAM – Sub-millisecond physical equilibrium and 64-spin Ising

https://github.com/neoma-pcam/pcam-live
14•neoma001•3d ago•2 comments

Show HN: Foolscap – a writing app that reads your book and never writes for you

https://foolscap.works/
103•atugard•12h ago•84 comments

Show HN: TIE Fighter co-op in 11 days, built from 11 years of Wing Commander

https://fireflyk64.github.io/makingtf/
3•daniel_rh•6h ago•1 comments

Show HN: ExitPath – Open-source ways out of Slack, Notion and Microsoft 365

https://exitpath-ruddy.vercel.app/
248•zerocool0101•1d ago•93 comments

Show HN: IT Thinks – Build a GPU from a Single NAND Gate

https://store.steampowered.com/app/5196330/IT_THINKS_Build_Your_Own_GPU/
12•benbenhere•6h ago•0 comments

Show HN: An API for word timestamps from speech, 75% within 20ms

https://quebec.yarn.so
37•jasperstory•2d ago•5 comments

Show HN: Zpup – Zdog style 3D scenes in JSON, SVG from any angle

https://github.com/rxolve/zpup
15•select1dev•20h ago•0 comments

Show HN: Alloy CSS, dialogs, menus and tabs that work with JavaScript off

https://alloyhtml.com/example.html
210•prafandy•2d ago•38 comments

Show HN: ADE Index – a sourced and ranked index of 975 agentic coding tools

https://adeindex.com
25•jonnyasmar•1d ago•5 comments

Show HN: Robotics needs better CAD, so I wrote a B-rep kernel and 3,487 tests

https://springcraft-ai.github.io/springrep/
33•atomarch•1d ago•9 comments

Show HN: TrnRT – An open-source LLM inference engine for AWS Trainium

https://github.com/RunanywhereAI/trnrt
54•sanchitmonga22•2d ago•8 comments

Show HN: PadSpan – Room-level Bluetooth tracking for Home Assistant

https://padspan.traks.ca/demo/
3•gbroeckling•10h ago•0 comments

Show HN: Unref – A Python dead code finder built on Ruff's parser

https://github.com/Apakottur/unref
62•McAvey•3d ago•18 comments

Show HN: Openspot – macOS launcher for disposable tools

https://github.com/celishq/openspot
5•tniich•11h ago•2 comments

Show HN: Zigzag, a native Mac browser for people leaving Arc

https://github.com/ZigaoWang/zigzag
121•ZigaoWang•5d ago•74 comments

Show HN: Purple Flow – AI-first n8n alternative, 10k+ workflows on 512MB

https://github.com/leetheguy/purple_flow
5•leetheguy•12h ago•2 comments

Show HN: Detect and mask PII, payment data and secrets in logs for Go

https://github.com/nao1215/embargo
2•nchika•12h ago•1 comments

Show HN: PocketOps for SigNoz: The Open Source Datadog Alternative

https://github.com/avens19/pocketops
10•avens19•1d ago•0 comments

Show HN: Math 2.0

https://math2.tamnd.com/areas/
23•tamnd•1d ago•7 comments

Show HN: Psudo – 47MB 2-bit coding model, Polish-prefix IR, and Rust transpiler

https://github.com/steveSujo/psudo
3•someProgramer•12h ago•0 comments