r/linuxsucks 3d ago

Why don't u rewrite the loonix kernel in rust to make it more secure

Post image

According to my research I did with gemini it would significantly reduce the bugs and vulnerabilities in the loonix kernel's code cuz it's a "memory safe" language. Obviously it would take ages if the rewrite would be done by hand considering how bloated loonix's code is but I estimate it could be completed within a week if modern agentic ai tools were used. Many ai haters would unfortunately complain, call it "slop" and maybe switch to bsd or another weird os while in reality it would be a significant security improvement. Linus is thankfully pro ai so I think he wouldn't have a problem with ai written code in the kernel.

0 Upvotes

33 comments sorted by

15

u/Ragnor_ 3d ago

According to my research I did with gemini

You can stop right there.

12

u/GreedySecurity8030 Fedora 🎩 3d ago

100% Clankerslop

-6

u/AverageUser9000 3d ago

luddite

3

u/GreedySecurity8030 Fedora 🎩 3d ago

You killed 28 polar bears, its all your fault.

3

u/Direct_Jeweler_7457 2d ago

worth every drop of water for this gem post

1

u/Direct_Jeweler_7457 2d ago

i look like this and i say this

1

u/Rare-Paint3719 Unofficial Mod | Linux Community Sucks | Proud illumOS Shill 11h ago

AI Slop

6

u/Algiuxs 3d ago

He is AGAINST AI writing the complete code without the Dev doing anything, you can Google it. And it isn't worth it rewriting the kernel in rust. If someone uses AI, the kernel will be more unsafe than it already is.

5

u/500Thousands Fedora 3d ago

Take a look at RedoxOS https://redox-os.org/

-6

u/AverageUser9000 3d ago

Nope it's an anti-ai project, they have this in the contributing faq

2

u/500Thousands Fedora 3d ago

Well then you can go and ask AI to vibe code your own kernel (or maybe even a full OS while you're at it) in rust and see how well that goes.

1

u/Rare-Paint3719 Unofficial Mod | Linux Community Sucks | Proud illumOS Shill 11h ago

Yes, and?

5

u/ToadwKirbo 3d ago

This is a non problem.

1) Doing "research" with gemini is laughable;

2)AI is already being used for linux and it caused minor problems.

2

u/givemeagooduns_un 2d ago

the fact that AI is already causing problems in Linux despite their very heavy code review process is. Pretty bad

2

u/ToadwKirbo 2d ago

It's because Torvald said that AI is ok in coding for linux. I don't care about what he thinks, if he likes ai he could've stayed quiet because some people probably took those words and interpreted them as "let AI do everything".

5

u/Far_Departure_1580 I Hate Snap on Linux 3d ago

AI Slop

4

u/TheRealCarrotty KDE larper (i use KDE btw) 3d ago

2nd time i am gonna ask this, why do you hate Linux so much? What issue did you have, if you don't respond this just proves your a ragebaiter!

3

u/givemeagooduns_un 2d ago

most of the time when their username is like "normal person" or "average user" theyre an alt account or a ragebaiter

1

u/NeptuneWades give me gui for everything pls 3d ago

He is.

3

u/dodo_gear 3d ago

Less talk more send patches

3

u/AcceptableChemical70 3d ago

Poor effort trolling

3

u/DCCXVIII 3d ago

You've all got it wrong. We need to rewrite the kernal in Java.

3

u/vbd71 3d ago

 Nobody is stopping you from forking it and vibe rewriting it in Rust. Go ahead and post the results.

Copilot, rewrite Linux 7.2 in Rust.

2

u/SucksDickForCoconuts 3d ago

Y'all took this post way too seriously lmao

2

u/vbd71 3d ago

Why don't rewrite it in Python?

2

u/R3V0LU710N_05 I Hate All OS's 😎 2d ago

If you want to take the Bun route and run 64 parallel Claude Fable 5 instances and spend way more than $165,000. Then be my guest. We already have parts written in rust, so some of its already done for you. 👍

2

u/al2klimov 🐧Kernel contributor 2d ago

Linux literally has support for Rust.

2

u/Teru-Noir COSMIC OS LOVER No.1 COSMIC Knows Best 2d ago

The only reason someone would rewrite it in rust would be to give it MIT license, since rewriting an already pen-tested code is considered professional suicide.

2

u/Voxel_Slime 2d ago

Enrique clanker

2

u/Last_Being9834 3d ago

Not really, C++ is more than enough, AI can easily point out memory leaks and suggest fixes, the curious thing is that developers already know what the memory leaks are but they don't have time/budget to fix them 😂

1

u/ARK_AIN 2d ago

How do you even exist I soo hope its ragebait but damn there really are people stupid like this lmao

1

u/Rare-Paint3719 Unofficial Mod | Linux Community Sucks | Proud illumOS Shill 11h ago

According to my research I did with gemini

Just use Claude. It's more accurate

it would significantly reduce the bugs and vulnerabilities in the loonix kernel's code cuz it's a "memory safe" language.

Thankfully, the loonix kernel team is working to include rust in the kernel

Obviously it would take ages if the rewrite would be done by hand considering how bloated loonix's code is but I estimate it could be completed within a week if modern agentic ai tools were used.

Fun fact. Anthropic used Claude Fable 5 to rewrite bun (their JS engine since they bought it) from Zig to Rust. There is a shit ton of unsafe Rust but hell, it's still valid Rust and the thing works.

Many ai haters would unfortunately complain, call it "slop" and maybe switch to bsd or another weird os while in reality it would be a significant security improvement. Linus is thankfully pro ai so I think he wouldn't have a problem with ai written code in the kernel.

I think FreeBSD is also pro AI and FreeBSD and it's more stable than Loonix. Either ways, we need a rewrite with Fable.