Comment by CoolGuySteve

2 days ago

I had a memory management problem so I introduced GC/ref counting and now I have a non-deterministic memory management problem.

Ref 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).

  • Cool now use the reference on another thread.

    • If 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?