Hacker News new | ask | show | jobs
by steveklabnik 831 days ago
> It ended up requiring a lot of RefCell (pointers to heap)

Just so you know, RefCell does not inherently point to the heap. If you put a Box or something inside, sure, but on its own, it doesn't allocate.

1 comments

Ah, thanks, I changed it to a Box. I confused the two, since I had to use them in conjunction.
It's all good. For what it's worth, I agree with you generally that a lot of the C code I see is like, "differently shaped" than the Rust, so it's not super simple to port directly over.