News for hackers. Stuff that matters.
Re:How I Wrote a Modern C++ Library in Rust by jcranmer on Monday December 03, 2018 @02:19PM (#18591961)
> What you're asking for is a common ABI. To have shared classes, basic data structures, or even error handling, a binary format needs to be defined and adhered to. Of course, to bake all that into languages (and their runtimes), is a great responsibility; but more than that, it can easily be a severe limitation in the way any language may like to do things.

Being able to speak a common ABI doesn't necessarily guarantee that your local ABI has to conform identically to it. In Rust, for example, you need to add a repr(C) to be able to actually guarantee that the layout conforms to the C ABI. CORBA IDL is something that tried to achieve this kind of capability.

Re:How I Wrote a Modern C++ Library in Rust by pritambaral on Monday December 03, 2018 @08:05PM (#18594875)
> Being able to speak a common ABI doesn't necessarily guarantee that your local ABI has to conform identically to it.

No, but you still need to support the common ABI. E.g., for Rust, that's an easy job, compared to Go.