85

The topic of the Rust experiment was just discussed at the annual Maintainers Summit. The consensus among the assembled developers is that Rust in the kernel is no longer experimental — it is now a core part of the kernel and is here to stay. So the "experimental" tag will be coming off. Congratulations are in order for all of the Rust for Linux team.

you are viewing a single comment's thread
view the rest of the comments
[-] Buffalox@lemmy.world 2 points 1 hour ago

it being not obvious what happens under the hood

To me it feels like it does things I didn't ask it to. So I'm not 100% in control 😋

the idiomatic version of a loop in Rust usually involves iterators and function composition.

What? You need to make a function to make a loop? That can't be right???

C-loops are easy for me to understand.

Absolutely, the way C loops work is perfect. I'm not so fond of the syntax, but at least it's logical in how it works.

[-] TriangleSpecialist@lemmy.world 2 points 50 minutes ago* (last edited 46 minutes ago)

What? You need to make a function to make a loop? That can't be right???

Ah no, there is a misunderstanding. You can write C-loops, of course, they just could involve more work under the hood because in order to enforce memory safety, there needs to be some form of bounds checking that does not happen in C. Caveat: I don't know whether that's always true, and what the subtleties are. Maybe I'm wrong about that even, but what is true is that what I am about to say, you will encounter in Rust codebases.

By function composition I meant in the mathematical sense. So, this example explains the gist of it. You may need to throw in a lambda function in there to actually do the job, yeah. I don't know what the compiler actually reduces that to though.

It's just the more functional approach that you can also see with Haskell for example. I find it harder to parse, but that may be lack of training rather than intrinsic difficult.

EDIT: pasted the wrong link to something totally irrelevant, fixed now

[-] Buffalox@lemmy.world 2 points 47 minutes ago

OK thanks for clarifying. 👍

this post was submitted on 10 Dec 2025
85 points (94.7% liked)

Linux

57274 readers
771 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS