https://kotlinlang.org logo
#webassembly
Title
# webassembly
z

zjuhasz

10/18/2018, 10:42 AM
What would the interop be like with WASM compiled from other languages like C and Rust? Would it be similar to kotlin/native where interop needs to be worked out for each language separately? Or would we go through the js bindings they generate? Or just have no interop at all?
I guess the fear of not using the js and/or ts bindings is if every language takes a similar approach to Rust and makes their wasm libraries callable from js there is still a big incentive to write your frontend in js because you can choose from all the libraries written in all these different languages. So it could be a reason why we would still want to be able to call js / ts from kotlin. Unless there is a better way to be able to utilize WASM libs written in other languages.