4 ms·
Rust needs to focus in systems programming domain as top priority and get better at working with C++, or it risks staying a niche language. Without strong suppo
by ghplreq 1y ago
Rust needs to focus in systems programming domain as top priority and get better at working with C++, or it risks staying a niche language. Without strong support for existing C++ code, it could eventually be passed up by other languages with better C++ integration — even if those end up being technically worse, like Carbon,Zig or something similar.
- Hammershaft 1y agoI don't agree that Zig is (on paper, it's still alpha) technically worse, it just has radically different goals for a systems lang than Rust
- pdimitar 1y agoIn a world where we have a constant stream of memory unsafety CVEs, Rust seems superior. You might not be worried about these and that's okay but it's a real measurable factor by which you can evaluate languages.
- MyOutfitIsVague 1y agoRust isn't a niche language by a long shot anymore. CXX[0] is fine. Personally, I just always use a C ABI to communicate between the two. I've had to do it for every other language anyway. Languages that have native C++ interop are significantly more rare than ones that don't. Most languages have some way of talking to C, though. [0]: https://cxx.rs/ https://cxx.rs/
- ghplreq 1y agoC++ interop still far from perfect , check out ClickHouse blog: https://clickhouse.com/blog/rust https://clickhouse.com/blog/rust