• 0 Posts
  • 227 Comments
Joined 1 year ago
cake
Cake day: July 2nd, 2023

help-circle
  • pete_the_cat@lemmy.worldtoProgrammer Humor@lemmy.mlI redid the meme with what hurts me
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    5
    ·
    edit-2
    2 months ago

    The thing that annoys me the most is how it cares about whitespace/carriage returns. I remember back in college when I was taking a CS class, learning Python and writing the Code on a Windows PC, emailing it to myself, and then attempting to run the code on Linux. Before I learned about the carriage return conversions, I remember having to rewrite about 75 lines of code before I got it to run. 🤬




  • I agree. C isn’t going anywhere anytime soon, but if we don’t start modernizing the kernel now we could end up with a future like the US government is in where all critical systems run on COBOL code and no one wants to touch it for the fear of breaking everything.

    I’m not sure if it was in my above post or not, but the article said we should start modernizing the kernel now before someone does to Linux what Linux did to Unix.

    Redox OS already exists and is functional (meaning it boots and has a GUI, but it’s lacking in various aspects), from what I understand it’s pretty much Linux/Unix rewritten entirely in Rust and looks pretty promising. In 5 or so years it could be a competitor with BSD and then overtake Linux once it has a proven track record.



  • Yeah it is a monumental task, but it’s also the one with the least push back. I don’t mean start from scratch, but convert the C code to Rust in a dev branch or something and release a Linux-Rust kernel image.

    Almost all real-world software development is like this. That’s what we do.

    I’m aware, I’ve written my own software even though I’m a SysEng, all I’m saying is that it’s not an easy process with a potential for disaster. Just look at CrowdStrike (not saying that they were attempting to switch languages but just the scale of the fuck up and the fallout that it caused), we don’t want that to happen with Linux.


  • I’m not rejecting it, I’m just saying that it’s very difficult to completely change the code of a critical piece of software. The long-term goal is for Rust to overtake C in the kernel (from what I understand, I’m a System Engineer, not a software dev. I know Go, not Rust) due it being memory-safe and about 30 years newer. Critical code gets left untouched (a lot of the time) because no one wants to be the one that breaks shit (and get bitched out by Linus 😂) so I’m sure there is tons of code from the early 90s that could be made better with a newer language like Rust, but it’s not as mature as C right now so that’s not going to happen for a while, if at all.



  • part of the problem is that old-time kernel developers are used to C and don’t know Rust," Torvalds said. “They’re not exactly excited about having to learn a new language that is, in some respects, very different. So there’s been some pushback on Rust.”

    Linus hit the nail on the head. If you’ve been a Kernel dev for a decade or more, and have spent decades learning the ins and outs of C, why would you want to switch to something that is similar, but different in a lot of ways, just because a small subset of devs think it’s the best way forward? Let them handle Rust and the majority of devs will keep using C, even though Rust is objectively better.

    As one of the other quotes suggested: fork the kernel project and rewrite it entirely in Rust, that way there isn’t any push back from the C devs. Replacing C with Rust in the upstream kernel is akin to replacing the engine in a car while it’s running or being used every day.






  • Nice, thanks I’ll give it a try again because Windows 10 is really pissing me off regarding how practically anything that you used to be able to easily disable now requires one or multiple registry hacks that may or may not work anymore.

    I totally understand you not giving all that a try because while it is a handheld Linux PC, it’s probably more of a pain in the ass to use on that screen and with the standard input (obviously docking it would solve these issues) than it’s worth. I just keep Windows on my Desktop to play a few games, my home server is my workhorse and I have a Linux laptop that work gave me (literally, they laid me off and never asked for it back).





  • Really? The last few times I’ve tried (granted it was a year or more ago) I got like 15 FPS on a heavy modlist running on my desktop, which had a GTX 2080 and was running Arch, btw. Trying to get MO2 to launch the Linux version of Skyrim running via Steam/Proton and not the Windows version of Steam running through WINE was a fun mess to deal with. Once all that was handled, then half of the modding programs (xEdit, Nemesis, BodySlide, etc…) didn’t work with MO2s virtual FS. It was just way too many layers of abstraction to deal with 🤯