3 ms·
I've been thinking about this a lot - binary interfaces. We have this problem of one standard binary interface, the C ABI. It is the only standard binary inte
by snarfy 9y ago
I've been thinking about this a lot - binary interfaces.
We have this problem of one standard binary interface, the C ABI. It is the only standard binary interface. If I want to write a library that can be used by any language, I have to export a C interface.
There have been solutions, such as Corba and COM, but cross language support never really took off. We end up with ports of libraries. There are tons of libraries ported between C++, Java, C#, etc. All because they live in their own world. Using a C++ library in C# requires exporting a C interface and then hand wrapping the library with pinvoke.
Before I read about GraalVM I was under the impression that WebAssembly would accomplish this.