rust-lang/rust
room on Gitter and this topic on Reddit
Q1: Do the parameters in a Rust method count as references to prevent the Ruby VM from garbage collecting the parameters while the Rust method is running without GVL?
Q2: Does calling let mut hsh = Hash::new();
in Rust allocate the object on the Ruby heap, or a separate heap?
Q3: Does Ruru call finalizer on the above Hash
automatically when its ownership scope ends? Or is it subject to garbage collection at a later time?
Q4: Are Ruby objects instantiated from Rust different in any way from the Ruby objects passed into Rust as parameters, or returned from Rust to Ruby?
ruby-sys
code executed without GVL become safe? I suspect it does not, and only pure Rust code would be safe?
ruru
. i thought about replacing each daft_funkt
function with a native rust function but I'm not sure if there would be any performance benefit to doing so. Is this just a awful idea? Am I on to something here? More importantly, is this even possible?