Discussed at the time: To save C, we must save ABI - https://news.ycombinator.com/item?id=30660528 - March 2022 (128 comments)
Thanks. But the title seems to be misleading. the title should be "to save c++ , ....", c++ is not c nor is c the same as c++. In the old link you provided, no one mentioned this is strictly about the c++ ABI. >That's why I think C++ should be forked... Not to mention microsoft is probably the main culprit here. But jokoon came close with the above quote.
To Save C, We Must Save ABI (2022)
11–17 of 17 posts
Re: To Save C, We Must Save ABI (2022)
#12Earlier quoted context omitted.
Thanks. But the title seems to be misleading. the title should be "to save c++ , ....", c++ is not c nor is c the same as c++. In the old link you provided, no one mentioned this is strictly about the c++ ABI. >That's why I think C++ should be forked... Not to mention microsoft is probably the main culprit here. But jokoon came close with the above quote.
I'm sorry but I don't understand that and from a very superficial skim of the article it doesn't seem obvious that the title should say C++.
Re: To Save C, We Must Save ABI (2022)
#13The less source you have the more important having a stable ABI is. Conversely the more source you have the less important a stable binary interface is. I use a lot of openbsd. The openbsd project is actively hostile to closed source commercial programs with their laissez-faire attitude toward abi stability. However I have this enormous stable of open source software. and it all runs just fine.
On practice, ABI expressivity (not so much stability) is something very important that people have insisted on overlooking for decades because of that single-compiler fallacy.
Re: To Save C, We Must Save ABI (2022)
#14Re: To Save C, We Must Save ABI (2022)
#15Earlier quoted context omitted.
> ABI stability implies API stability Yes, but not vice versa. Rust's language and standard library for example promises API stability, but not ABI stability. Since it doesn't promise ABI stability, the actual implementation can be radically different so long as the API you were promised still works and nobody has to go around "changing every single project" because there aren't any changes, for source code nothing c…
Rust basically doesn't have dynamic linking though and is relying on underlying platforms having stable ABIs.
Re: To Save C, We Must Save ABI (2022)
#16Earlier quoted context omitted.
Rust basically doesn't have dynamic linking though and is relying on underlying platforms having stable ABIs.
It does have dynamic linking, --crate-type=dylib.