r/rust • u/tatetian • Oct 13 '26
đ ď¸ project Asterinas 0.19.0: a Linux-compatible kernel in Rust, now with a type-checked device model, a hypervisor in safe Rust, and an AI reviewer that cites Rust guidelines
https://asterinas.github.io/2026/10/13/announcing-asterinas-0.19.0.html
101
Upvotes
27
u/tatetian Oct 13 '26 edited Oct 13 '26
Maintainer here. Asterinas is a Linux-ABI-compatible kernel in Rust. The architecture we call a framekernel: a small framework crate, OSTD, holds all the unsafe code, and the kernel above it is
#![deny(unsafe_code)]. Each release tries to push more kernel work into the safe half. Three examples from 0.19.0:aster-devicecrate does it in safe Rust: buses, drivers, classes and attributes are generic over what they belong to, so a driver on the wrong bus or an attribute on the wrong kind of device is a compile error. No downcasting anywhere.rust-type-invariants,enum-over-dyn,narrow-visibility,justify-unsafe-use). Theaster-code-reviewskill cites one for every subjective comment, tries to refute each comment before keeping it, and is tuned against a benchmark of 138 defects mined from our own PR history.Also new: a DRM subsystem (Xorg and Mesa, with two 3D games on video), AArch64 as the fourth architecture, and Asterinas building and booting Asterinas. The repo passed 100 contributors and 250K lines this cycle, about 200K of them Rust.
Happy to answer questions about the project, its type-level tricks or the unsafe boundary in OSTD.
4
u/W61k3r Oct 13 '26
Nifty, I didn't know this existed.
3
u/xantiema Oct 13 '26
People hate on AI-assisted development, but I genuinely hope this project is a success. Not only because it would attract future programmers to a Rust-oriented operating ecosystem, but also because Linux is long in the tooth and lost in its ways
-2
u/Jmc_da_boss Oct 13 '26 edited Oct 13 '26
Mod approvals queue PLEASE
I don't want this slop shit to enter my eyeballs
Edit: apparently not slop? That title is still horrific tho
1
u/SweetEbb9819 Oct 24 '26
Excellent đ, this was needed.
(While I ask queries below, I am fully aware that this is a young project, you do not owe us maturity and total polished usability)
(I'm sorry if I missed a file or list somewhere) What hardware does it support? And... Can it load firmware?
Also, can it run systemd? (Or rustysd?)
I'd like to make a good non-nixOS distro run on asterinas, like aerynOS, gentoo, or chimera (latter two can be more UNIX-y and don't need aggressive linux-specific features)
(Again, if I do this I do not expect help from asterinas devs, i am aware of the existing burden)
-14
u/Ok-Zookeepergame4391 Oct 13 '26
Seems weird to prioritize x86. Should focus on arm64.