Re:Google Launches Carbon, an Experimental Replacement for C++
by UncleMeat on Monday July 25, 2022 @10:59AM
(#32225282)
Rust has complicated interop with C++ and it is incredibly difficult to automate useful transcompilation from C++ to Rust. Various dynamic safety tools also don't work when you've got both Rust and C++ working together. The idea with Carbon appears to be a language with a much easier ramp for existing massive C++ codebases.
[ Parent
| on HN ]
Re:Google Launches Carbon, an Experimental Replacement for C++
by rvz on Monday July 25, 2022 @11:45AM
(#32226014)
> Rust has complicated interop with C++ and it is incredibly difficult to automate useful transcompilation from C++ to Rust.
The problem with Rust is that it does not have this built directly into the language and relies on third party libraries. That doesn't really scale properly and some of the solutions are half-automated and needs lots of fine tuning, flag toggles and other configuration for it to work.
Carbon, Swift and D have a different approach in integrating the interop capability directly into the language which does sound like an easier way to automate this use it for existing C++ libraries. But I guess that this approach is not easy, but it seems with D lang, it paid off.