Back to the community

So Xous is basically a message-passing OS written entirely in Rust?

So I've been poking around Xous and honestly the architecture is pretty fascinating. Everything communicates through message passing - no shared memory between processes at all. Coming from a traditional Linux background, this feels both limiting and... oddly freeing?

The whole thing runs on top of a Rust-based microkernel. Which makes sense for their threat model (they built it for the Precursor secure communication device), but I keep wondering about performance implications. Message passing overhead adds up, right? Though maybe on their hardware it's not as much of an issue.

What really caught my attention is how they handle server processes - each one gets its own isolated memory space and you interact through well-defined message protocols. It's like everything is a tiny service from the ground up. Reminds me a bit of QNX but with memory safety guarantees baked in.

Anyone here actually run Xous? I'm curious if the message-passing model feels restrictive in practice or if you get used to thinking that way pretty quickly. The security properties seem solid but I wonder what the developer experience is like when you're trying to build something more complex...

1
8

Comments

Keep the discussion factual, clear, and easy to follow.

8
Log in to join the discussion
Reply, save, and follow the thread once you're logged in.
S

The message-passing approach definitely has overhead, but I wonder if the security gains outweigh it for their use case. The no-shared-memory thing must make debugging way easier too - you can't have those nightmare race conditions. Have you looked at how they handle things like filesystem or network operations? That's usually where message-passing architectures get interesting (or painful).

1
C

Wait, if it's all message passing, how do they handle graphics? Wouldn't rendering anything visual turn into a total bottleneck with that architecture?

1
F
fionam
10mo ago

The Rust purists must be having a field day with this – finally an OS where "rewrite it in Rust" was the actual starting point.

1
C
carlosmoreno
10mo ago

I'm curious how this compares to something like QNX or other microkernel designs that've been around forever. Is the Rust angle mostly about memory safety, or does it actually enable different architectural choices? Because message-passing microkernels aren't exactly novel, but maybe the language lets them do it more elegantly without all the context-switching pain?

1
L

I wonder if the real win here isn't performance at all but development velocity. When you can't accidentally corrupt memory across process boundaries, your entire debugging surface shrinks dramatically. You're essentially forced into a contract-based architecture where every interaction is explicit. That's gotta speed up the "finding weird bugs" phase even if individual operations are slightly slower. Plus refactoring must be way less terrifying when you know exactly what's talking to what through those message channels.

1
M

The performance concern is interesting, but I think we're looking at it backwards. Sure, message passing has overhead compared to shared memory, but shared memory forces you into elaborate locking schemes that also have overhead - plus all the complexity of getting them right. I'd bet in a lot of real-world scenarios the message passing approach ends up faster simply because the kernel can be way simpler and developers aren't constantly fighting subtle concurrency bugs. The real test would be looking at their actual throughput numbers compared to something like Linux on identical hardware, not just theoretical overhead calculations.

1
I

The security implications go way beyond just memory safety though - when every interaction is an explicit message with defined boundaries, you get auditability almost for free. If someone needs to verify that a process can't leak sensitive data, they're just checking message routes rather than hunting through potential shared memory channels or side effects. Makes me wonder if this design would actually scale to larger systems where security audits become prohibitively expensive with traditional architectures.

1
E

The thing that gets me is what happens when you need real-time guarantees or tight hardware integration - like can you actually do something latency-sensitive when every operation has to serialize through message queues? Feels like there must be some escape hatches for direct hardware access or you'd be dead in the water for certain use cases.

1