Recent Posts
Archives

Posts Tagged ‘ComposeMultiplatform’

PostHeaderIcon [KotlinConf2026] KotlinConf’26 Opening Keynote: Language Evolution, Tooling, AI Agents, and Multiplatform Momentum

Lecturer

The opening keynote of KotlinConf’26 was a collaborative presentation delivered by a roster of experts from JetBrains, Google, Anthropic, and the broader Kotlin ecosystem. Primary contributors included Michail Zarečenskij, Lead Language Designer at JetBrains, who has nearly a decade of experience shaping the Kotlin compiler, IDE integration, and language specification; Vsevolod Tolstopyatov, Kotlin Core Ecosystem Lead at JetBrains, focused on libraries, APIs, concurrency, and tooling; Svetlana Isakova, Developer Advocate at JetBrains and co-author of Kotlin in Action and Atomic Kotlin; Jeffrey van Gogh, Director of Engineering for Android Developer Experience at Google and Kotlin Foundation board member; Márton Braun, Kotlin Developer Advocate at JetBrains specializing in multiplatform; Chantal Loncle, Software Developer on the Exposed team at JetBrains; Vadim Briliantov, Technical Lead and creator of the Koog framework at JetBrains; Christian Ryan, Manager of Applied AI Engineering at Anthropic in Europe; and Josh Long, Spring Developer Advocate. Supporting contributions came from Sebastian Aigner and others on the JetBrains team.

Abstract

This article examines the KotlinConf’26 opening keynote, which marked the fifteenth anniversary of the Kotlin language. The presentation surveyed the language’s foundational principles of ergonomics and safety, announced the stabilization of key features in Kotlin 2.4, introduced a unified Kotlin Toolchain, advanced the Kotlin Language Server to alpha, and detailed the mature release of Koog 1.0 as a production-ready AI agent framework. It further covered backend integrations with Ktor, Exposed, and Spring, Google’s expanding adoption of Kotlin beyond Android, and the accelerating growth of Kotlin Multiplatform and Compose Multiplatform. The keynote positioned Kotlin as a trusted foundation for modern development in an era of rising AI abstraction, emphasizing consistent tooling, enterprise readiness, and seamless multiplatform reach.

Language Foundations and the Stabilization of Kotlin 2.4

Kotlin’s design philosophy rests on two interlocking principles: ergonomics that make code pleasant to read and write, and safety mechanisms that give developers confidence in what they ship. Michail Zarečenskij opened the technical portion of the keynote by situating these principles in the contemporary context of AI-assisted development. As agents raise the level of abstraction, trust in the underlying language becomes more critical than ever. When code compiles, the compiler has already verified a substantial amount of correctness; carefully chosen defaults further reduce the cognitive load of reading, reviewing, and maintaining code—whether that code was written by a human colleague, an AI agent, or one’s own past self.

Kotlin 2.4 stabilizes two long-incubating features that exemplify this direction. Context parameters allow functions and properties to declare dependencies that are resolved from the surrounding scope rather than passed explicitly as ordinary arguments. In a typical application, an interface such as Session might expose payment settings. Checking whether a particular provider is enabled traditionally requires threading the session object through multiple layers. With context parameters, the core logic can be extracted into an extension property whose receiver is the payment provider while the session is supplied as a context parameter. The call site collapses to a simple, readable check focused on business intent rather than infrastructure wiring. The feature enables more consistent and idiomatic APIs across libraries.

Explicit backing fields address a common pattern in which a public read-only property is backed by a private mutable one. Previously this required two separate declarations representing the same state, introducing boilerplate and complicating refactoring. In Kotlin 2.4 a single property can declare an explicit backing field that is mutable internally while the property itself exposes a more restricted type. Mutable state remains safely encapsulated, the number of entities decreases, and refactoring becomes less error-prone.

Beyond these stabilizations, the language team continues to explore multi-field value classes as a safer alternative to data classes for pure data modeling. Value classes auto-generate equals, hashCode, and toString; they default to name-based destructuring rather than positional; and they lack identity, making instances interchangeable when their properties match. Looking ahead, they are expected to benefit from JVM value-type optimizations such as scalarization and heap flattening. Updates and mutable value semantics remain under active investigation, with community feedback invited at the language evolution booth.

These language-level investments ensure that students and professional developers alike receive clear, correct code by default. Ergonomics and safety form the foundation upon which the rest of the ecosystem is built.

Ecosystem Tooling: The Kotlin Toolchain, Language Server, and Standardization of Formatting

Vsevolod Tolstopyatov framed the next layer of the stack: tooling that must remain consistent even as the surrounding landscape of IDEs, build systems, and agents changes rapidly. The experimental Build Tools API announced the previous year has matured into a unifying boundary between the Kotlin compiler and any build system. It now powers every major build tool, delivering identical performance characteristics, incremental compilation, and compiler caches. Maven gains concise defaults, Buck enjoys large-scale incremental compilation, Mill adopts Kotlin with ease, and Gradle can decouple language version updates from the Gradle plugin itself. Collaboration with the open-source community is extending first-class support into official Bazel rules, enabling Kotlin in repositories that contain tens of thousands of modules.

For projects that do not require the full complexity of a separate build tool, JetBrains introduced the Kotlin Toolchain—a single cohesive entry point. Starting immediately, developers can use it for JVM and multiplatform projects to create, build, run, and test applications. Capabilities originally developed in the Amper project are being folded directly into the toolchain. Future plans include language-server integration, AI skills, native dependency management, and deep IDE support, delivering the full power of Kotlin out of the box. The toolchain is already in alpha and evolving rapidly.

Documentation consistency has become equally important once agents enter the development loop. The new Kotlin documentation model provides a machine-readable, specified, and backwards-compatible format published alongside every library. IDEs, klibs.io, and coding agents can consume it uniformly, eliminating the fragmentation of GitHub pages, official language sites, and third-party library documentation.

The Kotlin Language Server has graduated from experimental status to alpha. Backed by the full IntelliJ engine, it offers code completion, diagnostics, Maven support, formatting, and basic Android import. When a new feature appears in IntelliJ, it appears in the language server as well. An official Visual Studio Code extension is now available on the Marketplace, and agents can leverage the server for symbols, documentation, and structural understanding.

Finally, JetBrains and Meta, under the Kotlin Foundation, have begun standardizing ktfmt as the core Kotlin formatter. The project is moving into the Kotlin GitHub organization; coding conventions will be revisited; the formatter will be integrated into the toolchain and enabled by default for new projects. Code style thereby ceases to be a review-time negotiation and becomes a tooling default.

AI-Driven Development and the Stable Release of Koog 1.0

Svetlana Isakova and subsequent speakers placed AI tooling at the center of the modern Kotlin experience. JetBrains is co-leading the open Agent Client Protocol (ACP), an open standard that lets any IDE communicate with any coding agent. Developers can choose agents freely, use JetBrains AI subscriptions or their own keys, and avoid lock-in to a single model provider or payment system.

IntelliJ’s two-decade investment in code intelligence is being packaged as agent-ready skills: navigation, find-usages, refactorings ranging from simple renames to complex structural transformations. These skills make agents faster and more token-efficient. Junie, JetBrains’ own coding agent, is deeply integrated with JetBrains IDEs and can connect to the IDE even when invoked from the command line. It supports multiple model providers, allowing expensive models for planning and cheaper models for generation—benchmarks show performance on par with top competitors at up to four times lower cost. Android-specific support is available in early access, enabling agents to interact with emulators, take screenshots, and verify UI behavior including rotation.

JetBrains AI provides an agentic development environment in which multiple agents can work in parallel on different tasks—inside separate Git worktrees or Docker containers—so that concurrent modifications do not conflict. Progress is visible, attention can be directed where needed, and changes can be merged back cleanly. Cloud agents and browser-based guidance are forthcoming, as is the ability to schedule repetitive tasks on gateways. The environment itself is free; only the tokens consume budget.

Christian Ryan of Anthropic underscored the depth of collaboration. Anthropic’s official Java SDK was written in Kotlin for its ergonomics and null safety while still exposing a clean Java API. JetBrains contributed the official Kotlin MCP SDK. Claude is native in IntelliJ and Android Studio, appears as a first-party model in Junie and JetBrains AI, and benefits from the Kotlin Language Server on the CLI. JetBrains created Kotlin Sweet Bench—a suite of 110 real-world engineering tasks drawn from actual repositories—and ran it under identical conditions. Claude with Opus at extra-high settings led the results, confirming strong Kotlin proficiency.

Vadim Briliantov then announced Koog 1.0, the first mature, stable release of the Kotlin AI agent framework. One year after its experimental debut, Koog is ready for production. Agents can be embedded in mobile or backend applications with a few lines of idiomatic Kotlin. For real-world use, Koog supplies type-safe DSLs for modeling precise graph workflows with human-defined guardrails. Mercedes-Benz selected Koog for a vehicle-maintenance support agent precisely because of its modularity, traceability, and controllable logic.

Persistence allows an agent to checkpoint at any workflow node and recover from the exact same step after a crash. Spring Boot and Spring AI integration is complete: Spring AI handles LLM and RAG concerns while Koog supplies the agentic and persistence layers; instructions are injected as beans. Multiplatform targets include JVM, JS, Android, iOS, and WebAssembly. On Android, local Gemma models enable offline agents. Backend integrations cover Ktor, Amazon Agent Core, and major observability tools that expose messages, graph nodes, and per-step cost. Koog therefore unifies backend, mobile, and AI workloads under a single language.

Backend Maturity, Security Support, and Enterprise Adoption

Chantal Loncle and Josh Long illustrated the backend story. Ktor gains a Koog plugin that auto-detects LLM providers from configuration and exposes agents directly from routes with full type safety. OpenAPI generation keeps documentation synchronized with code; experimental first-party gRPC support via kotlinx-rpc generates matching protobuf source sets for every multiplatform target. Exposed reached its first stable 1.0 release earlier in the year, complete with a migration-script plugin, vector types for similarity search, and agent-assisted upgrade skills.

Starting with Kotlin 2.4 the standard library carries an 18-month security support policy: security patches from later releases are back-ported within the window, giving teams predictable upgrade planning. Empirical results show 15–20 percent faster development cycles from first change to review. Integration work continues with JUnit documentation, Maven onboarding, Micrometer coroutine support, and the Lombok compiler plugin (now alpha). Spring partnership remains first-party on both sides.

Josh Long demonstrated a production-ready agentic service built with Spring Boot, Spring AI, MCP client and security support, virtual threads, and OAuth. The resulting system is secure, null-safe, scalable, and observable. Benchmarks of MCP implementations place the JVM ahead of Node and Python by substantial margins in both throughput and latency, underscoring the runtime advantages of the platform.

Kotlin Multiplatform Expansion and Platform-Specific Advances

Márton Braun closed the technical narrative with Kotlin Multiplatform. In the preceding year the number of top apps using KMP more than doubled; McDonald’s, Booking, Duolingo, Sony Sound Connect, Alipay, Kuaishou, and Tencent Video all ship shared logic or UI to hundreds of millions of users. The KMP IDE plugin is now available on every operating system for both IntelliJ IDEA and Android Studio, supplying run configurations, Compose tooling, Swift integration, and AGP 9 support. The new project wizard adopts a clearer module structure that simplifies navigation and further modularization.

Swift export moves to alpha in Kotlin 2.4, adding support for suspending functions (awaited as Swift async) and Flows (converted to async sequences). SPM import lets Kotlin code consume Objective-C compatible packages directly. Kotlin/Native build times on the Google Docs codebase improved 25 percent with less than half the previous RAM usage—another fruit of JetBrains–Google collaboration.

Compose Multiplatform is fully stable on mobile and desktop; web has advanced to beta. Navigation 3 is stable for multiplatform use. On iOS, interop APIs allow native Liquid Glass components to overlay Compose content; parallel rendering is enabled by default and yields up to 20 percent better performance in complex layouts. Desktop Compose Hot Reload is stable and default. Web gains accessibility support and HTML interop. Kotlin/JS interop with TypeScript now includes seamless export of suspending functions as promises, giving developers two compilers that catch mistakes across language boundaries.

More than 3,600 community libraries are listed on klibs.io, reflecting the vitality of the multiplatform ecosystem.

Conclusion

The KotlinConf’26 keynote portrayed a language and ecosystem that have matured across every layer—from syntax and type system through build tooling, AI agent frameworks, backend libraries, and multiplatform UI—while remaining true to the original commitments of ergonomics and safety. Kotlin 2.4, the unified toolchain, the alpha language server, Koog 1.0, the 18-month security policy, and the doubling of multiplatform adoption together demonstrate that Kotlin is ready for the next decade of software construction, whether that construction is performed by human developers, collaborating agents, or the hybrid teams that will increasingly define the industry.

Links:

PostHeaderIcon [KotlinConf2024] Compose Multiplatform Evolves on iOS and Beyond

At KotlinConf2024, Sebastian Aigner, a JetBrains developer advocate, unveiled advancements in Compose Multiplatform, now in beta for iOS and alpha for web. Extending beyond business logic, Compose enables shared UI across platforms, integrating native capabilities. Sebastian showcased new common APIs—previews, resources, lifecycle, navigation, and UI testing—alongside iOS-specific enhancements like accessibility and scroll physics. Through live demos, he demonstrated how these features simplify cross-platform development, inviting developers to shape Compose’s future with feedback.

A Year of Progress for Compose Multiplatform

Since its debut at KotlinConf2023, Compose Multiplatform has matured significantly. Sebastian highlighted its role in sharing UI code, complementing Kotlin Multiplatform’s business logic sharing. On Android, it leverages Jetpack Compose; on desktop, it powers JetBrains Toolbox; and on iOS, it reached beta status at KotlinConf2024. The web target hit alpha, broadening its reach. Progress spans accessibility, navigation, text input, and scroll physics, with most features now stable or experimental, ready for developers to adopt and refine through real-world use.

iOS-Specific Enhancements

Compose Multiplatform on iOS now feels native, thanks to revamped scroll physics mirroring iOS’s overscroll and spring effects. Sebastian demonstrated accessibility improvements, with components supporting VoiceOver and gesture navigation out of the box, provided content descriptions are added. Interop with SwiftUI allows popups to span the screen, and window insets APIs handle notches and dynamic islands, ensuring full-screen rendering. These enhancements make iOS apps built with Compose visually and functionally indistinguishable from native counterparts, enhancing user experience.

Common Resources for Seamless UI

The new common resources API simplifies asset management. Sebastian showed how to add drawables and strings in a composeResources directory, accessed via a type-safe res object. In a demo, he added a banner image and a localized conference description, with Fleet auto-generating accessors. Support for multimodule resources and translations (e.g., German dark mode) ensures flexibility. This API, familiar from Android, reduces boilerplate, letting developers focus on crafting polished, platform-agnostic UIs with minimal effort.

Lifecycle and View Models in Common Code

Compose Multiplatform now supports common lifecycle and view model APIs, enabling robust app architecture. Sebastian demonstrated a lifecycle logger tracking states like onCreate and onPause, with collectAsStateWithLifecycle ensuring efficient flow collection. In a view model demo, he outsourced mood-tracking logic, using a factory function to instantiate it. Integration with Koin for dependency injection and lifecycle-aware state collection streamlines development, making MVVM patterns viable across platforms without platform-specific workarounds.

Navigation for Cross-Platform Apps

Navigation, a cornerstone of multiplatform apps, is now available via a Jetpack Navigation-inspired API. Sebastian built a demo app with a fruit list and detail pages, using a NavHost and NavController for stack-based navigation. Features like window insets padding, animated transitions, and rememberSaveable for state persistence ensure a native feel. Type-safe routing with Kotlinx.serialization is in development, reducing errors. This API, while optional, simplifies porting Android navigation logic to iOS and beyond, enhancing developer productivity.

UI Testing and Community Feedback

A new common UI testing API allows writing tests once for all platforms. Sebastian showed a test verifying a composable’s text content, executed across targets. This reduces testing overhead, ensuring consistent behavior. He urged developers to try these features, citing the Compose Multiplatform portal (jb.compose) for documentation. Feedback via the Kotlin Slack and issue tracker is vital, as community input drives stabilization. With support for features like strong skipping mode and shared element transitions, Compose continues to evolve dynamically.

Links:

PostHeaderIcon [KotlinConf2024] Compose Multiplatform Evolves on iOS and Beyond

At KotlinConf2024, Sebastian Aigner, a JetBrains developer advocate, unveiled advancements in Compose Multiplatform, now in beta for iOS and alpha for web. Extending beyond business logic, Compose enables shared UI across platforms, integrating native capabilities. Sebastian showcased new common APIs—previews, resources, lifecycle, navigation, and UI testing—alongside iOS-specific enhancements like accessibility and scroll physics. Through live demos, he demonstrated how these features simplify cross-platform development, inviting developers to shape Compose’s future with feedback.

A Year of Progress for Compose Multiplatform

Since its debut at KotlinConf2023, Compose Multiplatform has matured significantly. Sebastian highlighted its role in sharing UI code, complementing Kotlin Multiplatform’s business logic sharing. On Android, it leverages Jetpack Compose; on desktop, it powers JetBrains Toolbox; and on iOS, it reached beta status at KotlinConf2024. The web target hit alpha, broadening its reach. Progress spans accessibility, navigation, text input, and scroll physics, with most features now stable or experimental, ready for developers to adopt and refine through real-world use.

iOS-Specific Enhancements

Compose Multiplatform on iOS now feels native, thanks to revamped scroll physics mirroring iOS’s overscroll and spring effects. Sebastian demonstrated accessibility improvements, with components supporting VoiceOver and gesture navigation out of the box, provided content descriptions are added. Interop with SwiftUI allows popups to span the screen, and window insets APIs handle notches and dynamic islands, ensuring full-screen rendering. These enhancements make iOS apps built with Compose visually and functionally indistinguishable from native counterparts, enhancing user experience.

Common Resources for Seamless UI

The new common resources API simplifies asset management. Sebastian showed how to add drawables and strings in a composeResources directory, accessed via a type-safe res object. In a demo, he added a banner image and a localized conference description, with Fleet auto-generating accessors. Support for multimodule resources and translations (e.g., German dark mode) ensures flexibility. This API, familiar from Android, reduces boilerplate, letting developers focus on crafting polished, platform-agnostic UIs with minimal effort.

Lifecycle and View Models in Common Code

Compose Multiplatform now supports common lifecycle and view model APIs, enabling robust app architecture. Sebastian demonstrated a lifecycle logger tracking states like onCreate and onPause, with collectAsStateWithLifecycle ensuring efficient flow collection. In a view model demo, he outsourced mood-tracking logic, using a factory function to instantiate it. Integration with Koin for dependency injection and lifecycle-aware state collection streamlines development, making MVVM patterns viable across platforms without platform-specific workarounds.

Navigation for Cross-Platform Apps

Navigation, a cornerstone of multiplatform apps, is now available via a Jetpack Navigation-inspired API. Sebastian built a demo app with a fruit list and detail pages, using a NavHost and NavController for stack-based navigation. Features like window insets padding, animated transitions, and rememberSaveable for state persistence ensure a native feel. Type-safe routing with Kotlinx.serialization is in development, reducing errors. This API, while optional, simplifies porting Android navigation logic to iOS and beyond, enhancing developer productivity.

UI Testing and Community Feedback

A new common UI testing API allows writing tests once for all platforms. Sebastian showed a test verifying a composable’s text content, executed across targets. This reduces testing overhead, ensuring consistent behavior. He urged developers to try these features, citing the Compose Multiplatform portal (jb.compose) for documentation. Feedback via the Kotlin Slack and issue tracker is vital, as community input drives stabilization. With support for features like strong skipping mode and shared element transitions, Compose continues to evolve dynamically.

Links:

PostHeaderIcon [KotlinConf2025] Building a macOS Screen Saver with Kotlin

A captivating tale of a developer’s obsession and a journey into the less-trodden paths of Kotlin development was shared by Márton Braun, a Developer Advocate at JetBrains. It all began with a simple, yet compelling, observation at a previous KotlinConf: a screen saver featuring the bouncing Kotlin logos, reminiscent of old DVD players. Upon discovering it was merely a pre-rendered video and not a true screen saver, a challenge was born. Márton set out to build his own, a native macOS application powered by Kotlin/Native.

The project became a masterclass in interoperability and a candid exploration of the quirks of native application development. Márton detailed how Kotlin/Native’s powerful interop capabilities made it surprisingly easy to call native macOS APIs. However, this ease was often contrasted with the complexities and frustrations of working with the macOS platform itself. The development process was a constant battle, with macOS often proving to be an uncooperative partner in this creative endeavor.

Márton’s perseverance paid off, resulting in a fully functional screen saver. He even managed to create two distinct implementations: one using the traditional AppKit framework and another built with Compose Multiplatform. This dual approach not only demonstrated the capabilities of both technologies but also provided a unique learning experience. He highlighted how the Compose version allowed him to focus on the core UI logic, abstracting away the intricacies of packaging the screen saver. This is a powerful testament to Compose Multiplatform’s potential for simplifying development and improving productivity.

The screen saver project serves as an excellent case study, showcasing Kotlin’s ability to venture into unconventional domains beyond mobile and backend development. Márton successfully demonstrated that with Kotlin and the right tools, developers can create truly native applications for platforms like macOS, leveraging their existing skills and knowledge. The flexibility of Kotlin Multiplatform allows developers to share code across platforms while still delivering a native user experience.

Ultimately, this project is a celebration of the unique possibilities that Kotlin offers. It encourages developers to think creatively about how they can apply the language to solve a wide range of problems and build applications for a diverse set of platforms. Márton’s story is an inspiring reminder that sometimes the most interesting and valuable projects are born from a simple desire to see something that doesn’t exist yet come to life.

Links:


PostHeaderIcon [KotlinConf2024] KotlinConf2024 Keynote: Powering the Future with Kotlin 2.0

KotlinConf2024, hosted in Copenhagen, welcomed 2,000 attendees and thousands online, kicking off with a vibrant keynote celebrating Kotlin’s evolution. Igor Tolstoy, Kotlin Project Lead at JetBrains, unveiled Kotlin 2.0, powered by the K2 compiler, promising double compilation speeds and robust multiplatform capabilities. Joined by speakers from Meta, Google, Amazon, and JetBrains, the keynote showcased Kotlin’s adoption in 20M lines of code at Meta, Google’s multiplatform push, and Amazon’s AWS SDK. From Compose Multiplatform to AI-driven tools, the event underscored Kotlin’s role in modern development, fueled by a thriving ecosystem.

A Global Stage for Kotlin Innovation

KotlinConf2024 buzzed with energy, uniting 2,000 in-person attendees, online viewers, and 71 global events across 37 countries. The conference featured five parallel sessions, lightning talks, a coach challenge, and code labs by Touchlab. A lively party with a live band and quiz, plus a closing panel, kept spirits high. Attendees donned T-shirts with words like “love,” “code,” and “nothing,” encouraged to form phrases for social media with #KotlinConf. Sponsors, including American Express, powered the event, with their booths bustling in the exhibit hall. The KotlinConf app, built with Compose Multiplatform, guided attendees, urging them to vote on sessions to shape future lineups.

Kotlin 2.0: The K2 Compiler Revolution

Igor Tolstoy introduced Kotlin 2.0, a milestone driven by the K2 compiler. This rewrite delivers a 2x compilation speed boost, slashing wait times for builds. Tested across 10M lines of code from 40 JetBrains and community projects, K2 ensures stability, with 18,000 developers and companies like Meta adopting early versions. The IntelliJ K2 mode, nearing beta, accelerates code highlighting by 1.8x, set to become default in IntelliJ 24.3. Avoiding major syntax changes, K2 fixes longstanding issues, enhancing code consistency and enabling faster language evolution without breaking existing projects.

Meta’s Kotlin Journey: Scaling Android

Eve Maler, an Android engineer from Meta, shared their Kotlin adoption, now spanning 20M lines of code. Since embracing Kotlin-first development three years ago, Meta reduced code by 10%, boosting reliability and developer preference. K2’s incremental compilation cut build times by up to 20%, with 95% of modules now using K2. Tools like IntelliJ’s J2K converter automate Java-to-Kotlin transitions, converting tens of thousands of lines weekly. Meta’s frameworks, including Litho and Dex optimizations, fully support Kotlin, paving the way for a mono-language Android experience, enhancing developer productivity.

Google’s Multiplatform Commitment

Jeffrey van Gogh from Google highlighted their investment in Kotlin, with 33M lines of code internally, doubling since 2023. Kotlin 2.0’s stability thrilled Google, who contributed compiler fixes and ported tools like Android Lint and Compose plugins to K2. The Compose compiler plugin now ships with Kotlin distributions, simplifying updates. Google announced official Android support for Kotlin Multiplatform (KMP) at Google I/O, enabling shared business logic across mobile, web, and desktop. Jetpack libraries like Room and DataStore now support KMP, with Android Studio integrating native KMP tooling, signaling a hybrid model balancing native and shared code.

Compose Multiplatform: Cross-Platform UI

Sebastian Aigner and Ekaterina Petrova celebrated Compose Multiplatform’s stability on Android and desktop, with iOS nearing beta and web in alpha. Used in thousands of apps, including McDonald’s, Compose reduced crashes and unified teams by sharing business logic. New APIs, like Jetpack Navigation and type-safe resources, enhance cross-platform development. iOS-specific improvements, such as VoiceOver integration and refined scroll physics, ensure native experiences. Web support leverages Kotlin/Wasm for high-performance browser apps. Compose’s flexibility lets developers choose how much code to share, from logic to full UI, meeting users across platforms.

Tooling Evolution: Amper and Fleet

JetBrains introduced Amper, a new build tool simplifying multiplatform project setup with minimal configuration. A Kotlin JVM project requires just one line, with dependencies easily added. Amper integrates with IntelliJ and Android Studio, offering quick fixes for project creation. Fleet, a preview multiplatform IDE, unifies Kotlin and Swift development, supporting Xcode projects and cross-language debugging. These tools automate environment checks, provide UI previews, and integrate JetBrains’ AI Assistant for code generation, streamlining workflows and lowering barriers for KMP adoption.

Ecosystem Growth: Libraries and AWS

The Kotlin ecosystem thrives, with a 50% rise in open-source multiplatform solutions. Libraries like Ktor, Serialization, and DateTime gain multiplatform APIs, while new additions like Kandy (data visualization) and DataFrame (data processing) expand capabilities. Amazon’s Julia detailed their AWS SDK for Kotlin, now generally available, built on Smithy for idiomatic APIs. Supporting hundreds of services, including Amazon Bedrock, the SDK leverages coroutines for pagination and streams. Amazon’s internal Kotlin use surged 6x, with teams like Prime Video reporting higher quality and productivity.

AI-Powered Development with JetBrains

Svetlana Isakova closed with JetBrains’ AI Assistant, written in Kotlin and integrated into IntelliJ and Fleet. It offers context-aware code completion, refactoring, and explanations, understanding project structures and dependencies. A Kotlin-specific language model, trained on open-source repositories, powers precise code generation, outperforming larger models in benchmarks. Available in IntelliJ 24.2, it supports multi-line completion and custom contexts. For enterprises, an on-premises version ensures compliance. Open-sourced datasets on Hugging Face further Kotlin’s AI advancements, equipping developers for the AI-driven future.

Links:

PostHeaderIcon [KotlinConf2023] KotlinConf’23 Closing Panel: Community Questions and Future Insights

KotlinConf’23 concluded with its traditional Closing Panel, an open forum where attendees could pose their burning questions to a diverse group of experts from the Kotlin community, including key figures from JetBrains and Google. The panel, moderated by Hadi Hariri, featured prominent names such as Roman Elizarov, Egor Tolstoy, Maxim Shafirov (CEO of JetBrains), Svetlana Isakova, Pamela Hill, Sebastian Aigner (all JetBrains), Grace Kloba, Kevin Galligan, David Blanc, Wenbo, Jeffrey van Gogh (all Google), Jake Wharton (Cash App), and Zac Sweers (Slack), among others.

The session was lively, covering a wide range of topics from language features and tooling to ecosystem development and the future of Kotlin across different platforms.

Kotlin’s Ambitions and Language Evolution

One of the initial questions addressed Kotlin’s overarching goal, humorously framed as whether Kotlin aims to “get rid of other programming languages”. Roman Elizarov quipped they only want to get rid of “bad ones,” while Egor Tolstoy clarified that Kotlin’s focus is primarily on application development (services, desktop, web, mobile) rather than systems programming.

Regarding Kotlin 2.0 and the possibility of removing features, the panel indicated a strong preference for maintaining backward compatibility. However, if a feature were to be considered for removal, it would likely be something with a clearly superior alternative, such as potentially older ways of doing things if newer, more robust mechanisms (like K2 compiler plugins replacing older KAPT mechanisms, hypothetically) became the standard. The discussion also touched on the desire for a unified, official Kotlin style guide and formatter to reduce community fragmentation around tooling, though Zac Sweers noted that even with an official tool, community alternatives would likely persist.

Multiplatform, Compose, and Ecosystem

A significant portion of the Q&A revolved around Kotlin Multiplatform (KMP) and Compose Multiplatform.
* Dart Interoperability: Questions arose about interoperability between Kotlin/Native (especially for Compose on iOS which uses Skia) and Dart/Flutter. While direct, deep interoperability wasn’t presented as a primary focus, the general sentiment was that both ecosystems are strong, and developers choose based on their needs. The panel emphasized that Compose for iOS aims for a native feel and deep integration with iOS platform features.
* Compose UI for iOS and Material Design: A recurring concern was whether Compose UI on iOS would feel “too Material Design” and not native enough for iOS users. Panelists from JetBrains and Google acknowledged this, stressing ongoing efforts to ensure Compose components on iOS adhere to Cupertino (iOS native) design principles and feel natural on the platform. Jake Wharton added that making Kotlin APIs feel idiomatic to iOS developers is crucial for adoption.
* Future of KMP: The panel expressed strong optimism for KMP’s future, highlighting its stability and growing library support. They see KMP becoming the default way to build applications when targeting multiple platforms with Kotlin. The focus is on making KMP robust and ensuring a great developer experience across all supported targets.

Performance, Tooling, and Emerging Areas

  • Build Times: Concerns about Kotlin/Native build times, especially for iOS, were acknowledged. The team is continuously working on improving compiler performance and reducing build times, with K2 expected to bring further optimizations.
  • Project Loom and Coroutines: Roman Elizarov reiterated points from his earlier talk, stating that Loom is excellent for migrating existing blocking Java code, while Kotlin Coroutines offer finer-grained control and structured concurrency, especially beneficial for UI and complex asynchronous workflows. They are not mutually exclusive and can coexist.
  • Kotlin in Gaming: While not a primary focus historically, the panel acknowledged growing interest and some community libraries for game development with Kotlin. The potential for KMP in this area was also noted.
  • Documentation: The importance of clear, comprehensive, and up-to-date documentation was a recurring theme, with the panel acknowledging it as an ongoing effort.
  • AI and Kotlin: When asked about AI taking developers’ jobs, Zac Sweers offered a pragmatic take: AI won’t take your job, but someone who knows how to use AI effectively might. The panel highlighted that Kotlin is well-suited for building AI tools and applications.

The panel concluded with the exciting reveal of Kotlin’s reimagined mascot, Kodee (spelled K-O-D-E-E), a cute, modern character designed to represent the language and its community. Pins of Kodee were made available to attendees, adding a fun, tangible takeaway to the conference’s close.

Links:

PostHeaderIcon [KotlinConf2023] Compose Multiplatform on iOS: Sharing UIs Across Ecosystems with Sebastian Aigner and Nikita Lipsky

At KotlinConf’23, Sebastian Aigner (Developer Advocate at JetBrains) and Nikita Lipsky (Software Developer for Kotlin at JetBrains) presented an exciting overview of Compose Multiplatform, focusing on its then-Alpha support for iOS. Their session detailed how this JetBrains initiative enables developers to write their user interface once in Kotlin and deploy it across Android, iOS, desktop, and web, fostering significant code sharing and development efficiency. The official documentation for Compose Multiplatform offers further insights.

The presentation began by recapping the classic Kotlin Multiplatform (KMP) use case, which allows sharing of business logic while retaining access to platform-specific APIs. Compose Multiplatform builds upon this by providing a solution for sharing the UI layer itself, addressing scenarios where building and maintaining separate native UIs for each platform is not feasible due to time, resources, or the desire for rapid market entry. While the talk focused on iOS and Android, the speakers emphasized that Compose Multiplatform also supports desktop (stabilized in late 2021) and web targets.

Architecture and Jetpack Compose Foundations

A key point underscored by Sebastian and Nikita was that Compose Multiplatform is built upon Jetpack Compose, Google’s modern declarative UI toolkit for Android, which is 100% Kotlin. This means developers familiar with Jetpack Compose can leverage their existing knowledge and skills to build UIs for iOS and other platforms. The JetBrains team collaborates closely with Google, regularly upstreaming changes to the Jetpack Compose repositories.

Nikita Lipsky delved into the architecture, explaining that official Jetpack Compose itself is already a Kotlin Multiplatform project at its core, with its lowest levels defining Kotlin Multiplatform sources. The composable function concept is an extension to the Kotlin language requiring compiler support, and the entire Compose system is managed by the Compose Runtime. For iOS, Compose Multiplatform renders UI elements by drawing directly onto a CAPI (Canvas API) provided by Skiko, a graphics library that abstracts over Skia (for Android and desktop) and CoreGraphics (for iOS). This allows for consistent rendering across platforms.

Live Demos and iOS Integration

The session featured live demonstrations showcasing the capabilities of Compose Multiplatform on iOS. Sebastian Aigner walked through a sample application, highlighting how standard Jetpack Compose code for UI elements, state management (using remember), layouts (like Column), and modifiers can be shared and run on iOS simulators and devices. He demonstrated features like text input, button interactions, and even integration with iOS-specific functionalities like the share sheet, emphasizing the goal of seamless interoperability.

The speakers also discussed the importance of providing solid accessibility integrations and ensuring smooth performance, even on high-refresh-rate displays, which is an ongoing area of focus for the Kotlin/Native and Compose Multiplatform teams. Interoperability with existing iOS UI code (SwiftUI and UIKit) was also presented as a key feature, allowing for gradual adoption. Developers can embed Compose Multiplatform views within existing SwiftUI applications or, conversely, embed native iOS views within a Compose Multiplatform UI. This flexibility is crucial for teams looking to integrate Compose into their established projects incrementally.

Getting Started and Future Outlook

Sebastian and Nikita provided clear guidance on how developers can start experimenting with Compose Multiplatform for iOS. They pointed to project templates, sample applications available on the Compose Multiplatform GitHub repository (including to-do list apps and code viewers), and updated KMP production samples that now include branches with Compose-based UI implementations. The new memory manager in Kotlin/Native was also mentioned as a significant improvement, simplifying multi-threaded programming for all Kotlin targets, including iOS.

While acknowledging that the iOS target was in Alpha and some areas were still works in progress, the overall message was one of excitement and a call to action for the community. They encouraged developers to explore the technology, provide feedback, and contribute to its evolution. The vision is a future where developers can agree on a delightful way to write UIs for all their target platforms using Kotlin.

Links:

PostHeaderIcon [KotlinConf2023] KotlinConf’23 Keynote: The Future of Kotlin is Bright and Multiplatform

KotlinConf’23 kicked off with an energizing keynote, marking a much-anticipated return to an in-person format in Amsterdam. Hosted by Hadi Hariri of JetBrains, the session brought together key figures from both JetBrains and Google, including Roman Elizarov, Svetlana Isakova, Egor Tolstoy, and Grace Kloba (VP Engineering for Android Developer Experience at Google), to share exciting updates and future directions for the Kotlin language and its ecosystem. The conference also featured a global reach with KotlinConf Global events in 41 countries. The main announcements from the keynote are also available in a blog post on the Kotlin blog.

The keynote celebrated Kotlin’s impressive growth, with statistics highlighting its widespread adoption, particularly in Android development where it’s the most popular language, used in over 95% of the top 1000 Android apps. A major focus was the upcoming Kotlin 2.0, centered around the new K2 compiler, which promises significant performance improvements, stability, and a foundation for future language evolution. The K2 compiler is nearing completion and is set to be released as Kotlin 2.0. The IntelliJ IDEA plugin will also adopt the K2 frontend, aligning with IntelliJ releases.

The Evolution of Kotlin: K2 Compiler and Language Features

The K2 compiler was a central theme of the keynote, marking a major milestone for Kotlin. This new compiler front-end, which also powers the IDE, is designed to be faster, more stable, and enable the development of new language features and tooling capabilities more rapidly. Kotlin 2.0, built on K2, is expected to bring these benefits to all Kotlin developers, enhancing both compiler performance and IDE responsiveness.

Looking beyond Kotlin 2.0, the speakers provided a glimpse into potential future language features that are under consideration. These included:
* Static Extensions: Allowing extension functions to be resolved statically, potentially improving performance and clarity.
* Collection Literals: Introducing a more concise syntax for creating collections, like using square brackets for lists, with efficient implementations.
* Name-Based Destructuring: Offering a more flexible way to destructure objects based on property names rather than just position.
* Context Receivers: A powerful feature for providing contextual information to functions in a more implicit and structured manner. This feature, however, is being approached carefully to ensure it aligns well with Kotlin’s principles.
* Explicit Fields: Providing more control over backing fields for properties.

The team emphasized a careful approach to evolving the language, ensuring new features are well-designed and maintainable. Compiler plugins were also highlighted as an avenue for extending Kotlin’s capabilities.

Kotlin in the Ecosystem: Google’s Investment and Multiplatform Growth

Grace Kloba from Google took the stage to reiterate Google’s strong commitment to Kotlin. She shared insights into Google’s investments in the Kotlin ecosystem, including the development of Kotlin Symbol Processing (KSP) and the continued focus on making Kotlin the default choice for Android development. Google officially supported Kotlin for Android development by early 2017. The Kotlin DSL is now the default for Gradle build scripts in Android Studio, enhancing developer experience with features like semantic highlighting and code completion. Google also actively contributes to the Kotlin Foundation and encourages the community to participate through programs like the Kotlin Foundation Grants Program, which focuses on supporting multiplatform libraries and frameworks.

Kotlin Multiplatform (KMP) was another major highlight, showcasing its growing maturity and adoption. The vision for KMP is to allow developers to share code across various platforms—Android, iOS, desktop, web, and server-side—while retaining the ability to write platform-specific code when needed. The keynote celebrated the increasing number of multiplatform libraries and tools, including KMM Bridge, that simplify KMP development. The future of KMP looks bright, with efforts to further improve the developer experience and expand its capabilities.

Compose Multiplatform and Emerging Technologies

The keynote also showcased the advancements in Compose Multiplatform, JetBrains’ declarative UI framework for building cross-platform user interfaces. A significant announcement was the alpha release of Compose Multiplatform for iOS, enabling developers to write their UI once in Kotlin and deploy it on both Android and iOS, and even desktop and web. This opens up new possibilities for code sharing and faster development cycles for mobile applications.

Finally, the team touched upon Kotlin’s expansion into emerging technologies like WebAssembly (Wasm). JetBrains is developing a new compiler backend for Kotlin targeting WebAssembly with its garbage collection proposal, aiming for high-performance Kotlin code in the browser. Experiments with running Compose applications in the browser using WebAssembly were also mentioned, hinting at a future where Kotlin could offer a unified development experience across an even wider range of platforms. The keynote concluded with an invitation for the community to dive deeper into these topics during the conference and to continue contributing to Kotlin’s vibrant ecosystem.

Links: