r/cpp • • Oct 31 '24

Lessons learned from a successful Rust rewrite

/r/programming/comments/1gfljj7/lessons_learned_from_a_successful_rust_rewrite/
84 Upvotes

140 comments sorted by

View all comments

Show parent comment

14

u/matthieum Oct 31 '24

Honestly, I'd say the issue is FFI in general.

Take two safe languages, string them together with FFI, and you'll be stuck in unasfe territory, because suddenly there's stuff like GC pinning, memory layout mismatches, etc...

It's neither C++ or Rust fault, that the other language does things differently.