News for hackers. Stuff that matters.

Who is NOT moving from C/C++ to Rust?

There is a clear trend of companies interested in migrating existing C/C++ to Rust, with notable examples like Microsoft, ANSSI, DARPA, etc.

Do we also have examples of companies that, after thoughtful consideration, decided that this should NOT be pursued in the foreseeable future? (ie. next 10y)

Since we usually see pro-rust or neutral/maybe positioning (eg. Linux kernel), it would be interesting to know the counter arguments.

PS: In the context of large projects, with long-term support in mind, and that decided to stay on C/C++ specifically -- not that Rust isn't chosen but Zig/other is instead).

Best

( 9 comments | 2 points | on HN )
Re:Who is NOT moving from C/C++ to Rust? by JohnFen on Friday August 02, 2024 @11:16AM (#41139522)
I work in a sector that manufactures industrial control equipment (this is cutting-edge stuff). As far as I'm aware, nobody is seriously considering moving away from C/C++ at this time. The advantages to doing so do not justify the risks and expense.
Re:Who is NOT moving from C/C++ to Rust? by eimrine on Friday August 02, 2024 @10:35AM (#41139099)
It is hard to judge about companies which are naturally sharing some anti-academic attitude, so it is more decent to analyze some information from FOSS movement. It quickly becomes noticeable that there are no such language as "C/C++" and one of my favorite writings in the field of C programming language is [1]. I believe most software of GNU movement keeps using C as their base language until something more persuading will be shipped and I consider both Rust and C++ as not that beautiful C replacements because of too much overhead.

For example, neither PL from three mentioned ones can not do templates which are not a PITA when dealing with more than one data type. IMO (inspired by Lisp of course) this feature is more important than RAII or borrowing which effectively works only with tree-shaped data structures.

[1] http://250bpm.com/blog:4

Re:Who is NOT moving from C/C++ to Rust? by roeles on Friday August 02, 2024 @10:22AM (#41139013)
I currently work on certified avionics. I don't see rust used there in the next 10 years.

Even using OO over plain C adds a huge amount of extra work already.

Re:Who is NOT moving from C/C++ to Rust? by mbn85 on Friday August 02, 2024 @10:51AM (#41139240)
Could you please elaborate on why?

Projects like Ferrocene or GNAT Pro seem to indicate that's a possibility. (automotive gaining traction sort of paves the way to avionics/aerospace).

https://ferrocene.dev/en/ https://www.eenewseurope.com/en/first-rust-compiler-qualifie...

Re:Who is NOT moving from C/C++ to Rust? by roeles on Friday August 02, 2024 @11:11AM (#41139461)
I don't see any incentive to move away from C. I was discouraged to use C++ even. The amount of extra work is huge.

I don't know a lot about Rust myself, but the impression I get is that it is a bit less obviously deterministic than C.

Things boil down to (IMHO): - every requirement must be traceable to code - every line of code must fulfill a requirement - any dynamic behavior (for example heap allocation) must be proven to work under all circumstances

Re:Who is NOT moving from C/C++ to Rust? by thesuperbigfrog on Friday August 02, 2024 @10:43AM (#41139176)
>> I currently work on certified avionics. I don't see rust used there in the next 10 years.

There is definitely interest in using Rust for safety critical work:

https://www.adacore.com/gnatpro-rust

https://ferrocene.dev/en/

I think it will definitely happen, but I am not sure how soon.

Re:Who is NOT moving from C/C++ to Rust? by mbn85 on Friday August 02, 2024 @10:53AM (#41139266)
thesuperbigfrog same references :P That's what I call independent analysis, lol
Re:Who is NOT moving from C/C++ to Rust? by npalli on Friday August 02, 2024 @07:28PM (#41143532)
Speaking of Linux Kernel - how much Rust has made it into the source? I think close to zero. Most of the companies that are 'interested' are just doing marketing gimmicks to attract younger talent but the reality is most of the work goes on in C++ and some edge cases are done in Rust.

My company works in high performance computing and there is no reason to move to Rust in the next 10 years.

Re:Who is NOT moving from C/C++ to Rust? by SleepyMyroslav on Saturday August 03, 2024 @02:25AM (#41144999)
Large game publisher shipping console/pc games in custom engines. Even if someone is ninja coding new engine in Rust right now I am likely to retire before it will be in use. Ofc I can not say for whole company if it was decided to not use Rust or not.