Learn more about Kotlin/Wasm in this YouTube video. IDE support will be added in future releases. We provide the Kotlin standard library ( stdlib) and test library ( kotlin.test) for Kotlin/Wasm out of the box. Starting with the 1.8.20-RC2 preview release, you can use Kotlin/Wasm in your experimental projects. Improved application runtime performance compared to Kotlin/JS and JavaScript because Wasm is a statically typed language. Potentially faster application startup compared to Kotlin/JS and JavaScript because Wasm has a compact and easy-to-parse bytecode. We want to highlight the following advantages of the new Kotlin/Wasm target:įaster compilation speed compared to the wasm32 Kotlin/Native target, since Kotlin/Wasm doesn't have to use LLVM.Įasier interoperability with JS and integration with browsers compared to the wasm32 target, thanks to the Wasm garbage collection. You can find detailed instructions here: How to enable Kotlin/Wasm. To set up the environment to run WebAssembly, you only need to enable an experimental garbage collection mode that Kotlin/Wasm targets. Almost all modern browsers already support WebAssembly 1.0. WebAssembly binary format is independent of the platform because it runs using its own virtual machine. The Kotlin team finds WebAssembly to be a promising technology and wants to find better ways for you to use it and get all of the benefits of Kotlin. Kotlin/Wasm (Kotlin WebAssembly) goes Experimental in this preview release. Report any problems you faced with the new K2 compiler on our issue tracker.Įnable the Send usage statistics option to allow JetBrains to collect anonymous data about K2 usage. Provide your feedback directly to K2 developers on Kotlin Slack – get an invite and join the #k2-early-adopters channel. We'd appreciate any feedback you may have! Leave your feedback on the new K2 compiler It doesn't support Kotlin/Native or other multiplatform projects yet. The Alpha version of the new K2 compiler only works with JVM and JS IR projects. The previous -Xuse-k2 compiler option has been deprecated.
0 Comments
Leave a Reply. |