2 ms·
> The best advantage of writing libraries in C is that it allows the library to be usable via FFIs in many other languages. Rust has allowed this for over a ye
by pcwalton 12y ago
> The best advantage of writing libraries in C is that it allows the library to be usable via FFIs in many other languages.
Rust has allowed this for over a year at this point. For example, see the (old) blog post "Embedding Rust in Ruby": http://brson.github.io/2013/03/10/embedding-rust-in-ruby/ http://brson.github.io/2013/03/10/embedding-rust-in-ruby/
- steveklabnik 12y agoAnd the third production deployment of Rust is at Tilde for skylight, which uses a Ruby extension written as a Rust library with a thin C wrapper, due to Ruby's extensive C macros which would be annoying and bug-prone to port.