Friday, March 17, 2023

Kotlin => WASM with GC

 The huge potential of Kotlin/Wasm · seb.deleuze.fr

When it comes to compiling Kotlin to WebAssembly it shares the same challenges as C#, JavaScript and Java, it requires a garbage collector, which is something WebAssembly lacks. Currently languages like C# and JavaScript solve this problem by compiling and shipping a runtime (also compiled to WebAssembly) alongside the application code.

However, the WasmGC proposal has been making good progress recently, and is now at a point where it is available (behind flags) on various browsers and runtimes. Kotlin/Wasm has made an early bet on WasmGC. This blog post briefly covers the current state of progress, which is all looking very promising!

No comments: