Native Ruby Extension in Rust

I came across 2 projects that I thought looked interesting. On the surface they appear to allow creating native Ruby extensions in the Rust language which require no “glue” to use. So you write your classes in Rust and just use them in Ruby as if they were written in Ruby. The advantage of using Rust is speed and safety, according the the Rust website.

I haven’t experimented with either and have no idea if such an extension would load in SketchUp, but I have added these to my list of things to watch.

[1] https://github.com/d-unseductable/ruru
[2] http://blog.skylight.io/introducing-helix/

Edit: found another a day later…

[3] https://github.com/gaar4ica/ruby_ext_in_crystal_math

1 Like