Skip to main content

Kotlin 2.0 now available with stable version of K2 compiler

JetBrains has just released Kotlin 2.0, which it says is a major update to the programming language. It was announced at KotlinConf 2024, happening May 22-24, which is an event full of talks about using Kotlin.

“Today we are excited to release Kotlin 2.0 with a stable K2 compiler, which is multiplatform from the ground up, understands your code better, and compiles it twice as fast,” Egor Tolstoy, project lead for Kotlin at JetBrains, wrote in a blog post

One of the main highlights of this release is that it includes a stable version of the K2 compiler, which is a complete rewrite of Kotlin’s original compiler that unifies all platforms supported by Kotlin, and offers a faster and more extensible architecture, addresses technical debt from the old compiler, fixes bugs, and lays the foundation for future language extensions. 

According to JetBrains, around 15,000 developers have already used K2, and Meta has already migrated large portions of its codebase to it. 

“The everyday passion of the Kotlin community constantly motivates us to improve the language, and today, we are proud to take a huge step forward for the whole Kotlin ecosystem and release Kotlin 2.0. The new compiler architecture was built to enable us to evolve the language much easier, we can introduce new features faster and in a consistent and platform-agnostic way,” said Tolstoy.

According to JetBrains, the K2 compiler is key for multiplatform Kotlin, and to that end, Kotlin 2.0 also introduces several new features and enhancements for Kotlin Multiplatform (KMP).

Kotlin now provides first-party support for Compose Multiplatform, and the Jetpack Compose compiler (which powers Compose Multiplatform) now ships with Kotlin as of this release. 

This release also introduces an improved tooling experience for Kotlin Multiplatform. It now fully understands Xcode projects and offers full support for Swift. 

Google has also started recommending developers switch to KMP and it offers KMP support in several popular Android libraries, and has migrated some of its own apps to it as well, such as Google Docs. 

Looking ahead to the future, upcoming plans for Kotlin that the team is now working on include data recognition and deconstruction, increasing abstraction, high-performance clear code, and improving the library author experience. 

“Kotlin 2.0 significantly boosts your daily productivity. It brings a faster, smarter, and more robust compiler, as well as even better support for Kotlin Multiplatform projects. As a Kotlin developer, you get more than just a modern, concise, and safe language. You also have access to a versatile ecosystem with powerful frameworks such as Ktor and Compose Multiplatform, and combined with JetBrains IDEs, Kotlin 2.0 offers an exceptional developer experience, empowering you to build innovative, performant, and reliable applications for all platforms,” Tolstoy wrote. 

Kotlin 2.0 is now available in the latest version of IntelliJ IDEA and Android Studio. A full list of new features can be found in the language’s release notes.

The post Kotlin 2.0 now available with stable version of K2 compiler appeared first on SD Times.



from SD Times https://ift.tt/57cPU0N

Comments

Popular posts from this blog

Difference between Web Designer and Web Developer Neeraj Mishra The Crazy Programmer

Have you ever wondered about the distinctions between web developers’ and web designers’ duties and obligations? You’re not alone! Many people have trouble distinguishing between these two. Although they collaborate to publish new websites on the internet, web developers and web designers play very different roles. To put these job possibilities into perspective, consider the construction of a house. To create a vision for the house, including the visual components, the space planning and layout, the materials, and the overall appearance and sense of the space, you need an architect. That said, to translate an idea into a building, you need construction professionals to take those architectural drawings and put them into practice. Image Source In a similar vein, web development and design work together to create websites. Let’s examine the major responsibilities and distinctions between web developers and web designers. Let’s get going, shall we? What Does a Web Designer Do?

A guide to data integration tools

CData Software is a leader in data access and connectivity solutions. It specializes in the development of data drivers and data access technologies for real-time access to online or on-premise applications, databases and web APIs. The company is focused on bringing data connectivity capabilities natively into tools organizations already use. It also features ETL/ELT solutions, enterprise connectors, and data visualization. Matillion ’s data transformation software empowers customers to extract data from a wide number of sources, load it into their chosen cloud data warehouse (CDW) and transform that data from its siloed source state, into analytics-ready insights – prepared for advanced analytics, machine learning, and artificial intelligence use cases. Only Matillion is purpose-built for Snowflake, Amazon Redshift, Google BigQuery, and Microsoft Azure, enabling businesses to achieve new levels of simplicity, speed, scale, and savings. Trusted by companies of all sizes to meet

2022: The year of hybrid work

Remote work was once considered a luxury to many, but in 2020, it became a necessity for a large portion of the workforce, as the scary and unknown COVID-19 virus sickened and even took the lives of so many people around the world.  Some workers were able to thrive in a remote setting, while others felt isolated and struggled to keep up a balance between their work and home lives. Last year saw the availability of life-saving vaccines, so companies were able to start having the conversation about what to do next. Should they keep everyone remote? Should they go back to working in the office full time? Or should they do something in between? Enter hybrid work, which offers a mix of the two. A Fall 2021 study conducted by Google revealed that over 75% of survey respondents expect hybrid work to become a standard practice within their organization within the next three years.  Thus, two years after the world abruptly shifted to widespread adoption of remote work, we are declaring 20