Re:GCC Rust Approved by GCC Steering Committee
by zozbot234 on Monday July 11, 2022 @08:05PM
(#32063894)
You can write and use binary libraries in Rust, you're just restricted to using the stable C ABI to interface across separately-built components. Spoiler: You'll want to do this anyway, because it's required for any sort of C-compatible FFI regardless of language.
Re:GCC Rust Approved by GCC Steering Committee
by pjmlp on Tuesday July 12, 2022 @01:14AM
(#32065908)
Nope, Windows C++ compilers have supported DLLs since Windows 16 bit days.
Some famous C++ frameworks that ship as binaries are OWL, VCL, FireMonkey, MFC, ATL, WinUI.
And WinRT has improved upon classical COM ABI to provide even more data types.
On Windows there is a component market selling libraries for those ecosystems.
Then we have middleware vendors for game consoles as well.
Maybe this isn't a market Rust community cares about and that is fine.
Either Rust wants to play on that field, or it doesn't.
Microsoft has broken their ABI plenty of times, and VS vNext might be when the next break will take place, which was initially planned for VS 2022.
Bashing C and C++ ABI issues on HN will do very little for those businesses to adopt source code distributions.