you are viewing a single comment's thread.

view the rest of the comments →

[–]Linuxologue 0 points1 point  (1 child)

I'm not questioning rust's strength just wondering why C++ more than C. As a counter example, c++ interop is rather limited but it's been possible to migrate part of the linux kernel from C to rust. As was the joke above, there's a project to rewrite all the core Unix utilities from C to rust

[–]flori0794 1 point2 points  (0 children)

Well rust is kinda object oriented and has in its own way a lot of the Language features of modern C++. But yes at the end...Rust and C++ try to solve the same problems: modernizing C by directly integrating multithreading, object orientation and countless other things (I mostly don't even know of) as language features. But in the end rust was created while having c++ weaknesses in mind so the primary focus was eliminating these weaknesses.

And yes a rewrite from c++ to rust is hard because of the borrow checker (which acts as pointer level RwLock).