RIIR icon indicating copy to clipboard operation
RIIR copied to clipboard

rewrite linux in rust

Open pepsipu opened this issue 5 years ago • 10 comments
trafficstars

with a linux rewrite in rust, we could say bye bye to most memory issues just sayin

pepsipu avatar Jan 26 '20 18:01 pepsipu

https://doc.redox-os.org/book/introduction/what_is_redox.html

progval avatar Jan 26 '20 19:01 progval

redox is great, but it doesn't have the same development team nor influence as Linux. by rewriting the Linux kernel in rust, we'd not only promote rust as an up and coming language that prevents heap exploits as well as overflows but we'd also be able to bolster the security of Rust as a whole with its new audience of bug finders and developers. C is outdated, and Rust can take its place with ease.

this is a meme

pepsipu avatar Jan 26 '20 20:01 pepsipu

there we go: https://lwn.net/SubscriberLink/829858/281103f9c6fd0dc2/

progval avatar Aug 31 '20 22:08 progval

redox is great, but it doesn't have the same development team nor influence as Linux. by rewriting the Linux kernel in rust, we'd not only promote rust as an up and coming language that prevents heap exploits as well as overflows but we'd also be able to bolster the security of Rust as a whole with its new audience of bug finders and developers. C is outdated, and Rust can take its place with ease.

this is a meme

But Rust's FFI is still written in C. You can't get away from C with that.

SOF3 avatar Sep 01 '20 03:09 SOF3

C is outdaded, and Rust can take its place with ease.

Not true. C may be old, but it is not outdated. It is still used in quite literally everyday things. Replace C with Rust, you'll say goodbye to fast speeds and hello to a nice long 30-second compilation time just to display a simple clock on an OS.

Not just that, but there are many ideals where C beats Rust(in flexibility, logic and compilation speeds). C isn't going anywhere, anytime soon. Take this from a daily C developer.

MocaCDev avatar Jun 10 '21 06:06 MocaCDev

C is outdaded, and Rust can take its place with ease.

Not true. C may be old, but it is not outdated. It is still used in quite literally everyday things. Replace C with Rust, you'll say goodbye to fast speeds and hello to a nice long 30-second compilation time just to display a simple clock on an OS.

Not just that, but there are many ideals where C beats Rust(in flexibility, logic and compilation speeds). C isn't going anywhere, anytime soon. Take this from a daily C developer.

classic C/C++ fanatic. please stop making valid points so we can RIIR!

pepsipu avatar Jun 22 '21 03:06 pepsipu

C is outdaded, and Rust can take its place with ease.

Not true. C may be old, but it is not outdated. It is still used in quite literally everyday things. Replace C with Rust, you'll say goodbye to fast speeds and hello to a nice long 30-second compilation time just to display a simple clock on an OS. Not just that, but there are many ideals where C beats Rust(in flexibility, logic and compilation speeds). C isn't going anywhere, anytime soon. Take this from a daily C developer.

Rust zealots: C and C++ violate human rights. Bad for society. RIIR!

But people told me that Rust is violating human rights by restricting freedom of assembly in favour of security!

SOF3 avatar Jun 22 '21 04:06 SOF3

This meme is becoming a reality.

v3ss0n avatar Jan 31 '23 11:01 v3ss0n

classic C/C++ fanatic. please stop making valid points so we can RIIR!

C is a pretty good language. Besides of the standard library, which is really outdated, and a few quirks (like int[] as function argument just being equivalent to int*), it's pretty nice. Probably never seen modern C APIs. I've seen, they don't rely that much on pointers anymore, but rather on huge structs, where most fields are by default zero initialized. I'd also like to see a language, that's at a similar level as C, but a bit more modern. Rust is great in may regards, but it's not a C replacement. Maybe just C, but with a few changes like some function keyword (fn), similar to Rust or Go, maybe sized array types, tuple types or even vector types (basically all common LLVM types), maybe implicit return (might be a matter of taste), but no totally new features (especially no GC, RAII, and generics). But that would probably be a new language and not C anymore.

But people told me that Rust is violating human rights by restricting freedom of assembly in favour of security!

That's not true. Rust even has an asm! macro, which allows inline assembly. So it's pretty easy to mix assembly and code.

porky11 avatar Feb 04 '23 17:02 porky11