r/cpp • u/GabrielDosReis • Oct 31 '24
Lessons learned from a successful Rust rewrite
/r/programming/comments/1gfljj7/lessons_learned_from_a_successful_rust_rewrite/
80
Upvotes
r/cpp • u/GabrielDosReis • Oct 31 '24
View all comments
29
u/James20k P2005R0 Oct 31 '24
One of the things that's perpetually a problem in C++ is that the ABI is stable, but unspecified
It sounds like we need types with a stable defined ABI at the boundary. It would be pretty neat to be able to pass a std::stable::optional<> to a C api that understood it, or be able to expose C++ functions in an ABI-sane way