ansuz / RIIR

why not Rewrite It In Rust
https://transitiontech.ca/random/RIIR
637 stars 6 forks source link

rewrite linux in rust #51

Open pepsipu opened 4 years ago

pepsipu commented 4 years ago

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

progval commented 4 years ago

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

pepsipu commented 4 years ago

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

progval commented 4 years ago

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

SOF3 commented 4 years ago

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.

MocaCDev commented 3 years ago

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.

pepsipu commented 3 years ago

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!

SOF3 commented 3 years ago

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!

v3ss0n commented 1 year ago

This meme is becoming a reality.

porky11 commented 1 year ago

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.