News for hackers. Stuff that matters.
Re:Google Contributes $1M to Rust Foundation to Support C++/... by olliej on Monday February 05, 2024 @03:47PM (#39266926)
Swift is doing it, so rust can as well.

There's also degrees of interop - there's "rust can call a c++ dylib directly" but there's also "rust and c++ can be co-compiled". The latter is the critical path for migrating large projects from C++ to safer languages, because what you really want is to be able to replace your implementation class-by-class or file-by-file. Without a good interop story you have to essentially replace huge amounts of code in a single shot, and as the minimum subset increases in size the plausibility of successfully completing such rewriting gets lower and lower. It's a large part of why despite originating rust, mozilla has been unable to rewrite gecko in rust.

Creating a C wrapper is not a solution for the problem of migration.

There are no comments on this comment yet.