3 ms·
GC is due to Javascript not C++.
by dbaupp 9y ago
GC is due to Javascript not C++.
- Animats 9y agoFirefox has an internal GC for C++ objects managed by its XPCOM system.[1] It's called the "cycle collector". [1] https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Interfacing_with_the_XPCOM_cycle_collector https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/...
- dbaupp 9y agoAnd Servo uses a GC deeply within its Rust code too (the JS one, in fact). I think the benefits in Servo with respect to GC would mainly be because the code is new/learnt from the mistakes of the old (and avoided historical baggage), rather than because it is in Rust.