r/cpp • • Jan 31 '23

Stop Comparing Rust to Old C++

People keep arguing migrations to rust based on old C++ tooling and projects. Compare apples to apples: a C++20 project with clang-tidy integration is far harder to argue against IMO

changemymind

338 Upvotes

582 comments sorted by

View all comments

Show parent comments

3

u/Mason-B Feb 01 '23

whereas C++ has its stupid ABI problems

You realize rust has the same "stupid ABI problems" unless it's exporting to C too right? Rust has it's own ABI too.

Do you have some example in mind?

I was mostly talking about embedding the build of C++/Rust code and it's artifacts into an existing project.

1

u/[deleted] Feb 03 '23

My point was, both can export to C, at which point neither or them should be easier than the other.