▲ | Buttons840 6 days ago | ||||||||||||||||||||||
Will Carbon improve the ABI situation? Will Carbon be easier to interface with from other languages? A major role that C plays today is being the common protocol all languages speak[0]. C++ can't fill this role, and neither can Rust. There is a huge opportunity for some language to become the next common protocol, the common ABI, that all languages share in common. (Maybe Rust could do this, but they haven't stabilized their ABI yet, and I don't the details.) | |||||||||||||||||||||||
▲ | Gibbon1 6 days ago | parent | next [-] | ||||||||||||||||||||||
I remember reading that google tried to impress on WG21 and 14 the need to update the ABI and they were utterly opposed. The result is google is no longer interested in C++. Apple I think is also no longer interested in C++. I think also Swift now has a stable ABI. | |||||||||||||||||||||||
| |||||||||||||||||||||||
▲ | IshKebab 6 days ago | parent | prev | next [-] | ||||||||||||||||||||||
Well it's not really C that fills that role it's the C ABI which any language can use without an ounce of C. Rust can use the C ABI. It would be nice if there was a somewhat higher level ABI that languages could use though. The C ABI is very low level and tedious. | |||||||||||||||||||||||
▲ | josh11b 4 days ago | parent | prev [-] | ||||||||||||||||||||||
Carbon is performance-first, so ABI instability is the default. We plan to have opt-in ABI stability, but that story is not well developed yet. Replacing C as the lingua franca is not a goal, at least not yet. |