Live data from Hacker News

Asterinas: OS kernel written in Rust and providing Linux-compatible ABI

github.com

51–60 of 234 posts

Re: Asterinas: OS kernel written in Rust and providing Linux-compatible ABI

#51
post #50

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

This is the most interesting new OS I have seen in many years.

Re: Asterinas: OS kernel written in Rust and providing Linux-compatible ABI

#52

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

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

#53
> In the framekernel OS architecture, the entire OS resides in the same address space (like a monolithic kernel) and is required to be written in Rust. However, there's a twist---the kernel is partitioned in two halves ... the unprivileged Services must be written exclusively in safe Rust.

Unprivileged 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

#54

From 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

Check it out https://asterinas.github.io/book/kernel/linux-compatibility....

Re: Asterinas: OS kernel written in Rust and providing Linux-compatible ABI

#55

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

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

#56

Earlier 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

I don't see how the relevance is in question. GGGP said "There's actually a decent amount of comments (for rust code)." GGP seems to be responding to that parenthetical.

Re: Asterinas: OS kernel written in Rust and providing Linux-compatible ABI

#57
I looked into the architecture. It turns out to be monolithic with marketing[0].

Sure 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
I think this looks incredible. Like how does one create a compatible abi _for all of linux_??? Wow!

> 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

#59
post #2

OT: if you're interested in Asterinas, you might also be interested in Redox (entire OS written in Rust). https://www.redox-os.org/

Redox has a proper architecture, aka microkernel multiserver.

Thus it is a much more interesting project.

Post reply on HN