3 ms·
How similar is your language to rust? Does it has ownership like rust? does it have explicit allocation and dealocation like C/C++? Does it have automatic memo
by gus_massa 9y ago
How similar is your language to rust?
Does it has ownership like rust? does it have explicit allocation and dealocation like C/C++? Does it have automatic memory management like Java/Python/Javascipt?
Good garbage collectors are difficult to implement and it's probably too much for an initial project. You can probably use Rc or Arc and hope nobody makes too many cycles before there is an official package in rust for a garbage collector. https://www.rust-lang.org/en-US/faq.html#is-rust-garbage-collected https://www.rust-lang.org/en-US/faq.html#is-rust-garbage-col...
As the other comment says, in C you can use the Boehm garbage collector. I don't know if there is something similar for rust.