News for hackers. Stuff that matters.
Re:Ruby 3.2.0 Released by matheusmoreira on Sunday December 25, 2022 @04:56AM (#34125789)
I didn't know Ruby had Rust support, that's seriously awesome. I suppose Rust extensions use the C ABI.
Re:Ruby 3.2.0 Released by matsadler on Sunday December 25, 2022 @06:05AM (#34126179)
The template generated with bundle gem —-ext=rust uses the Magnus[1] library that provides a high-level friendly Rust wrapper over the Ruby C API, but you can also use rb-sys[2] which is lower level bindings direct to the Ruby C API.

[1]: https://github.com/matsadler/magnus [2]: https://github.com/oxidize-rb/rb-sys

Re:Ruby 3.2.0 Released by n8ta on Sunday December 25, 2022 @11:15AM (#34128412)
I was writing native extensions about 2 years ago so its been possible for awhile. The rutie crate for rust makes it much easier.