4

The Road to the New Kotlin Compiler

 2 years ago
source link: https://www.youtube.com/watch?v=iTdJJq_LyoY
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
#Kotlin #Compiler #FIR

The Road to the New Kotlin Compiler

9,297 views
Oct 7, 2021

Check out the accompanying blogpost 👉 https://blog.jetbrains.com/kotlin/202...

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


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK