Octorine

joined 1 year ago
[–] Octorine@midwest.social 2 points 6 days ago (1 children)

I'm not sure. I remember seeing an example in the docs, but I can't find it now. Actually the docs in general are a lot less opinionated than I remember them.

One thing that I did find is that the ion shell document mentions that it isn't a posix compliant shell because they would have had to leave out a bunch of features.

[–] Octorine@midwest.social 1 points 1 week ago

I wonder if someone's working on this from the other end. Like, instead of porting mrust from gcc to tinycc, port rust 1.79 from 1.78 to 1.1.

[–] Octorine@midwest.social 3 points 1 week ago (3 children)

This is true, but the differences go even further than that. Redox is intentionally non-posix-compliant. This means that userspace programs written for posix operating systems may or may not need patching to even compile.

Part of the philosophy of Redox is to follow the beaten path mostly, but not be afraid of exploring better ideas when appropriate.

[–] Octorine@midwest.social 2 points 1 week ago (1 children)

I blame C++. When these kernel hackers hear about how they should switch to this shiny new language that's going to make their code so much cleanser and more manageable, I don't blame them for thinking it's all bullshit. It was last time.

[–] Octorine@midwest.social 56 points 1 week ago (2 children)

I finally watched the talk today and that wasn't what I thought he meant. What I thought he was getting at was that the rust parts of the kernel interact with lots of other modules written by people who don't know rust. When those C modules change their semantics in ways that break the rust code, they can't go fix it because they don't know rust. In fact, whenever they make a change, they don't even know if they broke some rust module, because they don't understand the rust code well enough. And this is something that everyone is going to have to live with for the foreseeable future, because you can't force all those other kernel hackers to learn rust.

[–] Octorine@midwest.social 2 points 2 weeks ago

I was about to write this exact comment.

Even if I hardly ever play standalone, it's nice to have the option.

Also the ability to wander around an arbitrarily large play space is nice too.

[–] Octorine@midwest.social 1 points 1 month ago

There are already libraries like clap that allow the developer to specify all their arguments including short and long variants and description strings. I think some of them will automatically generate --help based on the specified options. I could imagine a library that takes the same specifications and makes an interactive menu or a tui form out of them. It's an interesting idea.

[–] Octorine@midwest.social 3 points 2 months ago

I haven't seen that paper before. The ones I remember were blogposts or web pages. In fact, this may be what I was remembering: https://www.gnu.org/software/hurd/faq.html Particularly the part about what happened with the port to different microkernels.

IIRC NeXT and OSX use Mach, but they don't use it as intended. I think they're mostly a BSD kernel with Mach functioning as an interface to userspace.

Hurd actually used Mach as a microkernel, and moved most functionality to userspace daemons. This meant that Mach's performance issues,, at least the ones related to IPC, affected the Hurd a lot more than OSX or NeXT.

And yeah, I think developer interest was the biggest thing that held it back.

[–] Octorine@midwest.social 2 points 2 months ago (2 children)

Both, I think.

It's built in top of Mach, which has some architectural issues that aren't fixable without a huge amount of work.

And no one's interested in doing that work because we already have Linux and Linux is fine.

There have been a couple of pretty good post mortems over the years. I think one of them is on gnu.org somewhere.