Check out the accompanying blogpost 👉 [ Ссылка ]
We’ve been working on a new K2 Kotlin compiler for quite some time. The new compiler aims to speed up the development of new language features, unify all the platforms Kotlin supports, bring performance improvements, and provide an API for compiler extensions.
0:00 Agenda
01:13 Compilation process
06:34 Parser
11:55 Semantic analyzer
17:48 Compilation to multiple targets
20:20 New compiler
23:13 The road to K2 compiler
29:45 Summing it all up
The development of the Kotlin compiler started many years ago, and many things have changed since that time. For example, in Kotlin 1.0, there was no Kotlin/Native backend and no coroutines, so Kotlin compiler code simply couldn’t use them.
We’re introducing new components step-by-step so that they reach you as soon as possible. Many parts are already used in the latest Kotlin versions, and others are on their way.
In this video about our adventure of rewriting the Kotlin compiler, we will:
Provide more details about different parts of the compiler, including the basics of the compiler theory.
Explain the differences between the compiler frontend and backend.
Explain the differences between the old backends and the IR backends.
Highlight what is changing in the new frontend.
Explain why we’ve chosen to name the new compiler K2.
#Kotlin #Compiler #FIR #K2Compiler #Development
What Everyone Must Know About The NEW Kotlin K2 Compiler
Теги
Android DevelopmentBackend developmentCompilerDevelopmentFIRFrom Java to KotlinFrontend DevelopmentHow compiler worksHow to become a developerIR BackendK2CompilerKotlinKotlin DevelopmentKotlin Multiplatform MobileKotlin TutorialKotlin vs JavaKotlin/NativeLearn KotlinLearn ProgrammingMultiplatform DevelopmentProgrammingServer DevelopmentStudy KotlinWhat is compilerWhy Kotlinandroid developmentkotlin tutoriallearn kotlin