r/rust • • Aug 29 '24

One Of The Rust Linux Kernel Maintainers Steps Down - Cites "Nontechnical Nonsense"

https://www.phoronix.com/news/Rust-Linux-Maintainer-Step-Down
586 Upvotes

374 comments sorted by

View all comments

Show parent comments

1

u/maxjmartin Aug 30 '24

Well if the bindings are used then the Rust code is being written to a C++ class. One that can take advantage of things easy to do in C++ that aren’t easy to do in Rust.

A hypothetical example- would be using an expression template to remove temporary so that the compiler can optimize it for fast computation of a loop. Again hypothetical but possible.

1

u/sm_greato Aug 31 '24

I don't get what you're saying. Yes, LLVM stores stuff in C+⁠+ and I don't understand what else you'd expect. The code is not compiled into C++ or anything like that. C+⁠+ness of C+⁠+ in LLVM does not impact the Rust compilation at all.

1

u/maxjmartin Aug 31 '24

Well again my point is that as long as Rust has a coupling to C++ then C++ will never die.

Though I did clarify in another comment that it would evolve instead of die. The only way around that is going to be when grey hats pass the torch. Which was the point of the whole article.