I’ve never understood or written #ruby bindings to other languages. But now, I’ve found motivation. The #taffy UI library written in #rust looks amazing, and #stretchable is a #python binding for it. Can anybody recommend books, videos, or other resources to learn the skills I’d need to write Ruby bindings for it?
@kerrick I'm sorry I can't help you with Rust (yet) but Rust is well supported in the Ruby ecosystem now, I think.
However, I do have a deep-dive into how a native gem works from C, if that helps to understand how it all comes together:
https://notepad.onghu.com/2023/learning-by-reversing-s1-native-gems/
@kerrick This talk from RubyConf last year might have some useful pointers: https://www.youtube.com/watch?v=l7TPj7dRHso
@james @kerrick Nice. I’m also curious about wrapping rust in ruby to make a port for https://www.egui.rs
Unfortunately I have no concrete reason to make such a thing, so I won’t do it (esp. since without a use case, it’d be easy to mess up the API)