Re: Rust kernel policy

Kent Overstreet
2025-02-22T15:03:47Z

On Wed, Feb 19, 2025 at 12:06:23PM -0500, Theodore Ts'o wrote:
> On Wed, Feb 19, 2025 at 05:44:16PM +0100, Miguel Ojeda wrote:
> > Hmm... I am not sure exactly what you mean here. Are you referring to
> > Wedson's FS slides from LSF/MM/BPF? i.e are you referring to Rust
> > signatures?
> >
> > If yes, those signatures are manually written, they are not the
> > generated bindings. We typically refer to those as "abstractions", to
> > differentiate from the generated stuff.
>
> The problem with the bindings in Wedson's FS slides is that it's
> really unreasonable to expect C programmers to understand them. In my
> opinion, it was not necessarily a wise decision to use bindings as
> hyper-complex as a way to convince C developers that Rust was a net
> good thing.

You keep talking about how the problem was Wedson's talk, but really the
problem was you derailing because you were freaking out over something
you didn't understand.

The example was fine. It wasn't overly complicated.

You've been an engineer for decades, taking in and digesting new
information about complex systems is something we have to do on a
regular basis. A little new syntax shouldn't be giving you that much
trouble; come on.

> I do understand (now) what Wedson was trying to do, was to show off
> how expressive and powerful Rust can be, even in the face of a fairly
> complex interface. It turns out there were some good reasons for why
> the VFS handles inode creation, but in general, I'd encourage us to
> consider whether there are ways to change the abstractions on the C
> side so that:

It wasn't a "gentle introduction to Rust" talk. You can get that
anywhere.

It was a talk _specific to the VFS_, so "how does Rust cope with core
VFS interfaces" was precisely the point of the talk.

If you wanted to take up that much time in our presentation, you
should've prepared a bit better by aquiring at least a bit of
familiarity with Rust syntax beforehand. You shouldn't need to be
spoonefed, the rest of us have done that on our own time.

Just please try to have some etiquette.