Linux 0.11 rewritten in idiomatic Rust, boots in QEMU
github.com - 79 poäng - 62 kommentarer - 15432 sekunder sedan
Kommentarer (13)
- prologic - 9274 sekunder sedanI 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?
- mjhay - 7679 sekunder sedanI used to like rust, but I feel like I’m being Pavlovian-conditioned to recoil at its mention now.
- bijowo1676 - 4701 sekunder sedanThe ultimate boss of Rust rewrites. Very happy that LLM assisted coding unlocks these kind of projects
- jagged-chisel - 5711 sekunder sedanHow do the binary sizes compare? An original Linux 0.11 kernel vs. this oxidized version.
- richard_todd - 6612 sekunder sedanHonestly -- 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.
- devy - 7546 sekunder sedanDocs 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...
- drnick1 - 5849 sekunder sedanHow does the performance compare?
- broodbucket - 6854 sekunder sedanI 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"
- xqb64 - 9106 sekunder sedanSlopware?
- irishcoffee - 7472 sekunder sedanWhat is “un-idiomatic” rust?
- - 10114 sekunder sedan
- rvz - 9595 sekunder sedanNice project, with so many emojis at the start of every title of the README.
Wonder who could have done that?
- xyst - 8761 sekunder sedanrewriting {PROGRAM} in rust is so fetch.
Nördnytt! 🤓