I'm a phd student at CMU who has worked on the rust team, taken CMU's compilers course (we were saltopus) and knows a fair bit about garbage collection. You should stop by my office (GHC 9115) to chat about this. Does tomorrow afternoon work?
-sully On Nov 25, 2012 4:55 PM, "Omer Zach" <[email protected]> wrote: > Hi all, > > I'm an undergrad at Carnegie Mellon taking a compilers class right now. > We're implementing compilers for a safe C-like language called C0 ( > http://c0.typesafety.net/), and one of the options for our last project > is to implement garbage collection for the language. My partner, Brandon, > and I been reading about and playing with Rust, and want to try writing the > runtime for the garbage collector in Rust. > > Here’s how we were thinking about implementing the C to Rust calls. We’ll > switch our runtime from a simple C program to a C library. Then we will > link our Rust program against this C library, and call the “main” function > with function pointers to any Rust functions we need to call from our C0 > code (any heap allocation routines). This way, we can (mostly) avoid > dealing with unsafe memory management. See > https://github.com/bkase/rust-ffi-example for a simple example. > > Seemed like it would be worth shooting you guys an email before we dive > in—is this a terrible idea or is there anything we should know before we > get started? > > > Thanks, > Omer Zach > > _______________________________________________ > Rust-dev mailing list > [email protected] > https://mail.mozilla.org/listinfo/rust-dev > >
_______________________________________________ Rust-dev mailing list [email protected] https://mail.mozilla.org/listinfo/rust-dev
