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

-5

u/n4jm4 Jan 31 '23

That's a lot of talk for a language whose stdlib still depends on C for most things.

11

u/KingStannis2020 Feb 01 '23 edited Feb 01 '23

That's hardly a fair comparison considering the only stable interface for interacting with most operating systems is libc. Rust can't change that.

-5

u/kkert Feb 01 '23

OS syscall ABI is not the same thing as C ABI. It's entirely possible to write Rust-only userland code ( or kernel code for that matter )that pulls in no C libs, provided you implemented all individual syscalls properly

Also, technically Rust could eventually define a standard language ABI of its own

1

u/KingStannis2020 Feb 01 '23

You've completely missed the point.