3 ms·
I have hope WebAssembly can make it happen. If you compile Qt and target WebAssembly, and compile Rust and target WebAssembly, it should all be able to work to
by snarfy 8y ago
I have hope WebAssembly can make it happen. If you compile Qt and target WebAssembly, and compile Rust and target WebAssembly, it should all be able to work together automatically without needing tools like SWIG.
- moosingin3space 8y agoABI would still be a complication here, as different languages have different ways of calling into each other, different name mangling rules, etc.
- slavik81 8y agoYou can already compile Rust to x86 and Qt to x86, yet they don't work together automatically. Is there any reason to expect WebAssembly will be different?
- snarfy 8y agoI'm unfamiliar with WebAssembly, but I thought the spec was a little higher level. Two x86 apps might have the same op codes, but they don't always have the same calling conventions. How do you call a C function? You can't tell looking at the binary output, you only get the symbol name. Is it cdecl, stdcall, how many parameters and the names and types? Kotlin and Java work together, so do C# and F#.