Posts Tagged ‘JetBrains’
[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:
[VoxxedDaysAmsterdam2026] Building AI Agents on the JVM: A Practical Exploration with Koog in Kotlin
Lecturer
Anton Arhipov is a Developer Advocate at JetBrains, where he engages with developers and shares insights on Kotlin, IntelliJ IDEA, and related technologies. He frequently speaks at conferences and contributes to JetBrains initiatives around AI tooling and agent frameworks.
Abstract
Anton Arhipov’s session at Voxxed Days Amsterdam 2026 introduces the construction of AI agents directly on the JVM using Koog, a lightweight Kotlin-native framework developed at JetBrains. Rather than relying on Python-based solutions, the talk demonstrates building tool-using LLM agents in Kotlin, emphasizing seamless integration with existing JVM products and domain models. Through live coding and detailed examination of core concepts—including communication with language models, tool registration, interaction loops, and the distinctive graph-based strategy DSL—participants gain insight into creating robust, reproducible agent workflows. The presentation culminates in a coding agent example that generates, compiles, and tests small programs, highlighting both opportunities and challenges when working with local and remote LLMs.
Why Build AI Agents on the JVM? Context and Motivations
The emergence of large language models has spurred interest in autonomous AI agents capable of tool use and iterative reasoning. While Python has historically dominated this space, Anton argues that language choice should serve the embedding context. For JVM-based products such as IntelliJ IDEA, TeamCity, or YouTrack, implementing agents in Python introduces significant overhead: external process management, serialization costs, and duplication of domain models. A native JVM solution reuses existing infrastructure, types, and libraries, improving efficiency and maintainability.
Koog originated from internal JetBrains efforts to embed agents into their tools. The framework’s tech lead documented the transition from Python to Kotlin, sparking discussions around perceived “skill issues” versus genuine architectural advantages. Anton stresses that the decision prioritizes integration over language fashion.
Fundamentals of Agent Architecture and the Interaction Loop
At a high level, an AI agent comprises an environment, a strategy (or “brain”), model providers, and user interaction. The workflow begins with a user request. The agent forwards a prompt to an LLM via a prompt executor (supporting OpenAI, Google, Ollama, and others). The model may respond with:
- An assistant message (plain text, terminating the loop), or
- A tool call, prompting the agent to invoke registered tools, feed results back to the LLM, and iterate until an assistant message appears.
This forms the agentic loop. Koog models agents as simple classes with a tools registry, configurable strategy, prompt, model selection, iteration limits, and a prompt executor. Predefined models and capability checks (e.g., tool calling support) simplify setup.
Anton demonstrates a basic happy-path agent that writes a Kotlin program (initially a “Hello World,” later a Snake game using Java Swing). Early iterations reveal the need for tools: file system operations, shell execution via Gradle, and careful prompting to enforce compilation and verification steps. Live runs expose humorous LLM behaviors, such as generating wrapper files or hallucinating results, underscoring the importance of robust system prompts, validation, and verification.
Tool Integration, Local Models, and Observed Challenges
Tools in Koog can be registered via a registry or supplied as annotated functions with descriptions for better LLM guidance. The session explores interactions with local models (e.g., small Mistral variants via Ollama) versus remote APIs. Local models offer speed and privacy but exhibit unreliability in tool calling—hallucinating results, ignoring descriptions, or fabricating outputs when tool results appear implausible (such as unrealistic temperature values in Kelvin).
Examples illustrate how insufficient tool descriptors or conflicting instructions lead to unexpected behavior. Anton shows cases where models call tools multiple times, reject their own outputs, or produce inconsistent results across runs, even with identical prompts. These observations highlight that reliable tool calling remains critical for effective agents and often requires significant prompt engineering and workflow safeguards.
The Strategy DSL: Graph-Based Control for Determinism and Reproducibility
A standout feature of Koog is its strategy DSL, which models agent behavior as a reproducible graph rather than a purely LLM-driven loop. The default strategy handles basic LLM calls and tool invocation, but custom strategies allow sophisticated workflows.
Nodes represent actions (e.g., calling the LLM, processing tool results), while edges use predicates or conditions (e.g., “if tool call, proceed to execution node”). Graphs support sequencing, branching, and chaining multiple strategies—such as enforcing a planning stage before implementation and verification. Type safety in Kotlin ensures nodes and edges compose correctly, with the compiler assisting in workflow construction.
Anton walks through building a simple parsing-and-increment graph, then extends the concept to more realistic scenarios involving structured outputs for plans. By validating plans against domain models and potentially generating dynamic sub-strategies, developers introduce determinism into otherwise stochastic LLM processes. Structured outputs improve reliability when deserializing LLM responses into typed objects like plan items.
This graph approach distinguishes Koog from many other frameworks, enabling complex, auditable, and testable agent logic while leveraging Kotlin’s strengths.
Live Coding a Coding Agent and Practical Takeaways
The session features extensive live exploration, including attempts to generate a Snake game with requirements for Gradle, specific versions, compilation verification, and no mistakes. Successes and failures illustrate real-world agentic challenges: hallucinated tool calls, skipped verification steps, and the need for precise instructions. Anton shares that even with “make no mistakes” in the prompt, outcomes vary across models and runs.
The talk concludes with a repository of examples and reiterates Koog’s multi-platform nature, adapter support for various model providers, and the power of the strategy DSL. While 45 minutes cannot cover advanced topics, the presentation equips attendees with foundational knowledge to experiment with building JVM-native agents.
Code Sample: Basic Agent Setup in Koog (Kotlin)
val executor = OpenAI.promptExecutor { /* config */ }
val agent = Agent {
promptExecutor = executor
systemPrompt = "You are a helpful Kotlin developer..."
model = OpenAIModels.GPT_4O
tools = toolRegistry {
include(FileSystemProvider())
include(ShellExecutor())
}
}
agent.run("Write a Kotlin program to print Hello World")
Code Sample: Simple Strategy Graph
val strategy = strategy<String, Int> {
start forwardingTo parseNode forwardingTo incrementNode
}
val parseNode = node { input: String -> input.toInt() }
val incrementNode = node { input: Int -> input + 1 }
These examples capture the framework’s emphasis on readability and type-safe composition.
In summary, Anton Arhipov provides a grounded, pragmatic overview of constructing AI agents on the JVM. Koog enables developers to harness LLM capabilities within familiar Kotlin and JVM ecosystems, with the strategy DSL offering a powerful mechanism for controlling complexity. While challenges with model reliability persist—especially locally—the framework’s design promotes integration, reproducibility, and incremental improvement of agentic systems.
Links:
[MunchenJUG] Strategic Approaches to Mitigating Software Defects in Java Development (08/Jul/2025)
Lecturer
Tagir Valeev is a distinguished software engineer and a prominent figure in the Java ecosystem, currently serving as a Technical Lead at JetBrains. His professional focus lies in the advancement of Java static analysis within IntelliJ IDEA, a critical tool for automated bug detection. Tagir is an OpenJDK committer and a Java Champion, honors that reflect his deep technical contributions to the language’s core. He is also the author of the authoritative text “100 Java Mistakes and How to Avoid Them”, which systematically classifies common programming errors.
Abstract
The pervasive nature of software defects necessitates a multi-layered defense strategy rather than a single technical solution. This article examines the methodology for reducing bug density in Java applications by exploring the classification of “tiny but disastrous” repeatable errors. Central to this analysis is the “Swiss Cheese Model” of software quality, which posits that a combination of independent defensive layers—such as static analysis, unit testing, and code review—is significantly more effective than over-investing in any single approach. By investigating real-world code snippets and the limitations of 100% test coverage, this study provides a framework for developers to understand the trade-offs and synergies between modern quality assurance tools.
The Taxonomy of Modern Software Defects
Software bugs vary significantly in complexity and scope. While large-scale architectural failures often make for compelling post-mortem analyses, the majority of developer time is occupied by tiny, local errors. These defects, though appearing minor—such as a single incorrect character or an erroneous one-line construct—can lead to catastrophic system failures in production.
The critical characteristic of these small-scale bugs is their repeatability. Because they recur across different projects and developers, they can be systematically classified and studied. Understanding these patterns allows developers to proactively identify potential pitfalls during the implementation phase. Furthermore, repetition is often the catalyst for such errors; copying and pasting code blocks without rigorous verification is a frequent source of “repeatable” defects that elude casual observation.
The Limitations of Individual Quality Assurance Layers
A common misconception in software engineering is the belief in a “Silver Bullet”—a single technique, such as Test-Driven Development (TDD) or advanced static analysis, that can eliminate all defects. Empirical evidence suggests that each individual layer of defense eventually reaches a plateau of efficiency.
The Paradox of Total Test Coverage
Striving for 100% test coverage often results in diminishing returns. In complex libraries, achieving the final percentages of coverage can require significantly more effort than the actual implementation of the feature. Moreover, high coverage metrics do not guarantee the absence of bugs; code that is executed during a test run can still contain logical flaws that the test assertions fail to capture.
Static Analysis and Code Review
Static analysis tools like FindBugs (now SpotBugs) and the integrated analyzers in modern IDEs offer the “revelation” of finding bugs without code execution. However, these tools are not infallible, as they are subject to both false positives—reporting errors where none exist—and false negatives—failing to detect actual issues. Similarly, code reviews and pair programming provide essential human oversight, but they are limited by the reviewers’ cognitive load and familiarity with the specific bug patterns being introduced.
The Swiss Cheese Model of Defensive Programming
The most effective strategy for defect mitigation is derived from the “Swiss Cheese Model,” originally applied in aviation and medical engineering. This model represents each defensive technique as a slice of Swiss cheese; while each slice has “holes” (limitations or specific types of bugs it cannot catch), stacking multiple slices significantly reduces the likelihood that a defect will pass through all layers into production.
In a robust development pipeline, these layers typically include:
- Static Analysis: Catching syntactical and common logical patterns early.
- Code Review/Pair Programming: Leveraging peer insight to spot errors that automated tools might miss.
- Unit and Integration Testing: Verifying functional requirements and edge cases.
- Emerging AI Tools: Utilizing modern large language models to provide an additional, albeit experimental, layer of scrutiny.
By distributing resources across these diverse layers, teams can ensure that if one layer fails, another is likely to intervene.
Conclusion
Mitigating software bugs is an “endless struggle” that cannot be completely won, but it can be managed through strategic, diversified defenses. Rather than seeking a single bulletproof solution, developers should focus on understanding repeatable bug patterns and implementing a multi-layered quality assurance process. The integration of specialized static analysis, thorough peer review, and balanced testing creates a resilient ecosystem capable of catching disastrous errors before they impact the end user.
Links:
[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:
[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:
[KotlinConf2024] Kotlin Multiplatform Powers Google Workspace
At KotlinConf2024, Jason Parachoniak, a Google Workspace engineer, detailed Google’s shift from a Java-based multiplatform system to Kotlin Multiplatform (KMP), starting with Google Docs. For over a decade, Workspace has relied on shared code for consistency across platforms, like Gmail’s synchronization layer. Jason shared how KMP enhances this approach, leveraging Kotlin’s ecosystem for better performance and native interop. The talk highlighted lessons from the migration, focusing on build efficiency, runtime latency, and memory challenges, offering insights for large-scale KMP adoption.
Why Kotlin Multiplatform for Workspace
Google Workspace has long used multiplatform code to ensure consistency, such as identical email drafts across devices in Gmail or uniform document models in Docs. Jason explained that their Java-based system, using transpilers like J2ObjC, was effective but complex. KMP offers a modern alternative, allowing developers to write Kotlin code that compiles to native platforms, improving runtime performance and ecosystem integration. By targeting business logic—everything beyond the UI—Workspace ensures native-feel apps while sharing critical functionality, aligning with user expectations for productivity tools.
Google Docs: The Migration Testbed
The migration began with Google Docs, chosen for its heavily annotated codebase, which tracks build performance, latency, and memory usage. Jason described how Docs is rolling out on KMP, providing metrics to refine the Kotlin compiler and runtime. This controlled environment allowed Google to compare KMP against their legacy system, ensuring parity before expanding to other apps. Collaboration with JetBrains and the Android team has been key, with iterative improvements driven by real-world data, setting a foundation for broader Workspace adoption.
Tackling Build Performance
Build performance posed challenges, as Google’s Bazel-like system resembles clean builds, unlike Gradle’s incremental approach. Jason recounted a 10-minute build time increase after a Kotlin Native update optimized LLVM bitcode generation. While this improved binary size and speed, it slowed builds. Profiling revealed a slow LLVM pass, already fixed in a newer version. Google patched LLVM temporarily, reducing build times from 30 to 8 minutes, and is working with JetBrains to update Kotlin Native’s LLVM, prioritizing stability alongside the K2 compiler rollout.
Optimizing Runtime Latency
Runtime latency, critical for Workspace apps, required Kotlin Native garbage collection (GC) tweaks. Jason noted that JetBrains proactively adjusted GC before receiving Google’s metrics, but further heuristics were needed as latency issues emerged. String handling in the interop layer also caused bottlenecks, addressed with temporary workarounds. Google is designing long-term fixes with JetBrains, ensuring smooth performance across platforms. These efforts highlight KMP’s potential for high-performance apps, provided runtime challenges are systematically resolved through collaboration.
Addressing Memory Usage
Memory usage spikes were a surprise, particularly between iOS 15 and 16. Jason explained that iOS 16’s security-driven constant pool remapping marked Kotlin Native’s vtables as dirty, consuming megabytes of RAM. Google developed a heap dump tool generating HPROF files, compatible with IntelliJ’s Java heap analysis, to diagnose issues. This tool is being upstreamed to Kotlin Native’s runtime, enhancing debugging capabilities. These insights are guiding Google’s memory optimization strategy, ensuring KMP meets Workspace’s stringent performance requirements as the migration expands.
Links:
[KotlinConf2025] Closing Panel
The concluding panel of KotlinConf2025 offered a vibrant and candid discussion, serving as the capstone to the conference. The diverse group of experts from JetBrains, Netflix, and Google engaged in a wide-ranging dialogue, reflecting on the state of Kotlin, its evolution, and the path forward. They provided a unique blend of perspectives, from language design and backend development to mobile application architecture and developer experience. The conversation was an unfiltered look into the challenges and opportunities facing the Kotlin community, touching on everything from compiler performance to the future of multiplatform development.
The Language and its Future
A central theme of the discussion was the ongoing development of the Kotlin language itself. The panel members, including Simon from the K2 compiler team and Michael from language design, shared insights into the rigorous process of evolving Kotlin. They addressed questions about new language features and the careful balance between adding functionality and maintaining simplicity. A notable point of contention and discussion was the topic of coroutines and the broader asynchronous programming landscape. The experts debated the best practices for managing concurrency and how Kotlin’s native features are designed to simplify these complex tasks. There was a consensus that while new features are exciting, the primary focus remains on stability, performance, and enhancing the developer experience.
The State of Multiplatform Development
The conversation naturally shifted to Kotlin Multiplatform (KMP), which has become a cornerstone of the Kotlin ecosystem. The panelists explored the challenges and successes of building applications that run seamlessly across different platforms. Representatives from companies like Netflix and AWS, who are using KMP for large-scale projects, shared their experiences. They discussed the complexities of managing shared codebases, ensuring consistent performance, and maintaining a robust build system. The experts emphasized that while KMP offers immense benefits in terms of code reuse, it also requires a thoughtful approach to architecture and toolchain management. The panel concluded that KMP is a powerful tool, but its success depends on careful planning and a deep understanding of the underlying platforms.
Community and Ecosystem
Beyond the technical discussions, the panel also reflected on the health and vibrancy of the Kotlin community. A developer advocate, SA, and others spoke about the importance of fostering an inclusive environment and the role of the community in shaping the language. They highlighted the value of feedback from developers and the critical role it plays in guiding the direction of the language and its tooling. The discussion also touched upon the broader ecosystem, including the various libraries and frameworks that have emerged to support Kotlin development. The panel’s enthusiasm for the community was palpable, and they expressed optimism about Kotlin’s continued growth and adoption in the years to come.
Links:
[KotlinConf2024] Revamping Kotlin’s Type System: A Vision
At KotlinConf2024, Ross Tate, a programming language researcher, exposed critical flaws in Kotlin’s type system, including undecidability and unsoundness, which can crash compilers or misclassify types. Collaborating with the Kotlin team, he proposed pragmatic restrictions to ensure reliability and introduced extensions like categorized union types for error handling. Ross shared a long-term strategy to make type checking sound, decidable, and extensible, inviting developers to shape Kotlin’s future through feedback, balancing theory with practical needs.
Uncovering Type System Flaws
Kotlin’s type system, while powerful, is flawed. Ross revealed its undecidability, where subtyping questions can encode Turing machines, causing unpredictable compiler behavior. This stems from Java’s similar issues, as proven by Ru Gregori’s research. Unsoundness is equally concerning—Ross demonstrated a program tricking the compiler into treating an Int as a String using type projections and nulls. These flaws, also present in Java and Scala, undermine reliability, making robust type checking a priority for Kotlin’s evolution.
The Dangers of Unsound Programs
Unsoundness risks memory corruption. Ross presented a fast integer-to-string converter that, without proper checks, could introduce vulnerabilities. Initially, Kotlin’s compiler rejected it, as Int isn’t a subtype of String. However, adding a magic configuration with existential type projections bypassed this safeguard, fooling the compiler. Adapted from Java and Scala examples, this highlights a shared problem. Ross stressed that revamping Kotlin involves eliminating such unintentional backdoors, ensuring only explicit casts compromise safety, preserving developer trust.
Type Inference Challenges
Type inference, vital for Kotlin’s usability, struggles with decomposition. Ross showed a tree class for sorting adjectives, which type-checks when whole but fails when split into smaller parts. The compiler couldn’t infer the branch type B, violating the principle that breaking programs into smaller units shouldn’t break type checking. Co-variance adjustments revealed a principal type (Nothing), but Java’s undecidable subtyping influenced Kotlin’s conservative design. Ross aims to fix this, ensuring inference supports modular, predictable codebases.
Pragmatic Restrictions for Decidability
To address undecidability, Ross proposed separating interfaces into “shapes” (type constraints, like Comparable) and “materials” (data types, like function interfaces). Analyzing 135 million lines of Java code, he found all interfaces fit one category, making subtyping decidable in practice. By embedding this pattern into Kotlin, type checking becomes reliable and efficient, running in polynomial time. This separation also improves usability, as hovering over a variable avoids irrelevant types like Comparable<*>, aligning with developer expectations.
Categorized Union Types for Errors
Ross previewed categorized union types, restricted to prevent exponential type-checking costs. Types are grouped into categories (e.g., Null, Any, Error), allowing unions only across categories, like T | NoSuchValue. This enables distinguishing custom errors from null, as shown in a lastOrError function. Operators like !. (propagate error), !: (replace error), and !! (throw exception) mirror nullable syntax, simplifying libraries. Q&A clarified errors remain manipulable values, enhancing flexibility without compromising efficiency.
Enhancing Error Handling
The proposed error system differentiates errors (values) from exceptions (control flow). Error classes include a throw method for conversion to exceptions, while Throwable subclasses form distinct categories, enabling multi-catch via union types. A try-catch variant infers the union of thrown types, supporting exhaustive checks with Java’s typed exceptions. This design, inspired by Rust’s result pattern, balances explicit error handling with backward compatibility, addressing interoperability concerns raised in Q&A about Java’s ecosystem.
Shaping Kotlin’s Future
Ross emphasized that these changes are experimental, requiring prototypes, trials, and community input. Challenges like name resolution and method overloading need strategies, and features must cohere. He invited feedback via issue KT-68296, especially on error naming (e.g., “Error” vs. “Sentinel”) to avoid Java confusion. The talk underscored Kotlin’s shift toward optimizing its own experience, even at the cost of some Java interop precision, ensuring a reliable, extensible type system for future developers.
Links:
[KotlinConf2024] DataFrame: Kotlin’s Dynamic Data Handling
At KotlinConf2024, Roman Belov, JetBrains’ Kotlin Moods group leader, showcased Kotlin DataFrame, a versatile library for managing flat and hierarchical data. Designed for general developers, not just data scientists, DataFrame handles CSV, JSON, and object subgraphs, enabling seamless data transformation and visualization. Roman demonstrated its integration with Kotlin Notebook for prototyping and a compiler plugin for dynamic type inference, using a KotlinConf app backend as an example. This talk highlighted how DataFrame empowers developers to build robust, interactive data pipelines.
DataFrame: A Versatile Data Structure
Kotlin DataFrame redefines data handling for Kotlin developers. Roman explained that, unlike traditional data classes, DataFrame supports dynamic column manipulation, akin to Excel tables. It can read, write, and transform data from formats like CSV or JSON, making it ideal for both analytics and general projects. For a KotlinConf app, DataFrame processed session data from a REST API, allowing developers to filter, sort, and pivot data effortlessly, providing a flexible alternative to rigid data class structures.
Prototyping with Kotlin Notebook
Kotlin Notebook, a plugin for IntelliJ IDEA Ultimate, enhances DataFrame’s prototyping capabilities. Roman demonstrated creating a scratch file to fetch session data via Ktor Client. The notebook’s auto-completion for dependencies, like Ktor or DataFrame, simplifies setup, downloading the latest versions from Maven Central. Interactive tables display hierarchical data, and each code fragment updates variable types, enabling rapid experimentation. This environment suits developers iterating on ideas, offering a low-friction way to test data transformations before production.
Dynamic Type Inference in Action
DataFrame’s compiler plugin, built for the K2 compiler, introduces on-the-fly type inference. Roman showed how it analyzes a DataFrame’s schema during execution, generating extension properties for columns. For example, accessing a title column in a sessions DataFrame feels like using a property, with auto-completion for column names and types. This eliminates manual schema definitions, streamlining data wrangling. Though experimental, the plugin cached schemas efficiently, ensuring performance, as seen when filtering multiplatform talk descriptions.
Handling Hierarchical Data
DataFrame excels with hierarchical structures, unlike flat data classes. Roman illustrated this with nested JSON from the KotlinConf API, converting categories into a DataFrame with grouped columns. Developers can navigate sub-DataFrames within cells, mirroring data class nesting. For instance, a category’s items array became a sub-DataFrame, accessible via intuitive APIs. This capability supports complex data like object subgraphs, enabling developers to transform and analyze nested structures without cumbersome manual mappings.
Building a KotlinConf Schedule
Roman walked through a practical example: creating a daily schedule for KotlinConf. Starting with session data, he converted startsAt strings to LocalDateTime, filtered out service sessions, and joined room IDs with room names from another DataFrame. Sorting by start time and pivoting by room produced a clean schedule, with nulls replaced by empty strings. The resulting HTML table, generated directly in the notebook, showcased DataFrame’s ability to transform REST API data into user-friendly outputs, all with concise, readable code.
Visualizing Data with Kandy
DataFrame integrates with Kandy, JetBrains’ visualization library, to create charts. Roman demonstrated analyzing GitHub commits from the Kotlin repository, grouping them by week to plot commit counts and average message lengths. The resulting chart revealed trends, like steady growth potentially tied to CI improvements. Kandy’s simple API, paired with DataFrame’s data manipulation, makes visualization accessible. Roman encouraged exploring Kandy’s website for examples, highlighting its role in turning raw data into actionable insights.
DataFrame in Production
Moving DataFrame to production is straightforward. Roman showed copying notebook code into IntelliJ’s EAP version, importing the generated schema to access columns as properties. The compiler plugin evolves schemas dynamically, supporting operations like adding a room column and using it immediately. This approach minimizes boilerplate, as seen when serializing a schedule to JSON. Though the plugin is experimental, its integration with K2 ensures reliability, making DataFrame a practical choice for building scalable backend systems, from APIs to data pipelines.
Links:
[KotlinConf2024] The Best Programmer I Know: Insights from KotlinConf2024
At KotlinConf2024, Daniel Terhorst-North shared a heartfelt reflection on the traits of exceptional programmers, drawing from his 30-year career and a colleague who embodies these qualities. Without a formal degree, this programmer excels by starting tasks, prioritizing outcomes, simplifying solutions, choosing tools wisely, and fostering team growth. Daniel’s narrative, blending personal anecdotes and practical advice, inspires developers to cultivate curiosity, resilience, and empathy while building impactful software.
Starting with Action
Great programmers dive into tasks without hesitation. Daniel recounted how his colleague tackles projects by starting anywhere, embracing the unknown. This “just start” mindset counters procrastination, which Daniel admits to masking as research. By iterating rapidly—trying, failing, and learning—programmers overcome perfectionism and ego. Daniel likened progress to navigating a grid city, moving stoplight to stoplight, accepting delays as part of the journey, ensuring steady advancement toward solutions.
Prioritizing Outcomes Over Code
Building products, not just code, defines effective programming. Daniel emphasized that emotional investment should focus on outcomes, not code, which is merely a means. The best programmers write minimal, high-quality code, holding no attachment to it. Studying the domain reveals user needs, as Daniel learned during a financial project where ignorance of CDOs led to unintended consequences. Observing users’ frustrations, like manual data entry, uncovers opportunities to eliminate friction, enhancing product value.
Simplifying the Complex
Exceptional programmers see through complexity to find simple solutions. Daniel shared a story of his colleague bypassing bloated Java web servers by writing a lean one from the HTTP spec. In another case, a team debating JSON libraries was guided to implement a simple interface for nine serialized objects, avoiding heavy dependencies. Writing clear documentation, like a streamlined README, drives “embarrassment-driven refactoring,” ensuring solutions remain concise and maintainable, solving only what’s necessary.
Choosing Tools for the Problem
Tool selection should prioritize the product, not team familiarity. Daniel recounted a team learning Scala to sketch code quickly, despite no prior experience, proving adaptability trumps comfort. He advocated for polyglot programming, using Advent of Code to learn Rust and Go, which broadened his problem-solving perspective. By minimizing cognitive distance between problem and solution, as Rich Hickey’s “Simple Made Easy” suggests, programmers select tools that evolve with project needs, ensuring flexibility.
Fostering Team Care
Great programmers uplift their teams. Daniel finds joy in pairing and teaching, inspired by an XKCD comic about the “lucky 10,000” who learn something new daily. He creates environments for learning, drawing from jiu-jitsu’s teaching-first philosophy. Sending teams home to rest, as Daniel advocates, boosts effectiveness, while assuming positive intent—per Virginia Satir’s family therapy principle—builds empathy, transforming conflicts into opportunities for collaboration and growth.
Building Psychological Safety
Psychological safety, per Amy Edmondson’s research, is vital for high-performing teams. Daniel explained that safe teams encourage saying “I don’t know,” seeking help, and disagreeing without fear. A study of surgical teams showed high performers report more errors, reflecting trust, not incompetence. In software, this translates to teams where questions spark learning, help fosters collaboration, and dissent drives improvement, creating dynamic, challenging environments that fuel innovation.
Growing as a Programmer
Personal growth sustains programming excellence. Daniel urged developers to stay current through communities, contribute actively, and remain skeptical of trends like AI hype. Practicing via challenges like Advent of Code sharpens skills, as Daniel found when switching languages mid-puzzle. Balancing work with physical activities, like running, and prioritizing rest prevents burnout. By embracing continual learning and kindness, programmers evolve, as Daniel’s colleague demonstrates, into impactful, resilient professionals.