3 ms·
Slowly rewriting it to Rust does sound beneficial (I wouldn't be seeing memory leaks) but I don't think the c(++)/Rust interop is good and seamless enough for t
by Avamander 7y ago
Slowly rewriting it to Rust does sound beneficial (I wouldn't be seeing memory leaks) but I don't think the c(++)/Rust interop is good and seamless enough for that?
- shmerl 7y agoDepends on the code base.
- Thiez 7y agoStrictly speaking Rust doesn't prevent memory leaks. You can easily create cycles in reference counted types, or `std::mem::forget` something. No use of unsafe required either. That said as long as you don't build graphs with reference counted types it's hard to leak memory by accident.