▲ | mike_hearn 5 days ago | ||||||||||||||||
Chrome is a bad example. It uses a tracing GC in its most performance sensitive parts explicitly to reduce the number of memory safety bugs (it's called Oilpan). And much of the rest is written in C++ simply because that's the language Chrome standardized on, they are comfortable relying on kernel sandboxes and IPC rather than switching to a more secure language. | |||||||||||||||||
▲ | wffurr 5 days ago | parent | next [-] | ||||||||||||||||
Chrome security is encouraging use of memory safe languages via the Rule of 2: https://chromium.googlesource.com/chromium/src/+/main/docs/s... IIRC Crubit C++/Rust Interop is from the chrome team: https://github.com/google/crubit | |||||||||||||||||
| |||||||||||||||||
▲ | johncolanduoni 4 days ago | parent | prev [-] | ||||||||||||||||
The only thing I intimated about Chrome is that if it got 2x slower, many users would in fact care. I have no doubt that they very well might not write it in C++ if they started today (well, if they decided not to start with a fork of the WebKit HTML engine). I’m not sure what Oilpan has to do with anything I said - I suspect that it would do memory operations too opaque for Fil-C’s model and V8 certainly would but I don’t see how that makes it a bad example of performance-sensitive C++ software. |