K2 compiler provides significantly faster and more stable Kotlin code highlighting and Kotlin code completion, JetBrains said. Credit: Hussain Warraich / Shutterstock JetBrains’ IntelliJ IDEA 2024.1, a release of the integrated development environment (IDE) due on April 4, will feature an optional K2 compiler mode, enabling developers to use K2 for faster and more robust Kotlin code analysis, the company said. With this planned release, the IDE for Kotlin and Java will have two modes. The class mode, enabled by default, will use the standard K1 Kotlin compiler to analyze Kotlin code. The K2 mode will use the new K2 compiler as its code analysis engine. The K2 mode now is in an alpha state. The company made the announcement in a March 25 blog post. The two modes affect only code analysis. If developers want to compile a project to the K2 compiler, they will need to specify this in build settings. JetBrains describes K2 as a high-performance compiler for the Kotlin language. With the K2 mode, JetBrains developers rewrote the compiler from scratch to improve performance and enhance the internal architecture for further development of the Kotlin language. The K2 mode will support future language features that will only be provided in the K2 compiler, JetBrains said. The K2 mode in IntelliJ IDEA 2024.1 supports code highlighting and completion, navigation, debugging, refactoring, and editing features such as code formatting and type hierarchy. Also supported are popular inspections, quick fixes, new project wizards, wizard importing, and running tests and applications from IntelliJ IDEA. However, K2 mode in version 2024.1 does not support Kotlin Multiplatform projects, Android projects, extract function refactoring, inlay hints, or Java-to-Kotlin conversion. Also, third-party IntelliJ IDEA plugins that depend on the Kotlin plugin will be disabled. JetBrains said that support for missing features and an easy-to-use API for third-party plugins will be added in upcoming releases. The company promised to provide migration guidance for plugin authors soon. Related content how-to Kotlin for Java developers: Classes and coroutines Kotlin was designed to bring more flexibility and flow to programming in the JVM. Here's an in-depth look at how Kotlin makes working with classes and objects easier and introduces coroutines to modernize concurrency. By Matthew Tyson Nov 20, 2024 9 mins Java Kotlin Programming Languages news Akka distributed computing platform adds Java SDK Akka enables development of applications that are primarily event-driven, deployable on Akka’s serverless platform or on AWS, Azure, or GCP cloud instances. By Paul Krill Nov 18, 2024 2 mins Java Scala Serverless Computing news JDK 24: The new features in Java 24 21 features are proposed for the next version of Java including quantum-resistant cryptographic keys designed to secure Java apps against future quantum computing attacks. By Paul Krill Nov 15, 2024 11 mins Java Programming Languages Software Development news JetBrains IDEs ease debugging for Kubernetes apps Version 2024.3 updates to IntelliJ, PyCharm, WebStorm, and other JetBrains IDEs streamline remote debugging of Kubernetes microservices and much more. By Paul Krill Nov 14, 2024 3 mins Integrated Development Environments Java Python Resources Videos