logoalt Hacker News

Linux 0.11 rewritten in idiomatic Rust, boots in QEMU

81 pointsby artoyesterday at 8:11 PM66 commentsview on HN

Comments

prologicyesterday at 9:54 PM

I just compared this Rust implementation against the original C sources. Some ~50k SLOC (Rust) compared to maybe ~8-12k SLOC of C (depending on if you count headers). Why is the Rust implementation so much more complex and onerous?

show 9 replies
mjhayyesterday at 10:20 PM

I used to like rust, but I feel like I’m being Pavlovian-conditioned to recoil at its mention now.

show 5 replies
bijowo1676yesterday at 11:10 PM

The ultimate boss of Rust rewrites. Very happy that LLM assisted coding unlocks these kind of projects

broodbucketyesterday at 10:34 PM

I hate that 5 years ago I'd see a headline like this and think it was awesome, and now it's just "look at what someone's spent tokens on today"

show 1 reply
jagged-chiselyesterday at 10:53 PM

How to the binary sizes compare? An original Linux 0.11 kernel vs. this oxidized version.

show 1 reply
devyyesterday at 10:22 PM

Docs full of emojis, this is another AI slop?!

Tangential note: there is already a community effort[1] to rewrite GNU commandline tools into Rust and Canonical shipped the rust version of the /bin/utils in Ubuntu 26.04 Resolute Raccoon by default[2] in their "oxidizing" initiative.[3]

PS: Linus Torvalds has confirmed that the existing Linux kernel will never be fully rewritten in Rust.[4] Let's see how well that statement age.

[1]: https://github.com/uutils/coreutils

[2]: https://canonical.com/blog/canonical-releases-ubuntu-26-04-l...

[3]: https://discourse.ubuntu.com/t/carefully-but-purposefully-ox...

[4]: https://news.ycombinator.com/item?id=41355731

show 1 reply
xqb64yesterday at 9:56 PM

Slopware?

show 1 reply
drnick1yesterday at 10:51 PM

How does the performance compare?

richard_toddyesterday at 10:38 PM

Honestly -- and I know this project is just a toy/fun experiment -- with modern AI, I think this is the correct approach to Rust-ifying projects. Just fork it and do an AI-assisted wholesale conversion, and run in parallel for a while to make sure all the regressions are found. Then you can compare to the original for benefits and drawbacks, and you get a more idiomatic code-base... instead of trying to convince longstanding projects to go into a half-rust Frankenstein model, which is what I usually see.

irishcoffeeyesterday at 10:24 PM

What is “un-idiomatic” rust?

show 1 reply
rvzyesterday at 9:48 PM

Nice project, with so many emojis at the start of every title of the README.

Wonder who could have done that?

show 1 reply
xystyesterday at 10:02 PM

rewriting {PROGRAM} in rust is so fetch.

show 1 reply
globalnodeyesterday at 11:53 PM

rust evangelism is some people / youth of today trying to differentiate themselves from their parents, aka heavy metal of programming. its ok, its fun. i cant read their source code but i dont need to, theres a whole world out there of c/c++/python stuff that will get the job done faster and with less hassle.