🦊 Kotlin 1.9.0: K2 Beta, 10 Times Smaller Basic WebAssembly Build

Tom Smykowski
2 min readJul 9, 2023

It’s July 2023. A very hot month. In fact June was hottest at least in last 43 years. All my readers went to vacation and don’t even think about thinking about programming.

But since you’re here, maybe it’s raining, or you can’t imagine vacations without reading my articles. Good, good 🙂 It will be a great vacation read for you!

Kotlin 1.9.0 was just released on July, 6. As a reminder, Kotlin 1.8 was released in December 2022 with an improved reflection performance. There were also three interesting feature requests at that time.

After half of year we can enjoy the next minor release of Kotlin. Here’s some fun features bundled with Kotlin 1.9.0.

K2 Moves To Beta

The new, promising Kotlin compiler was developed in the alpha stage. I was reporting about it in October. Now K2 moves to beta stage. You can enable it in your Gradle project and report any problems you’ll encounter.

Smaller WebAssembly Builds

A simple Hello World example in WebAssembly takes reportedly ten times less space than in Kotlin 1.8.20.

Faster Entries Replace Value Classes Values()

--

--

Tom Smykowski

Software Engineer & Tech Editor. Top 2% on StackOverflow, 3mil views on Quora. Won Shattered Pixel Dungeon.