Dissecting the inline keyword in Kotlin A deep-dive into the internal working of the inline keyword
Channel: FOSDEM
Date: 2020-10-28

by Suraj Shah

At: FOSDEM 2020
https://video.fosdem.org/2020/UA2.118/kotlin_dissecting_the_inline_keyword.webm

Kotlin has a keyword called ❮code❯inline❮/code❯. While being mostly auto-suggested by the IDE, this little optimization forms the backbone for features like coroutines and APIs for sequences and collections and a lot more!
Java 8 introduced the concept of lambdas, while this was done at the language level, using bytecode instructions introduced in Java 7. Kotlin, tries to make this lambda functionality available for application targeting even Java 6! How does it do it? What optimizations does it do to make this compatibility happen?


How does this feature form the backbone for features like coroutines and APIs for collections and sequences.


How it doesn't stop there and introduces the concept of Inline classes, which enable Kotlin to have unsigned integers.


How all of this is done, by just adding one keyword support in Kotlin!

Room: UA2.118 (Henriot)
Scheduled start: 2020-02-02 14:40:00