2 ms·
While this is true, the strategies for each are different. For example, the ways you include Rust or C into a Ruby program can be much more varied than the othe
by steveklabnik 12y ago
While this is true, the strategies for each are different. For example, the ways you include Rust or C into a Ruby program can be much more varied than the others in your list. This article, for example, chooses a 'shell out' option. While you can still do that with C or Rust, you can also compile them as an extension directly to your Ruby. There's upsides and downsides to both approaches.
- halostatue 12y agoHas anyone written a Ruby extension in Rust yet? That would be very cool to see.
- steveklabnik 12y agoI did! https://github.com/steveklabnik/rust_example https://github.com/steveklabnik/rust_example A Ruby extension written in Rust is also one of the first production uses: skylight.io
- BenTheElder 12y agohttp://blog.skylight.io/bending-the-curve-writing-safe-fast-native-gems-with-rust/ http://blog.skylight.io/bending-the-curve-writing-safe-fast-...