Anyone know what docs to read to get started with understanding how kotlin compilation works? I hear...
j
Anyone know what docs to read to get started with understanding how kotlin compilation works? I heard that it was a bit complicated and wanted to get a feel for what was going on to see if there's anything I can do about speeding it up over the next few months.
m
• I found Article by @shikasd very usefull https://medium.com/bumble-tech/fixing-serialization-of-kotlin-objects-once-and-for-all-95886fddba7a • talk by @kevinmost https://resources.jetbrains.com/storage/products/kotlinconf2018/slides/5_Writing%20Your%20First%20Kotlin%20Compiler%20Plugin.pdf and video

https://www.youtube.com/watch?v=w-GMlaziIyoā–¾

• new shiny KSP by google used with jetpack compose with sample and some docs https://github.com/android/kotlin/tree/ksp/libraries/tools/kotlin-symbol-processing-api
s
Self advertising myself, I also had a talk about the Kotlin compiler recently šŸ™‚ It is more focused on plugins, but one chapter is completely about compilation processes. https://www.droidcon.com/media-detail?video=453613951
šŸ‘ 4
Also note that there are ongoing efforts by JB and Google teams to speed it up, they are rewriting huge parts of compiler and promising quite nice perf boost šŸ™‚
j
Thanks for the info. I'll give it all a look-over.
m
Since this has been pinned to the channel as newbie help, I would like to point also to the great article series by @bnorm https://blog.bnorm.dev/writing-your-second-compiler-plugin-part-1
šŸ” 2
e
@shikasd the link is unfortunately dead
s
Oh well, seems like it got taken down :(
e
can you re-upload it somewhere else?
s
Not sure I have the sources, will check šŸ™‚ Probably better to publish transcript later
šŸ‘ 1