Earlier quoted context omitted.
I'm curious about the practical aspect: Are they going to freeze a stable driver ABI, or are they going to break proprietary drivers from time to time?
Considering their OS as a framework approach I would guess they are more likely to expose a stable API than a stable ABI. Which also plays well with the MPL license (source file based) rather than something like the LGPL (~linking based).
Asterinas: OS kernel written in Rust and providing Linux-compatible ABI
51–60 of 234 posts
Re: Asterinas: OS kernel written in Rust and providing Linux-compatible ABI
#52I personally dislike rust, but I love kernels, and so I'll always check these projects out. This is one of the nicer ones. It looks pretty conservative in it's use of Rust's advanced features. The code looks pretty easy to read and follow. There's actually a decent amount of comments (for rust code). Not bad!
Rust code is usually well commented in my experience.
Re: Asterinas: OS kernel written in Rust and providing Linux-compatible ABI
#53Unprivileged services can exploit known compiler bugs and do anything they want in safe Rust. How this affects their security model?
Re: Asterinas: OS kernel written in Rust and providing Linux-compatible ABI
#54From the README: > Currently, Asterinas only supports x86-64 VMs. However, our aim for 2024 is to make Asterinas production-ready on x86-64 VMs. I'm confused.
it would be nice to know how much userspace it supports. supporting the dynamic loader, reasonable futexes, epoll, signals, uring are all big milestones
Re: Asterinas: OS kernel written in Rust and providing Linux-compatible ABI
#55Earlier quoted context omitted.
Rust code is usually well commented in my experience.
for the downvoters: it’s true, and it’s because of rustdoc and doctests. comments become publicly browsable documentation, and any code contained within is run as a part of the test suite.
Re: Asterinas: OS kernel written in Rust and providing Linux-compatible ABI
#56Earlier quoted context omitted.
for the downvoters: it’s true, and it’s because of rustdoc and doctests. comments become publicly browsable documentation, and any code contained within is run as a part of the test suite.
think the downvotes are because of relevance. point was not using advanced rust features, not being documented
Re: Asterinas: OS kernel written in Rust and providing Linux-compatible ABI
#57Sure is a lot of text to say: We try to use unsafe as little as possible.
Which is the minimum you'd expect anyways ¯\_(ツ)_/¯
0. https://asterinas.github.io/book/kernel/the-framekernel-arch...
Re: Asterinas: OS kernel written in Rust and providing Linux-compatible ABI
#58> utilize the more productive Rust programming language
Nitpick: it’s 2024 and these ‘more productive’ comparisons are silly, completely unscientific, And a bit of a red flag for your project: The most productive language for a developer is the one they understand what is happening one layer below the level of abstraction they are working with. Unless you’re comparing something rating Ruby vs RiscV assembly, it’s just hocus-pocus.
Re: Asterinas: OS kernel written in Rust and providing Linux-compatible ABI
#59OT: if you're interested in Asterinas, you might also be interested in Redox (entire OS written in Rust). https://www.redox-os.org/
Thus it is a much more interesting project.