Live data from Hacker News

Asahi Linux lead developer Hector Martin resigns from Linux kernel

lkml.org

671–680 of 1001 posts

Re: Asahi Linux lead developer Hector Martin resigns from Linux kernel

#671

Earlier quoted context omitted.

[flagged]

No? This was never about the languages primarily though. The C programmers here would react the same way towards any other language, be it Zig or Swift, its not Rust specific. They just don't want to partake the additional headache they'll have to deal with to for making the Linux kernel more accessible to languages other than C. Despite than, Rust devs kept on pushing it after all that was clearly stated, just to ma…

I somewhat disagree on the "you can't escape unsafe" part. It's true for a C+Rust project, but the idea that you need an unsafe language for low level hardware access is plain wrong. That's a "C-ism". Something that might seem true in a universe where most low level work is done in C, but wouldn't be true in a universe where C doesn't exist at all.

Re: Asahi Linux lead developer Hector Martin resigns from Linux kernel

#672
post #419

Earlier quoted context omitted.

> The maintainers of core subsystems are the people he trusts, at least trusts as much as you can in this space. He'll take their opinions before anyone else, since they know best about the subsystems they maintain But there were no technical arguments against the Rust wrapper. And in any case, the Rust wrapper isn't in that subsystem, it just uses that subsystem. Hellwig's argument was nothing more than "there shoul…

> Hellwig's argument was nothing more than "there shouldn't be a second language in the kernel". Which is a valid viewpoint. Let's not pretend that's not a technical argument. Having different technical views from yours isn't a crime, legally or morally. > And Linus has already approved Rust in the Linux kernel, so what's the problem? As an experiment, as clearly stated in the kernel docs. It's still up to the whole…

> > Hellwig's argument was nothing more than "there shouldn't be a second language in the kernel".

> Which is a valid viewpoint. Let's not pretend that's not a technical argument.

So if Linus shouldn't overrule his deputies, and one deputy can completely block something in a subsystem that isn't theirs and has explicitly stated to do "everything in their power" to stop it, what exactly can the community "figure out" to get it to proceed? His decision not to get involved literally makes it impossible for the situation to change, so the confusion is why it's being phrased as if it's anything other than that.

If Linus were to come out and say "I changed my mind, I no longer think it's worth pursing trying to integrate Rust in the kernel due given the issues at hand" or even "regardless of my personal views, I don't have any desire to change the current system we have for how code gets merged into subsystems or who has the ability to block it, so I'm not going to overrule this", it would make a lot more sense to me, but by making it sound like there's anything left to figure out when someone with veto power has a stated intent to stop things from moving forward is just going to let the issue fester and produce more frustration on both sides. It almost seems inevitable that any future discussions will spiral out of control; there's no other way for it to conclude than either Linus overruling his deputy or the experiment just ending as a failure at this point, so he might as well just make that decision now rather than later.

Re: Asahi Linux lead developer Hector Martin resigns from Linux kernel

#673
post #20

Earlier quoted context omitted.

"The common ground is that I have absolutely no interest in helping to spread a multi-language code base. I absolutely support using Rust in new codebase, but I do not at all in Linux." https://lwn.net/ml/all/20250204052916.GA28741@lst.de/ That doesn't sound like he's only talking about in his area to me

is this just weird religious adherence to the belief that a multi-language codebase will be harder to maintain? what's the rationale, exactly?

It’s adherence dictated by lived experience, if anything.

Much like the “don’t rewrite from scratch” mantra was written in blood and tears.

Re: Asahi Linux lead developer Hector Martin resigns from Linux kernel

#674

Earlier quoted context omitted.

Can I ask something controversial? What if Rust never becomes a significant part of the Linux kernel? What if they keep stalling and all the people pushing for it give up? There seems to be this faith on HN that Rust absolutely belongs in the Linux kernel and if not, the project is a failure.

My thought is what's telling is the 'rewrite it in rust'. Rust doesn't have a new business case. C was better than assembly. C++ was better than C for GUI applications. JAVA has garbage collection and usually won't force you to fix your machine after a bad crash. Python is better than Perl for quick and dirty stuff. PHP lets you build a web service without much pain. C# is a better Java that also gives you better int…

I guess you make a living writing zero day exploits?

Re: Asahi Linux lead developer Hector Martin resigns from Linux kernel

#675

Earlier quoted context omitted.

I wouldn't call being vocally against something "sabotage". Would it be reasonable if that person said anyone trying to get rust integrated is sabotaging the Linux kernel?

You're conflating two things. The fact that he voices his belief that Rust is harmful for kernel development is fair. The fact that he is using his powers as maintainer of the DMA module to prevent Rust code from being added, with the explicit goal of making it harder to develop Rust drivers so that maybe the Rust-for-Linux project might get abandoned is an explicit act of sabotage against the R4L project (no one is…

>The fact that he is using his powers as maintainer of the DMA module to prevent Rust code from being added

This is a misinterpretation of the facts. It's not actually up to Hellwig whether or not the patch gets accepted; the relevant maintainer that would merge the patch is somebody else.

He's totally within his right to express his opinion in a NACK.

Re: Asahi Linux lead developer Hector Martin resigns from Linux kernel

#676

I've been saying this for years now: the rust4linux folks are putting so much effort into trying to upstream their work, seems like they should instead put that effort into maintaining a fork. Arguably it would be less hours spent porting than arguing with humans. Certainly more pleasant! Then one of two things will happen: * Rust will prove its worth and their fork will be the better operating system. Distros will s…

I'm a little bit skeptical as to how successful a hard fork of Linux that only differs from the mainline kernel by having a bit more Rust code actually would be.

If you're going to rewrite significant parts of the kernel, you might as well do what I've been doing and try to write what amounts to a better Linux than Linux that tries to maintain compatibility, but moves beyond the rather limiting conventional Unix architecture. The conventional Unix architecture was fine on a something like a 70s/80s-era PDP-11/VAX, but in the modern world its limitations have been apparent for quite some time.

What I've been working on is an OS very similar to QNX Neutrino in terms of general architecture, but with a somewhat different IPC protocol layering that reduces the number of user-visible primitives and allows for more consistent management of security. Most of the functionality of the system will be implemented in user-level server processes that export their services through special filesystems, with the only special/irregular parts of the system being the microkernel, the process manager (which also contains the core VFS and memory filesystems since these will be tightly linked to the process model), and the base syscall library (vaguely akin to the vDSO under Linux). Literally everything else will just be a regular process. It's not a "Rust OS" as such, as there will still be some C (for instance, the microkernel, which was forked from an older version of seL4), although it will have a fair bit of Rust code.

IMO the issues with Linux are mostly due to a combination of poor/ad-hoc extensibility and the development model that's way too decentralized in some places but excessively centralized in others. The architecture I'm going with will allow for more experimentation, since adding functionality to it will typically just be a matter of adding a regular user program (or a plugin for a regular user program), and much of the system will be based around standardized filesystem-based RPC protocols (generic tooling for implementing RPC interfaces will of course be provided). Therefore it would be easier to maintain experimental functionality in a separate repository and merge it into the base system later on.

Currently it's still quite preliminary, and it only runs some hardcoded tests built into the process server, although despite that, some developers from a major company have taken interest in it recently because of the possibility of using it as a replacement for QNX both in embedded systems and development workstations. I'm working on the VFS layer and built-in special filesystems at the moment, and hopefully should be able to get user processes running pretty soon.

https://gitlab.com/uxrt/uxrt-toplevel

Re: Asahi Linux lead developer Hector Martin resigns from Linux kernel

#677
post #325

Earlier quoted context omitted.

People get old and stop caring. Linus is still doing amazing. But I agree he should have just said no to Rust and move on.

Why? Was it not worth seeing where it would go, or how many would be interested? Is it possible he believed the tides could turn that way?

It wasn't going to work without ample support within the kernel.

At a minimum, all prominent developers would have to be convinced and ready to put a lot of effort into this.

As this was never the case, Linus should have put his foot down with a clear No, thus preventing the conflict and overall waste of resources we're seeing.

Rust devs would still be able to fork or otherwise (much better idea imho) work on their own kernel, hopefully with a much better design.

Redox is doing this, with a microkernel multiserver approach.

Re: Asahi Linux lead developer Hector Martin resigns from Linux kernel

#678

Earlier quoted context omitted.

The issue is it creates a downstream dependency on his code, even if it is 100% separate and separately maintained. Once the wrapper is written, any breaking changes he makes in the DMA subsystem will, by their very nature, percolate downstream to the Rust wrapper and then to any Rust code that relies on it. So basically from that point forth, he will always have to consider the ramifications of his changes on anothe…

He does not need to consider those ramifications because it is up to the rust for Linux people to fix the issues. He does not need to care about them at all. They reiterated that in the thread too.

This works only if you trust the Rust people to do their job.

Obviously the maintainer does not trust the Rust people, but they also did nothing to gain his trust, but the opposite.

Just saying "Trust me, or else I will shame you" is not a viable strategy.

The default position of any code maintainer who sees some people coming and saying that they would maintain from now on some parts of the code and that there should be no worries about that, is to not trust them immediately, but only after enough time passes during which they demonstrate that they are really competent and not just claiming to be so.

Re: Asahi Linux lead developer Hector Martin resigns from Linux kernel

#679

Earlier quoted context omitted.

I think at the point where you're loudly complaining about the email patch process (and hey, I agree it's the worst), this has stopped being about Rust.

May I ask which aspect of the email patch process you're referring to? Arguably, I've used it only once to contribute a kernel bugfix, and I was lucky enough that my patch got accepted as is. So I found the process pretty straightforward. But even with iterations and revisions factored in, kernel work itself feels orders of magnitude more complex and cumbersome to me than a patch process based on a mailing list could…

https://lore.kernel.org/rust-for-linux/208e1fc3-cfc3-4a26-98...

Just read the email.

Re: Asahi Linux lead developer Hector Martin resigns from Linux kernel

#680

Earlier quoted context omitted.

I think a fork with a mission to aggressively rewrite the kernel into Rust would be a great experiment. Lessons learned could be applied to the more mainstream C/Rust kernel(s). Has anyone done that?

https://www.redox-os.org/ It's not a fork of Linux but a ground up effort to write a kernel in Rust. Still they're trying to make it compatible with Linux/BSD

Rust aside, it uses a microkernel, multiserver architecture.

And, of course, drivers run in userspace and interact with the system through a clearly defined API.

Other systems like this include Robigalia, Lions OS and Genode.

They would likely quickly overtake Linux if they got 1% of the resources Linux receives.

Post reply on HN