Kotlin in WebAssembly

Kotlin, like .NET, has an interesting history with WebAssembly. A few years ago, the Kotlin Native team introduced WebAssembly support for the browser. However, in 2019 they began a rewrite of the feature. In late 2020, they demoed the upcoming version, but as far as we know the implementation has not been released to the public (though the work is open source). On top of this, Kotlin can be supported by some of the Java-to-Webassembly tools.

Uses

In-browser support for Kotlin has been available for a few years. The new rewrite, though, is set to replace the older implementation. At the time of this writing, it was unclear whether the new Kotlin implementation would support wasm32-wasi. Therefore, we do not know whether Kotlin can be used to create Fermyon Platform applications.

Available Implementations

  • Kotlin-Native can be compiled to WebAssembly, but this method is going away.
  • The new compiler is not yet readily available. See the links below.

Learn More

Here are some great resources:

Interested in learning more?

Get Updates