Re:Rust and C++ Interoperability in Chrome
by roca on Wednesday August 19, 2020 @08:01PM
(#24218350)
None of this logic follows. Paper [0] categorizes bugs in unsafe Rust code. "There will be some bugs in FFI code" does not imply "no benefit to using Rust if there is C++ FFI". Many projects, including Firefox, have found Rust is really helpful even if you have C++ FFI.
It's too early to see how the Chromium team will begin to work on this given it's only a plan, but maybe the unsafety and security issues are enough motivation to actually use Rust to C++ interop or a rewrite. But once again, this has been tried by some other projects and by just looking at the effort of a rewrite, they later concluded that it is not worth it. [1] [2]
Even better, just improve Servo instead. But I guess they would rather create their own fork, just like they did with WebKit.
[0] https://arxiv.org/pdf/2003.03296.pdf
[1] https://blogs.dust3d.org/2019/03/13/why-i-rewrote-the-mesh-g...
[2] http://way-cooler.org/blog/2019/04/29/rewriting-way-cooler-i...