Re:Rust once, run everywhere
by andyl on Friday April 24, 2015 @02:11PM
(#9435055)
Can anyone post a link to a RubyGem written with a Rust extension??
[ Parent
| on HN ]
Re:Rust once, run everywhere
by carllerche on Friday April 24, 2015 @02:51PM
(#9435324)
Here is how we bind the Skylight gem to the Rust bit: https://github.com/skylightio/skylight-ruby/blob/master/ext/...
Re:Rust once, run everywhere
by steveklabnik on Friday April 24, 2015 @02:15PM
(#9435072)
https://github.com/steveklabnik/rust_example is one way to do it, albiet the most complex one: a thin C wrapper over the Rust, which is then a C extension for Ruby. Easier ones are using FFI or Fiddle.
I think they are referring to this http://blog.skylight.io/bending-the-curve-writing-safe-fast-... in the blogpost
Here's PyCon2015 talk on how to call Rust from Python: https://www.youtube.com/watch?v=3CwJ0MH-4MA