Kotlin 2.0 and beyond by Anton Arhipov

preview_player
Показать описание
Kotlin 2.0, released in May 2024, marked a significant milestone in the language’s evolution. At the heart of this major version lies the new compiler front-end, codenamed K2. The release delivered better performance and stabilization of the language features across multiple compilation targets. Despite being a major release, Kotlin 2.0 prioritized a smooth migration path, focusing on refinement rather than introducing drastic changes.We will first take a look at improvements in Kotlin 2.0 release, highlighting the introduction of frontend intermediate representation (FIR) and the new control flow engine.Then, we’ll shift our focus to the horizon, and discuss the new ideas on Kotlin’s roadmap:* Guard conditions - enhancing control flow and null safety* Context parameters - improving code organization* Union types for errors - bringing more expressiveness to type systems* Named-based destructuring - for better readability and reducing errors* Contracts - enabling more precise static analysis Whether you’re a seasoned Kotlin developer or just starting out, this talk promises to expand your understanding of the language.

Chapters
0:00 Introduction
9:28 A very short history of Kotlin
13:20 Favourite Kotlin features
24:40 Q&A - Where can you find Kotlin best practice documentation
26:25 The K2 compiler
34:44 Q&A - When programming, does FIR suggest "improvements" in the IDE (e.g., IntelliJ)?
35:51 Smart-casts
39:51 Q&A - Is there an update on the wasm support?
42:00 What's next?
44:00 Guard conditions
47:45 Name-based descructuring
49:57 Union types for errors
53:30 Q&A - will be distinct type for null value?
57:02 Context parameters
1:03:12 Effect system capabilities & contracts
1:06:24 Summary
1:07:45 Q&A - Any plans to offer OpenRewrite recipes for migrating to Kotlin 2.x? It’s been great for Java (11→17→21) to help engineers learn new features and ease migration.
1:11:36 Ending

Speaker: Anton Arhipov, Developer Advocate at JetBrains
Anton is a Developer Advocate in the Kotlin team at JetBrains. With a professional background in server-side development, Anton has been building tools for developers for more than 10 years. Recognized as a Java Champion since 2014, he often presents as a speaker at large software conferences and contributes to the Kotlin YouTube channel.

----------------------------------------------------------------
Join the Community!
If you haven't joined the Slack community, what are you waiting for? It's the ultimate spot to throw in your questions during our live sessions and mingle with fellow Java enthusiasts from all around the world.
Рекомендации по теме
Комментарии
Автор

I missed the live stream, but I look so much forward to Kotlin in 2025

hadinajafi