3 ms·
I wonder how it handles memory management. I just wrote an article about how memory management is handled with Ruby C extensions. It involves some gnarly plat
by haberman 10y ago
I wonder how it handles memory management. I just wrote an article about how memory management is handled with Ruby C extensions. It involves some gnarly platform-specific tricks like scanning the C stack looking for "VALUE" pointers (ie. C pointers to Ruby objects). Also Ruby makes you implement a "mark" function to trace references the Ruby interpreter doesn't know about.
http://blog.reverberate.org/2016/06/12/native-extensions-memory-management-part1-ruby-mri.html http://blog.reverberate.org/2016/06/12/native-extensions-mem...
I wonder if this works the same for Rust.