7 ms·
Rust will require a complete re-write or extensive work implementing a C-like interface for your C++ API. Carbon will be able to use C++ classes natively, inclu
by flumpcakes 4y ago
Rust will require a complete re-write or extensive work implementing a C-like interface for your C++ API. Carbon will be able to use C++ classes natively, including calling methods etc.
I think Carbon will be a much better choice for extending a C++ project.
Rust might be a good choice if you are able to start from scratch or the project has C bindings.
- stonemetal12 4y agoHow did the firefox team handle it? They have moved parts to Rust while the rest is still C++.
- azakai 4y agoFirefox is porting or replacing entire libraries. (The idea with Carbon is you could replace specific C++ classes or headers.)
- tormeh 4y agoWasn’t https://cxx.rs/ https://cxx.rs/ supposed to make writing C-bindings unnecessary?