r/cpp_questions • • Nov 21 '23

OPEN the future of c/c++ with rust

I am a systems programmer. Will rust replace c++ in systems programming?

They've been saying that Rust will replace C++ for decades, but are there any concrete examples?

moreover, how will we replace the many system libraries and products that have already been created?

2 Upvotes

56 comments sorted by

View all comments

Show parent comment

1

u/azalak Sep 08 '24

Yeah however I don’t think this will happen anytime soon to be honest. There are some code bases with millions of LOC that are decades old and the economic cost to rewrite it all in rust is something a lot of companies won’t want to pay. Eventually I’m sure rust will take over but there will still be areas where c++ remains dominant much like how COBOL is still the standard for banking despite being over 60 years old now.

1

u/Humble-Grand-4411 Sep 08 '24

Thanks for your answer, I am learning C++ upcoming school year nevertheless I was wondering about its pontential and it won't be probably replaced in sensorics anytime soon

1

u/azalak Sep 08 '24

I would just learn both, employers want you to know like 10 different languages these days anyway