[libre-riscv-dev] Rust over C/C++

Jacob Lifshay programmerjake at gmail.com
Fri Jan 3 13:42:24 GMT 2020


On Fri, Jan 3, 2020 at 3:51 AM Hendrik Boom <hendrik at topoi.pooq.com> wrote:
> The one serious probem I see with Rust is the inability to use a
> garbage collector for those applications that do need one.
>
> I'd love to be able to use Rust's reliable allocation control for those
> parts of a program where it's adequate, and a garbage collector for
> those data where it isn't, and have Rust properly verify the interface
> between them.

Well, Rust is quite nice because the language is good enough to build
a garbage collector as a library that does just that, most likely
without any special compiler support:

See:
https://github.com/withoutboats/shifgrethor -- experimental GC library
written by one of the core Rust devs.

Also a post by the author of https://crates.io/crates/gc (rather old
post so some of it may be out-of-date):
https://manishearth.github.io/blog/2015/09/01/designing-a-gc-in-rust/

Jacob



More information about the libre-riscv-dev mailing list