pete_the_cat

joined 1 year ago
[–] pete_the_cat@lemmy.world 12 points 2 months ago

Or Google/Reddit/Meta.

[–] pete_the_cat@lemmy.world 1 points 2 months ago

"If it ain't broke, don't fix it!"

I'm not a software dev, but I'd imagine that the codebase could definitely be reduced once most things are converted to Rust. From what I've heard, the kernel is a huge mess of spaghetti code that most people don't want to touch, for the fear of going insane in the process 😂

[–] pete_the_cat@lemmy.world 2 points 2 months ago

I'm not a software dev (I'm a SysEng), and have never touched Rust (I've looked at the Rust source code and it scares me haha), but I know a fair amount of Go, and even the Go compiler is a pain in the ass occasionally. I've "mother fucked" it so many times.

[–] pete_the_cat@lemmy.world 1 points 2 months ago

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.

[–] pete_the_cat@lemmy.world 1 points 2 months ago

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.

[–] pete_the_cat@lemmy.world 1 points 2 months ago (1 children)

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.

[–] pete_the_cat@lemmy.world 1 points 2 months ago (1 children)

Ah, but I still agree with the C devs, it creates unnecessary headaches for them. Also, old habits die hard.

I view it as the same way ZFS is supported: Linus and Greg KH are like "you can maintain it, but we don't give a shit about it, and if what we do breaks ZFS support, well too bad."

[–] pete_the_cat@lemmy.world 23 points 2 months ago

I didn't hear a single thing about this game until literally right now.

[–] pete_the_cat@lemmy.world 50 points 2 months ago* (last edited 2 months ago) (34 children)

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.

[–] pete_the_cat@lemmy.world 2 points 2 months ago (1 children)

I'm gonna say "drive the train"

[–] pete_the_cat@lemmy.world 15 points 2 months ago (3 children)

I'm confused why she was there in the first place

 

I saw this on a (scammy) dating app and thought it was hilarious.

 

Each bar is wrapped in cellophane, which are then wrapped in the normal outer packaging. To make the 4 pack, they simply took 2x two packs and put them on a cardboard tray,and then wrapped those.

I don't think I've ever gone through so much unwrapping for candy.

view more: next ›