Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Microsoft Linux

Microsoft Engineer Sends Rust Linux Kernel Patches For In-Place Module Initialization (phoronix.com) 49

"What a time we live in," writes Phoronix, "where Microsoft not only continues contributing significantly to the Linux kernel but doing so to further flesh out the design of the Linux kernel's Rust programming language support..." Microsoft engineer Wedson Almeida Filho has sent out the latest patches working on Allocation APIs for the Rust Linux kernel code and also in leveraging those proposed APIs [as] a means of allowing in-place module initialization for Rust kernel modules. Wedson Almeida Filho has been a longtime Rust for Linux contributor going back to his Google engineering days and at Microsoft the past two years has shown no signs of slowing down on the Rust for Linux activities...

The Rust for Linux kernel effort remains a very vibrant effort with a wide variety of organizations contributing, even Microsoft engineers.

This discussion has been archived. No new comments can be posted.

Microsoft Engineer Sends Rust Linux Kernel Patches For In-Place Module Initialization

Comments Filter:
  • our code, any shitty code to them, even when they ask us to stop.

  • It's nice that they do but it shouldn't be some big pikachu shock article moment any more.

  • C++ developers (Score:5, Interesting)

    by ArmoredDragon ( 3450605 ) on Sunday March 31, 2024 @11:37AM (#64358838)

    I'm going to strike first this time. C++ developers end up being over twice as productive when they switch to rust:

    https://youtu.be/6mZRWFQRvmw?t... [youtu.be]

    Also when golang developers switch to rust, they remain just as productive, only their rust code has a lower defect rate, and uses less memory.

    Amazon also did a study where they found that rust code is as energy efficient as C code, making it 30% more energy efficient than C++ and three times as energy efficient as golang.

    Come on, tell me how much you hate me C++ devs, you know you want to...bring in the hate...

    • by SirSlud ( 67381 )

      I'm a 25+ years of experience C++ programmer, and Rust is great. Entrenchment will mean C++ will be around in meaningful amounts for awhile, but I have no qualms about Rust increasingly eating its lunch.

      • by Gabest ( 852807 )

        First 10 years were great, then they turned into something incomprehensible.

        • by vbdasc ( 146051 )

          Pre- C++ 11 wasn't that great anyway. C++ 11 brought interesting new ideas, but the language became too complex and bloated. Bjarne should have dropped backward compatibility, streamlined the language while emphasizing the new features, and called the resulting language C+++ to avoid confusion. Instead, we have the mess that is today's C++, almost as bad as Algol 68.

      • At this point it looks like Google and Microsoft are going all-in on Rust. I think Amazon is as well as they've been publicly making a strong case for it.

        • by jythie ( 914043 )
          Well yeah, both of them have a ton of javascript developers to spare, and they've always wanted to make an OS but don't want to learn any of the low level languages.
    • Re: (Score:3, Insightful)

      I don't work in either language, so I don't have a dog in this fight. But solely referring to a YouTube video to back up your statements instead of some actual documentation seems... sub-optimal, if you actually intended for your point to be taken seriously.

      • They never do anyways, so what difference does it make? I've even provided actual code examples in both C++ and rust to prove every point I've made about the deficiencies of C++, and every time I do they either stop replying or try to divert the conversation, only to repeat the same bullshit a few weeks later.

        Typically they start in with stuff about rust that I quickly disprove, but today I just decided...fuck it, why not fire the first shot this time? Change things up a bit for entertainment.

        • I'm a C++ dev who does not care much about Rust but am not opposed to it either. I'm certainly not going to switch to Rust, but if some big C++-based dev shops want to move half of their projects to Rust and report in a few years how it compares AND if it turns out it went well, I'll take a look.

          That said, with Woke Gemini telling a user a C++ feature is too dangerous for him because he's too young and a clueless bureaucrat in the Biden admin recommending C++ devs to move to Rust, I don't think the language

    • by ahoffer0 ( 1372847 ) on Sunday March 31, 2024 @02:36PM (#64359196)

      Still one of my favorite gag articles:

      https://www.ganssle.com/tem/te... [ganssle.com]

    • The big productivity boost from Rust is from the Cargo ecosystem, which makes it easy to import third-party code.

      That's great if you trust other people's code, and your organization is ok with that.

      • It helps, sure, but there's actually a much bigger reason. Note the parts where he talks about adding an enum variant, std::move() and software reviews. In other words, Rust is a hell of a lot easier to maintain, and a hell of a lot less prone to breaking things in quite spectacular ways when updating older code. This all comes down to the way rust puts a huge emphasis on correctness, and things like derive macros with field attributes (even in "safe" object oriented languages like java and c#, inheritance

  • by LordHighExecutioner ( 4245243 ) on Sunday March 31, 2024 @11:38AM (#64358840)
    ...Woody Allen quote: "And the lion will lie down with the lamb, but the lamb won’t get much sleep".
  • From the Chromium Webview2 used in the UI, the increasing use of Rust, WSL and various components like curl and libarchive. The operating system of theseus is slowly evolving into a penguin shape. It's only a matter of time before WSL moves lower down the kernel stack and starts replacing core features of Win32 and NT. Windows 12 will be very interesting from a technical point of view.
    • by Anonymous Coward

      That's nice and all but any chance Microsoft could just completely take systemd back?

    • Yeah, the standout for me is Microsoft implementing a Mesa shim for the OpenGL graphics stack on top of Direct3D for WSL-G. Meanwhile, Wine devs have been reverse engineering Direct3D to run on top of the Linux stack.

      A lot of wasted effort when both parties could pool their resources to implement access to these APIs on top of Vulkan. With the many eyes theory, drivers from the major vendors might improve if there were a single implementation across Windows, Android and other assorted *nixes.

      But MS need to

    • Is that when they start contributing to WINE?

  • As a developer, you buy a new supercomputer to see those .c files just fly on the screen when compiling. Then you hit a few Rust files and it slows down to 1/sec...

  • unwise (Score:3, Insightful)

    by iggymanz ( 596061 ) on Sunday March 31, 2024 @02:31PM (#64359186)

    Shouldn't be allowing language in kernel that doesn't have a standard.

    But with systemd we've already proven good engineering in Linux is going down the toilet

    • by jmv ( 93421 )

      Shouldn't be allowing language in kernel that doesn't have a standard.

      Even before Rust, the kernel wasn't written to ISO C, but to GNU C (there's plenty of quotes from Linus to that effect).

      • by amorsen ( 7485 )

        Not even GNU C, the kernel is written in kernel C and C compilers have to be adapted to be able to compile it correctly.

        GCC and Clang are the only compilers that work. There used to be support for icc as well, but compiler-specific tweaks are required for every compiler, and it was not worth the effort.

      • -std=gnu11

        recognize that?

        The point is Rust is still very mutable and in flux.

        Bad choice for a kernel

    • But "living standards" are hot right now! Why not bring the stability and robustness of web development practices into operating system kernels?

      Seriously, I tried messing with Rust a while ago, and just getting the environment up and running was a nightmare. It's not just a language, it's an entire ecosystem, and with that comes shitloads of politics. No wonder people are pushing it with such religious fervor.

      • by jythie ( 914043 )
        Yeah, it would probably be a fine language if not for its community... though the whole stated objective could probably be accomplished with an expanded linter. I really can't figure out who it is for, outside maybe javascript developers who want to tinker in systems programming without having to learn C. From working with it myself, I find the idea of using it in embedded or kernel environments is kinda terrifying since there is so much sugar that you can't really see what it is doing.
    • by vbdasc ( 146051 )

      systemd is not in kernel, and neither is it a mandatory element in a complete Linux ecosystem.

    • by jythie ( 914043 )
      Or at least a language where you can see what it is doing.

No spitting on the Bus! Thank you, The Mgt.

Working...