首页›发现›编程›Kotlin Blog

Kotlin Blog

RSS运行正常
访问网站
文章数15
更新频率每周约 1.5 篇
最近抓取27分钟前
订阅方式RSS
订阅地址https://blog.jetbrains.com/kotlin/feed/

最近的文章

订阅后,这些文章和以后的新文章都会出现在你的阅读器里

Kotlin 2.5.0 Released

AI 摘要Kotlin 2.5.0 has been released, marking Kotlin/Wasm as stable and introducing highlights such as stable name-based destructuring, an unused return value checker, Java 28 support for Kotlin/JVM, Swift export in Beta for Kotlin/Native, and a new publication format for Kotlin Multiplatform libraries. The release is available through the latest versions of IntelliJ IDEA and Android Studio, via build script updates, or as a command-line compiler from GitHub. Additionally, the team launched a monthly Kotlin Security Newsletter covering security fixes across Kotlin and its ecosystem.

Value classes in Kotlin 2.5.0 and beyond

AI 摘要Kotlin 2.5.0 introduces full value classes in Alpha stage—immutable classes with an unrestricted number of primary properties that work on all platforms and JVM versions, with the option to compile to JVM value classes starting with JDK 28 to leverage Project Valhalla performance benefits. Unlike data classes, they generate only equals(), hashCode(), and toString(), use name-based destructuring instead of position-based, and will get ergonomic update syntax ('a better copy') expected in Kotlin 2.6.0, while existing inline value classes remain supported and become multiplatform with the inline modifier in Kotlin 2.5.20. Since these features are still Alpha and not production-ready, JetBrains encourages community experimentation and feedback before the final design is committed.

Compose Multiplatform 1.13.0 Released

AI 摘要Compose Multiplatform 1.13.0 has been released, bringing improvements to iOS, web, and desktop development. Key highlights include content-based sizing for Compose views embedded in SwiftUI and UIKit, an experimental WebGL interoperability API for rendering custom graphics and JavaScript content like three.js scenes, and faster desktop startup via AppCDS or AOT caching (with cold starts up to 4.8× faster in benchmarks). The release also incorporates updates from Jetpack Compose 1.13, such as the state-based BasicTextField and stabilized FlexBox, Grid, and LazyLayoutCacheWindow APIs.

Kodee’s Kotlin Roundup: Build Your Next App With One Prompt, a New Coroutines Course, and Kotlin on LinkedIn

AI 摘要This Kotlin roundup highlights a demo of building and publishing a multiplatform app from a single prompt using an AI coding agent, along with Kotlin Toolchain 0.14's new features like one-command iOS publishing, MCP/AGENTS.md agent setup, and over three times faster dependency resolution. It also announces a free 4-hour Kotlin Coroutines course, Kotlin's new LinkedIn page, a Kotlin Security Newsletter, Kotlin Benchmark 2.0 results for AI agents, and Kotlin 2.5.0-RC2 with name-based destructuring, an unused return value checker, and Java 28 support. Additional updates cover Exposed 1.6.0's What's New page with R2DBC support, Advent of Code 2026 for practicing Kotlin, and various community resources, videos, and contests.

Introducing the Kotlin Security Newsletter

AI 摘要The Kotlin team at JetBrains is launching the Kotlin Security Newsletter, a monthly digest that consolidates security fixes for Kotlin and its ecosystem (including the kotlinx libraries, Compose Multiplatform, Ktor, and Exposed), along with broader ecosystem security news affecting Android, server-side, and Kotlin Multiplatform development. The newsletter responds to a sharp rise in security updates—the team published 10 fixes this year versus one in each of the previous two years, mirroring an industry-wide trend accelerated by AI-assisted security research. Each digest will also occasionally announce community security events, and readers are asked to report vulnerabilities via the Kotlin issue tracker or security@jetbrains.com, following JetBrains' coordinated disclosure policy.

Advent of Code 2026: ’Tis the Season to Code in Kotlin

AI 摘要The Kotlin team invites developers to join Advent of Code 2026 with four days of livestreams (December 1–4) hosted by Sebastian Aigner and guests, community activities in the Kotlinlang Slack, and leaderboard competitions with exclusive prizes. To be eligible for prizes, participants must solve at least three puzzles in Kotlin without AI, publish their solutions on GitHub with the aoc-2026-in-kotlin topic, and include contact information in their profile. The article also encourages solving puzzles independently and provides resources such as the Advent of Code Kotlin template to help participants get started.

Kotlin Heroes: Episode 15 – Anniversary Edition

AI 摘要Kotlin Heroes: Episode 15 is a special anniversary edition online programming contest celebrating Kotlin's 15th birthday, where participants solve algorithmic problems in Kotlin. The practice round opens on December 1, 2026, and the main contest takes place on December 8, 2026, offering cash prizes for the top three finishers and exclusive anniversary T-shirts for the top 50 participants plus a raffle for anyone who solves at least one problem. The contest emphasizes human problem-solving, with AI-assisted problem solving restricted during the main event.

Kotlin Benchmark 2.0: How AI Coding Agents Handle Harder Tasks and Closed-Source Code

AI 摘要JetBrains has released an updated Kotlin Benchmark with harder, repository-level tasks requiring multi-file changes, plus 30 closed-source tasks from private JetBrains repositories to counter data contamination, and restricted network access for open-source tasks to prevent reward hacking. The leaderboard now includes new models such as open-weight Kimi and DeepSeek, and reports average cost, tokens, and steps per task alongside resolution rate. In the latest results, Claude Code with Opus 5.5 achieved the best full-suite resolution rate (75.3%), while Claude Code with Fable 5.1 led on open-source tasks (86.2%) and Antigravity CLI with Gemini 3.8 Flash performed best on closed-source tasks (60%).

Kotlin Toolchain 0.14: Agentic Development and iOS Publishing

AI 摘要Kotlin Toolchain 0.14 introduces a streamlined `kotlin publish testflight` command that guides developers through publishing iOS apps to TestFlight, along with improved agentic development support such as auto-generated agent configuration files and Kotlin agent skills that reduce token consumption. The release also includes IDE visibility for template errors and warnings, native Android Java 8+ API desugaring, customizable external tool download URLs for corporate mirrors, and significantly faster dependency resolution (over 3x faster first imports).

The Kotlin Multiplatform Contest Is Open: Win a Trip to KotlinConf

AI 摘要The Kotlin Multiplatform Contest is open again, inviting students and recent graduates to build cross-platform projects with Kotlin Multiplatform (KMP); the top three winners will receive a trip to KotlinConf 2027 in Kraków, Poland, while all other valid entrants get Kotlin souvenirs. Projects—such as games, developer utilities, or AI experiments—must be created specifically for the contest, use KMP, and run on at least two platforms, with submissions due by December 7, 2026 and winners announced on December 21, 2026. To support newcomers, the contest page offers resources including the new open-source KMP Contest Starter Kit, which provides an AI-assisted path from idea to app.

Kodee’s Kotlin Roundup: Shipaton 2026 Winners, Kotlin 2.5.0-Beta2, and KotlinConf 2027

AI 摘要This Kotlin roundup announces the Shipaton 2026 winners, with three Kotlin Multiplatform apps winning JetBrains' Ship Kotlin Everywhere awards, and highlights Kotlin 2.5.0-Beta2, which brings stable name-based destructuring, an unused return value checker, Java 28 support, and Swift export in Beta. It also covers the State of Kotlin 2026 report marking the language's 15th anniversary, the news that KotlinConf 2027 will be held in Kraków with the call for speakers open, and the upcoming requirement for the Kotlin compiler to run on JDK 17 or newer. Additionally, it promotes Kotlin Toolchain 0.13, the Kotlin Multiplatform Contest offering trips to KotlinConf as prizes, and multiplatform libraries available on Klibs.io.

Google Summer of Code 2026 With the Kotlin Foundation: Recap

AI 摘要The Kotlin Foundation completed its fourth year in Google Summer of Code 2026, with two projects successfully finishing. Ayako Hayasaka added WebAssembly tail-call support to the Kotlin/Wasm backend, making recursive programs up to 4.3x faster and even fixing a related bug in Google's V8 engine. Mark Seif Khalil built an automated database mapping where Kotlin is taught worldwide, creating a reusable foundation for tracking Kotlin's presence in education.

What Makes a Great KotlinConf Proposal?

AI 摘要The article announces that the KotlinConf 2027 Call for Papers is open and shares advice from program committee members and experienced speakers on crafting a strong proposal. Key recommendations include starting with a clear central story, writing an informative title, structuring the abstract around a challenge with concrete takeaways, and thinking like an attendee to show what the audience will gain. It also encourages first-time speakers to submit, emphasizing that genuine, focused lessons matter more than groundbreaking discoveries or prior speaking experience.

KotlinConf Recap: Lessons from Verifone’s Architect on Kotlin in Mission-Critical Payments

AI 摘要The article recaps architect Yuri Geronimus's KotlinConf 2026 talk on how Verifone uses Kotlin's type system to build reliable payment systems spanning terminals, gateways, banks, and regulators across EMEA. He presents patterns such as value classes for spec IDs, validated parsing factories, non-null types at boundaries, masked sensitive data, one class per transaction state, immutability with named transitions, and deleting else branches—so that illegal states are impossible to construct and the compiler, rather than developer discipline, enforces compliance with thousands of pages of regulatory specifications.

Start Your Next KMP App With Kotlin Toolchain 0.13

AI 摘要The Kotlin Toolchain v0.13 release establishes the tool as JetBrains' recommended entry point for new Kotlin Multiplatform projects, offering a unified declarative configuration and CLI for building, testing, and publishing across JVM, Android, iOS, web, and server targets. Key updates include the new interactive 'kotlin new' command, smoother iOS onboarding with automatic Xcode and simulator setup, Android SDK provisioning during IDE import, Swift Package Manager dependency support, faster Kotlin/Native builds via compiler caching, and dedicated AI agent skills plus a Hot Reload MCP server for agentic workflows. Future roadmap items include installation via Homebrew, out-of-the-box AI skills, Swift Export support, and automated app store publishing workflows.