@tenderlove @bascule@mas.to @thisismissem I think it should be entirely feasible to write a Rust library that obviates the need to understand the generated machine code. this isn't actually specific to Rust, it appears in C++ too--if you look at something like V8 or TraceMonkey, which are written in C++, they wrap references to the JS values in a RAII pointer like @bascule suggests, for the exact same reason

Ruby is just being fast and loose in its API

1
Share
Share on Mastodon
Share on Twitter
Share on Facebook
Share on Linkedin
Aaron Patterson ✅

@whitequark @bascule@mas.to @thisismissem @bascule I guess I don't follow, so I'll have to study more. But Ruby doesn't provide a Rust API, only a C API. AFAIU whoever provides the Rust APIs would have to do the pointer wrapping

1
12mo
Replies