Re:Rust and C++ Interoperability in Chrome
by kazagistar on Wednesday August 19, 2020 @05:33PM
(#24216862)
The problems listed aren't the oop, they are the memory and thread safety rules of rust, that prevent all the null pointer dereferencing and leaky memory that a "dumb" C++ wrapper allows.
[ Parent
| on HN ]
Re:Rust and C++ Interoperability in Chrome
by Const-me on Wednesday August 19, 2020 @10:05PM
(#24219148)
Here's a quote from the article:
> We think the hardest part of this is imagining a safe way to pass types between Rust and C++. That requires auto-generated shim code on both the Rust and C++ side.
I'll be very surprised if they'll be able to make a production-quality solution. The languages are just too different, and Rust's OOP support is one of these issues.