News for hackers. Stuff that matters.
Re:Linux Rust Support by Shadonototro on Tuesday July 06, 2021 @07:06AM (#27746720)
Why do they want to make the kernel even more complicated?

Now to contribute not only you have to learn C, but also Rust and get their complex dev environment setup..

This fragmentation is very bad, seems like they embrace the linux distro spirit.. what's gonna be tomorrow? zig support?

Lot of effort wasted in making things more complicated, definitely not a positive move

Re:Linux Rust Support by authorityofnil on Tuesday July 06, 2021 @07:10AM (#27746760)
I feel Rust offers several strong points whilst actually being performant and widespread enough to be in the kernel. I doubt you absolutely _need_ to know both to work on specific parts written in either
Re:Linux Rust Support by ladyattis on Tuesday July 06, 2021 @09:49AM (#27748482)
I think Rust support should be in a more experimental branch for the kernel first before even thinking of adding it to the main code base. Mostly because I think it needs more supporting code and documentation to get people on board with such an inclusion: complexity or not.
Re:Linux Rust Support by rswail on Tuesday July 06, 2021 @10:50AM (#27749401)
"linux-next" is the experimental branch for the kernel.

"The linux-next tree is the holding area for patches aimed at the next kernel merge window. If you're doing bleeding edge kernel development, you may want to work from that tree rather than Linus Torvalds' mainline tree. "

https://www.kernel.org/doc/man-pages/linux-next.html

Re:Linux Rust Support by drexlspivey on Tuesday July 06, 2021 @07:15AM (#27746813)
On the flip side you can now contribute if you know rust but not C
Re:Linux Rust Support by _ph_ on Tuesday July 06, 2021 @10:59AM (#27749508)
This is a bigger point than it might sound. While "learning C" doesn't sound like a huge task, learning C well enough not to create disasters when working on a kernel, is a huge undertaking and requires a lot of experience.

Being able to do kernel development in Rust should lower the entry barier into kernel a lot. Because it has more high level constructs and especially for all the safety Rust brings. Any competent programmer should be much more comfortable to start kernel dev with Rust than with C.

Re:Linux Rust Support by diegocg on Tuesday July 06, 2021 @07:10AM (#27746759)
Well, if there is a competition to replace C it would be interesting to see some competition.
Re:Linux Rust Support by deviledeggs on Tuesday July 06, 2021 @07:26AM (#27746911)
C is a terrible language. It's portable assembly. I've done some small OSS projects in C and as soon as I realized Rust was stable enough I tossed them and rewrote in Rust.

Rust feels like a modern language, like Go or C#. C is barely better than FORTRAN.

I'm massively more productive in Rust and I don't have to worry about a million ways of causing UB or memory bugs.

Everything from dependency management to testing to cross compiling are dreamy in Rust compared to C.

Re:Linux Rust Support by pjmlp on Tuesday July 06, 2021 @07:56AM (#27747196)
Actually you could have achieved most of that with Ada, Modula-2, Mesa/Cedar, Object Pascal, but we had to wait for the pendulum to get back.
Re:Linux Rust Support by dthul on Tuesday July 06, 2021 @09:22AM (#27748149)
I agree that Rust, besides its technical excellence based on all of these prior languages, also hit a sweet spot with its timing.
Re:Linux Rust Support by deviledeggs on Tuesday July 06, 2021 @02:07PM (#27752173)
Oh definitely. Rust was the first to be trendy enough to get traction though. I'm not bashing previous attempts to replace c.

Dependency management, packaging, and testing are what really made Rust take off. The best of any language I've used.

Re:Linux Rust Support by kilodeca on Tuesday July 06, 2021 @07:52AM (#27747158)
Human went to moon with Assembly.
Re:Linux Rust Support by deviledeggs on Tuesday July 06, 2021 @02:06PM (#27752153)
We voyaged the world in wooden boats for a long time too. It was absurdly laborious and dangerous.
Re:Linux Rust Support by rvz on Tuesday July 06, 2021 @07:20AM (#27746850)
Yes.

You now are going to have two languages + bolting on a kernel riddled with chronic security holes and still supporting dead architectures and 32 bit systems.

Well see if brown-fielding Rust into the Linux Kernel is all worth it for them.