4 ms·
What will be interesting is when rust gets its own ABI. There is an rfc for it even: https://github.com/rust-lang/rfcs/issues/600 https://github.com/rust-lang/r
by robohamburger 10y ago
What will be interesting is when rust gets its own ABI. There is an rfc for it even: https://github.com/rust-lang/rfcs/issues/600 https://github.com/rust-lang/rfcs/issues/600
Hopefully if such a thing exists you could link directly to a rust library from other high level languages and possibly even have lower overhead.
For now being able to do the equivalent of extern "C" is not that new but still really useful I suppose.
- kibwen 10y agoI wouldn't quite say that's an RFC, it's just an issue in the RFCs repo. Typically people use the issue tracker in order to represent RFCs that they would like to see written, sort of a wishlist.
- robohamburger 10y agoAh I misunderstood! Thinking about it a bit more and given how heavily rust uses generics it seems like having an ABI that is at all usable by another higher level language might be challenging. I guess there is always compiler plugins though :)