08/14/2023, 8:11 AM
Hi Folks, Couple of (dumb?) doubts wrt. Compose version vs Compose Compiler version • What’s the downside of using older compiler ? (or what’s the upside of using latest compiler) ? • I see, to update to 1.5.0 stable compose, I don’t have to update my compose compiler to latest. How compiler process the code it doesn’t know? 🤔

Ben Trengrove [G]

08/14/2023, 8:36 AM
First question: have a read of the compiler release notes, there are often fixes and performance improvements in the code the compose compiler plugin is generating that come with the new compiler version. If it's just a kotlin bump though, there isn't really any disadvantage to remaining on an old compiler except for it will mean remaining on an older kotlin version. Second question: the same way it compiles your code! Compose is layered, the layers don't know about each other. Admittedly there are some cases where the compiler knows about a compose runtime function but in that case the compiler feature is effectively feature flagged to need the corresponding runtime feature.


08/14/2023, 8:38 AM
Makes sense. Thanks