News for hackers. Stuff that matters.
Re:How I Wrote a Modern C++ Library in Rust by lmm on Monday December 03, 2018 @10:12AM (#18589337)
The ABI isn't the hard part. You need to figure out how to track memory ownership when those languages have radically different memory ownership models and often limited support for "foreign"/"unowned" memory.

Passing basic datastructures back and forth isn't hard and there are tools that will autogenerate the code to do that. But when you start using them you'll find they're not solving the hard part of the problem.

Re:How I Wrote a Modern C++ Library in Rust by kllrnohj on Monday December 03, 2018 @01:00PM (#18591093)
No, the ABI is actually the hard part. C++ doesn't even have a stable ABI within just its own ecosystem, ignoring interop with other languages.

Memory ownership is trivial by comparison, particularly in this case when all the languages have the equivalent of malloc/free, so you just make that part of the ABI surface.