4 ms·
I had a memory management problem so I introduced GC/ref counting and now I have a non-deterministic memory management problem.
by CoolGuySteve 6mo ago
I had a memory management problem so I introduced GC/ref counting and now I have a non-deterministic memory management problem.
- dbdr 6mo agoRef counting is deterministic. Rust memory management is also deterministic: the memory is freed exactly when the owner of the data gets out of scope (and the borrow checker guarantees at compile time there is no use after that).
- CoolGuySteve 6mo agoCool now use the reference on another thread.
- worik 6mo agoIf you would use Rust, you would know that problem is solved too. Rust solves a lot of problems, and introduces others The promiscuous package management, chiefly. Not unusual for building a imlle programme in Rust brings in 200+ crates, from unknown authors on the Internet... What could possibly go wrong?