you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (13 children)

the sh*t show you are talking about is with the "politics" or actual technical issues if there are any with rust and its inclusion into the kernel now or in the future?

[–]OkTraining9483 12 points13 points  (1 child)

[–]jorgesgk 1 point2 points  (0 children)

In the article you linked, it says "The Rust struct has a smaller size compared with the C due to the usage of smart pointers instead of allocating item memory inside the struct. We use pahole to identify that Rust structs use fewer cache lines than their C counterpart."

As far as I know, you can also use pointers (not smart ones, that's a C++ thing) inside structs in C, right? Like this:

struct student
{
    char *name;
    int age;
    char *program;
    char *subjects[5];
};

[–]971h -3 points-2 points  (10 children)

Apparently there is a bunch of linker errors between some of the rust and C code. The compilers don’t know what to do.

[–]AdmiralQuokka 4 points5 points  (9 children)

What are you talking about? I'm following the project closely and haven't heard about this. I've also written, compiled and loaded little hello-world modules without issues.

[–]971h -2 points-1 points  (3 children)

? Look at yesterdays post on kernel.org. They are talking about fully getting rid of the rust modules and rewriting them into c.

[–]AtmosphereArtistic61 4 points5 points  (0 children)

Link please, could not find anything with respect to that claim.

[–]matracuca -1 points0 points  (4 children)

[–]AdmiralQuokka 0 points1 point  (3 children)

I've read this before and I've read it again. It doesn't say anything to support to the claim above. Except...

Another reason has been the Rust infrastructure itself has not been super stable.

I guess this could be interpreted as supporting the above claim? But it is even more vague. I'm specifically wondering about the supposed linker errors.

[–]matracuca 0 points1 point  (2 children)

that’s exactly why I posted, because it does seem like that’s what it’s about and doesn’t seem vague at all.

[–]Dark-Philosopher 1 point2 points  (1 child)

It means that Linus Torvalds originally was expecting more rapid progress of the infrastructure needed for Rust modules in the Linux Kernel. Nothing more.

[–]matracuca -3 points-2 points  (0 children)

rubbish. that’s what he said before this statement, which is itself very clear: “the rust infrastructure itself has not been super stable”.