Hacker News new | ask | show | jobs
by xigoi 21 days ago
Interoperating witt other languages without having to use C as a middleman?
2 comments

I agree that using the C ABI for interop between arbitrary non-C languages feels weird, but it's not like that wasn't a thing long before Rust ever existed. If you truly want a modern ABI for languages that are not C, something like the WASM component model is probably the closest thing that exists today.
An unstable ABI is entirely sufficient for that, as long as you update both sides in tandem.