4 ms·
Very interesting post. Note that the New Rustacean podcast did an interview with the author of this post, Raph Levien. That was very interesting and he did tou
by wscott 10y ago
Very interesting post.
Note that the New Rustacean podcast did an interview with the author of this post, Raph Levien. That was very interesting and he did touch on this program.
http://www.newrustacean.com/show_notes/interview/_2/index.html http://www.newrustacean.com/show_notes/interview/_2/index.ht...
I believe it should be possible to have rust compile to a library that could be called from a normal C program.
- untothebreach 10y agoIndeed, C <-> Rust interop is one of rusts design goals. The Rust Book goes over this a bit: https://doc.rust-lang.org/book/ffi.html#calling-rust-code-from-c https://doc.rust-lang.org/book/ffi.html#calling-rust-code-fr...
- steveklabnik 10y ago> I believe it should be possible to have rust compile to a library > that could be called from a normal C program. Not only that, but languages where you can use C as a way to extend them. Rust has been in production for years as "a Ruby gem written in Rust", for example.