Interfacing with Wasm from Kotlin
dev.to·4h·
Discuss: DEV
Flag this post

You may have heard you can compile Kotlin → Wasm but did you know you can call Wasm from Kotlin?

Why would you want to do that?

It may sound odd but theres genuine reasons why you would want to do this.

WebAssembly is a compilation target of almost every single language you can think of, Kotlin, Swift, Go, Rust, C, C* etc etc etc the list goes on. If you can interface with Webassembly, you have the potential to access libraries from any of these languages!

Fancy working on an AI project but you’re stuck because machine learning engineers cannot write anything else but Python? No problem compile Pytorch to as wasm module and you’re off to the races (kinda... more of this later)

Programming language ecosystems for the longest time have been siloed, preventing not just the sha…

Similar Posts

Loading similar posts...