06/09/2022, 3:39 PM
Kotlin 1.7.0 is out! This release brings: 💫 Kotlin K2 compiler for JVM to Alpha. 💫 Performance improvements of the Kotlin/JVM compiler. 💫 New Gradle Incremental Compilation. 💫 OptIn annotations & Builder inference to stable. 💫 Allows implementation by delegation to inlined values of an inline class. And many other things! Learn more in the blog post and try out the new features.
👍🏻 4
🙏 12
🦜 23
🐕 19
🚀 17
K 12
🧸 8
🙌 2
🙏 26
K 60
💜 16
👍🏼 2
G 8
K 62
👍 27
❤️ 7
🥳 114
K 12
🙌🏼 1


06/09/2022, 3:42 PM
Can't wait to use it as soon as Compose support arrives 🙏🏻

Colton Idle

06/09/2022, 4:54 PM
Ooh. Can't wait to enable the k2 compiler! hopefully it improves ide perf
"The new Kotlin К2 compiler is in Alpha now, and it offers serious performance improvements. It is available only for the JVM, and none of the compiler plugins" Ooh. so it wont work with compose yet? or will the IDE perf still be improved even though I'm editing compose code?


06/09/2022, 5:07 PM
Alpha of IDE plugin with K2 will be available only in 1.8 or 1.9 But AFAIK compose team already worked on porting compose to K2 Also preview of K2 compiler API most likely will be available in 1.7.20, and at this point most official JB compiler plugins will be supported
👍 6
👍🏼 1
👍🏻 2
👍🏾 2


06/10/2022, 1:30 AM
Given that compiler integration is critical to Compose, are there any major threats/opportunities for Compose on K2? For example: • Threat?: Is it a very big effort to port Compose to K2, such that we can expect not to see it for a while? • Opportunity?: Does the K2 compiler offer a more flexible API such that Compose won't be quite as hard-tied to Kotlin minor version as usual?


06/10/2022, 4:44 AM
"Underscore operator for type arguments" it looks like the baby stage of associated types
😮 4


06/10/2022, 6:13 AM
@darkmoon_uk Compose is generally backend IR plugin with very small frontend part (few checkers, as I know), so it should be not very hard to port it to K2. Also it won't have any significant benefits of K2 frontend API because of same reason For any particular details it's better to ask Compose team directly
👍 1
💡 2
👍🏼 1

Alexey Belkov [JB]

06/10/2022, 10:40 AM
Does the K2 compiler offer a more flexible API
It will offer a more stable API, so yes, it should help Compose support more compiler versions AFAIU.
🙏🏻 1
👍🏼 1
🙏 4
🙏🏼 1
👍 1

Cody Mikol

06/14/2022, 6:16 PM
looks like this link “includes a number of bugfixes” on the announcement is busted


06/15/2022, 9:30 AM
Hmm. Seems an issue with tag. Will inform the team, thanks.