# Latest

**URL:** https://discuss.kotlinlang.org/latest.md

[Latest](https://discuss.kotlinlang.org/latest.md) · [Categories](https://discuss.kotlinlang.org/categories.md)

---

## [Welcome to the Kotlin Discussions powered by Discourse](https://discuss.kotlinlang.org/t/welcome-to-the-kotlin-discussions-powered-by-discourse/8)

<div class="topic-metadata">

**Author:** [@system](https://discuss.kotlinlang.org/u/system)\
**Replies:** 0\
**Last updated:** [November 30, 2015, 7:18am UTC](https://discuss.kotlinlang.org/t/welcome-to-the-kotlin-discussions-powered-by-discourse/8 "2015-11-30T07:18:36Z")

</div>

Welcome to the community of Kotlin users, contributors and developers. Please make sure to read the Code of conduct before posting.

---

## [Fast Compose: Run Jetpack Compose code instantly without compiling](https://discuss.kotlinlang.org/t/fast-compose-run-jetpack-compose-code-instantly-without-compiling/31296)

<div class="topic-metadata">

**Author:** [@Ma7moud3ly](https://discuss.kotlinlang.org/u/Ma7moud3ly)\
**Replies:** 0\
**Last updated:** [November 6, 2026, 6:41pm UTC](https://discuss.kotlinlang.org/t/fast-compose-run-jetpack-compose-code-instantly-without-compiling/31296 "2026-11-06T18:41:54Z")

</div>

I’ve been building Fast Compose, an experimental Kotlin Multiplatform runtime that interprets Kotlin code and executes Jetpack Compose UI without requiring the Kotlin compiler or a build process. The runtime is built fr…

---

## [Add clickable button to output text dynamically](https://discuss.kotlinlang.org/t/add-clickable-button-to-output-text-dynamically/31293)

<div class="topic-metadata">

**Author:** [@joyinhealth1](https://discuss.kotlinlang.org/u/joyinhealth1)\
**Replies:** 0\
**Last updated:** [November 5, 2026, 12:36pm UTC](https://discuss.kotlinlang.org/t/add-clickable-button-to-output-text-dynamically/31293 "2026-11-05T12:36:10Z")

</div>

I wish to add an optional delete button to my row output. The delete button must only delete the row entry I click on with the id passed to a delete function. I can set an onclick event listener on the row, but have not…

---

## [Named Interface Delegation](https://discuss.kotlinlang.org/t/named-interface-delegation/31271)

<div class="topic-metadata">

**Author:** [@wsyong11](https://discuss.kotlinlang.org/u/wsyong11)\
**Replies:** 3\
**Last updated:** [October 31, 2026, 8:43am UTC](https://discuss.kotlinlang.org/t/named-interface-delegation/31271 "2026-10-31T08:43:18Z")

</div>

Motivation Kotlin’s interface delegation provides a convenient way to forward interface implementations: class MyService( name: String ) : Service by DefaultService(name) However, the delegate instance is not direc…

---

## [Writing an x86 disassembler in Kotlin/Native is making me lose my mind (KT-90596)](https://discuss.kotlinlang.org/t/writing-an-x86-disassembler-in-kotlin-native-is-making-me-lose-my-mind-kt-90596/31267)

<div class="topic-metadata">

**Author:** [@nooraldeenhello](https://discuss.kotlinlang.org/u/nooraldeenhello)\
**Replies:** 3\
**Last updated:** [October 26, 2026, 7:36am UTC](https://discuss.kotlinlang.org/t/writing-an-x86-disassembler-in-kotlin-native-is-making-me-lose-my-mind-kt-90596/31267 "2026-10-26T07:36:00Z")

</div>

Hey everyone, I’m currently writing a standalone, bare-metal x86-64 machine code disassembler and binary reverse engineering engine completely from scratch in pure Kotlin/Native (targeting Windows mingwX64). I chose Ko…

---

## [Spring Web Server using coroutines](https://discuss.kotlinlang.org/t/spring-web-server-using-coroutines/22970)

<div class="topic-metadata">

**Author:** [@NoobCoder](https://discuss.kotlinlang.org/u/NoobCoder)\
**Replies:** 4\
**Last updated:** [October 16, 2026, 2:43pm UTC](https://discuss.kotlinlang.org/t/spring-web-server-using-coroutines/22970 "2026-10-16T14:43:02Z")

</div>

I am creating a web server that perform heavy IO ops to databases. I have so far used Project Reactor/WebFlux but I recently started looking into coroutines. I am need some guidance with best practises. My app consist o…

---

## [My Book "Creative DSLs in Kotlin"](https://discuss.kotlinlang.org/t/my-book-creative-dsls-in-kotlin/29123)

<div class="topic-metadata">

**Author:** [@Landei](https://discuss.kotlinlang.org/u/Landei)\
**Replies:** 2\
**Last updated:** [October 12, 2026, 12:04pm UTC](https://discuss.kotlinlang.org/t/my-book-creative-dsls-in-kotlin/29123 "2026-10-12T12:04:28Z")

</div>

Hi, I’d like to present my book Creative DSLs in Kotlin. I’m not sure why the eBook isn’t on Amazon yet, but you can order it here. I decided to write this book because I got frustrated with the toy examples, the lack o…

---

## [Modifying a var within an async coroutine](https://discuss.kotlinlang.org/t/modifying-a-var-within-an-async-coroutine/31230)

<div class="topic-metadata">

**Author:** [@benjishults](https://discuss.kotlinlang.org/u/benjishults)\
**Replies:** 15\
**Last updated:** [September 28, 2026, 9:49am UTC](https://discuss.kotlinlang.org/t/modifying-a-var-within-an-async-coroutine/31230 "2026-09-28T09:49:19Z")

</div>

I’ve inherited some code and I’m wondering about how thread-safe it is. What’s bugging me is that the code makes an assignment to a var from within code that could be executed on any number of threads. Here’s the idea: …

---

## [Trailing lambda for get operator](https://discuss.kotlinlang.org/t/trailing-lambda-for-get-operator/31235)

<div class="topic-metadata">

**Author:** [@Landei](https://discuss.kotlinlang.org/u/Landei)\
**Replies:** 1\
**Last updated:** [September 26, 2026, 9:06am UTC](https://discuss.kotlinlang.org/t/trailing-lambda-for-get-operator/31235 "2026-09-26T09:06:03Z")

</div>

I wrote some code like this: class Cache\<K, V\>(val capacity: Int = 10) { val cache = LinkedHashMap\<K,V\>() fun invalidate(key: K) = cache.remove(key) operator fun get(key: K, onCacheMiss: () -\> V): V = …

---

## [Safe cast a nullable property based on another property value](https://discuss.kotlinlang.org/t/safe-cast-a-nullable-property-based-on-another-property-value/31231)

<div class="topic-metadata">

**Author:** [@MIha\_Markic](https://discuss.kotlinlang.org/u/MIha_Markic)\
**Replies:** 7\
**Last updated:** [September 25, 2026, 6:43am UTC](https://discuss.kotlinlang.org/t/safe-cast-a-nullable-property-based-on-another-property-value/31231 "2026-09-25T06:43:38Z")

</div>

Imagine this class data class Something(val text: String?) { val hasText get() = text != null } and then this code val s = Something("something") if (s.hasText) { val text: String = s.text } Which will fail to co…

---

## [A new idea for object-oriented programming languages](https://discuss.kotlinlang.org/t/a-new-idea-for-object-oriented-programming-languages/31116)

<div class="topic-metadata">

**Author:** [@Neopug](https://discuss.kotlinlang.org/u/Neopug)\
**Replies:** 11\
**Last updated:** [September 25, 2026, 2:10am UTC](https://discuss.kotlinlang.org/t/a-new-idea-for-object-oriented-programming-languages/31116 "2026-09-25T02:10:32Z")

</div>

I have an idea for further developing object-oriented programming languages that I’ve been mulling over for a while. I’d like to contribute this idea to the Kotlin programming language for free, provided I’m credited as …

---

## [Kotlin : Extend python](https://discuss.kotlinlang.org/t/kotlin-extend-python/11319)

<div class="topic-metadata">

**Author:** [@ziadab](https://discuss.kotlinlang.org/u/ziadab)\
**Replies:** 7\
**Last updated:** [September 18, 2026, 8:12pm UTC](https://discuss.kotlinlang.org/t/kotlin-extend-python/11319 "2026-09-18T20:12:36Z")

</div>

Is there any possible way to write python code in kotlin code

---

## [Integrating a python code with kotlin](https://discuss.kotlinlang.org/t/integrating-a-python-code-with-kotlin/24639)

<div class="topic-metadata">

**Author:** [@dagim](https://discuss.kotlinlang.org/u/dagim)\
**Replies:** 7\
**Last updated:** [September 1, 2026, 10:32pm UTC](https://discuss.kotlinlang.org/t/integrating-a-python-code-with-kotlin/24639 "2026-09-01T22:32:36Z")

</div>

Hello, I recently wrote a python program and I wanted to integrate the program with my Kotlin application and anyone could tell me how can I do that ?

---

## [Kotlin and Python](https://discuss.kotlinlang.org/t/kotlin-and-python/31214)

<div class="topic-metadata">

**Author:** [@pythonh05](https://discuss.kotlinlang.org/u/pythonh05)\
**Replies:** 0\
**Last updated:** [September 1, 2026, 10:06pm UTC](https://discuss.kotlinlang.org/t/kotlin-and-python/31214 "2026-09-01T22:06:44Z")

</div>

i have been trying hard to intergrate python in my kotlin android app I CAME ACCROSS THESE SOLUTIONS -the use of chaqoupy -the use of an api USE OF CHAQUOPY The truth is ,according to what i have tested i my self …

---

## [Compose Multiplateform - BLE : Fail to detect BLE advertising frames on Android 16](https://discuss.kotlinlang.org/t/compose-multiplateform-ble-fail-to-detect-ble-advertising-frames-on-android-16/31191)

<div class="topic-metadata">

**Author:** [@truilhethomas](https://discuss.kotlinlang.org/u/truilhethomas)\
**Replies:** 1\
**Last updated:** [August 31, 2026, 6:16am UTC](https://discuss.kotlinlang.org/t/compose-multiplateform-ble-fail-to-detect-ble-advertising-frames-on-android-16/31191 "2026-08-31T06:16:35Z")

</div>

Good afternoon, I am writing a BLE scanner using compose multiplateform Kaable library. I have equipement that advertise an IBeacon format frame and if the scanner is active, these devices send a scanresponse frame. T…

---

## [IntelliJ crashes every time I try to start it](https://discuss.kotlinlang.org/t/intellij-crashes-every-time-i-try-to-start-it/31198)

<div class="topic-metadata">

**Author:** [@Michael4655](https://discuss.kotlinlang.org/u/Michael4655)\
**Replies:** 2\
**Last updated:** [August 24, 2026, 3:58pm UTC](https://discuss.kotlinlang.org/t/intellij-crashes-every-time-i-try-to-start-it/31198 "2026-08-24T15:58:16Z")

</div>

Metadata Edition: IntelliJ IDEA Open/Community Version: 2026.2.1 Operation System: Linux Fedora Packaging Format: Flatpak Bug description Every time I try to start it, IntelliJ crashes with the error message below. I…

---

## [What happened to Amper?](https://discuss.kotlinlang.org/t/what-happened-to-amper/31109)

<div class="topic-metadata">

**Author:** [@Landei](https://discuss.kotlinlang.org/u/Landei)\
**Replies:** 5\
**Last updated:** [August 8, 2026, 9:42pm UTC](https://discuss.kotlinlang.org/t/what-happened-to-amper/31109 "2026-08-08T21:42:16Z")

</div>

I looked for current videos about Amper, nothing. It didn’t seem to be a topic in the KotlinConf, there is no promotion of it, and I couldn’t find a roadmap. Instead, I saw a video about “declarative Gradle”. Honestly, t…

---

## [Kotlin inline "value" Generics](https://discuss.kotlinlang.org/t/kotlin-inline-value-generics/30923)

<div class="topic-metadata">

**Author:** [@MooingDuck](https://discuss.kotlinlang.org/u/MooingDuck)\
**Replies:** 23\
**Last updated:** [August 4, 2026, 12:48am UTC](https://discuss.kotlinlang.org/t/kotlin-inline-value-generics/30923 "2026-08-04T00:48:18Z")

</div>

Right now, inline “value” classes provide an amazing way to reduce memory usage and improve cache efficiency, but are largely incompatible with generics, which force allocations, and so they are therefore difficult to ef…

---

## [Is there C# unsafe code like in kotlin?](https://discuss.kotlinlang.org/t/is-there-c-unsafe-code-like-in-kotlin/31138)

<div class="topic-metadata">

**Author:** [@MIha\_Markic](https://discuss.kotlinlang.org/u/MIha_Markic)\
**Replies:** 9\
**Last updated:** [July 30, 2026, 12:53pm UTC](https://discuss.kotlinlang.org/t/is-there-c-unsafe-code-like-in-kotlin/31138 "2026-07-30T12:53:49Z")

</div>

C# has an unsafe keyword which allow for more dangerous and low-level access to data. Is there something similar in kotlin? I couldn’t find anything related so far.

---

## [DSL for Apache Wicket markup](https://discuss.kotlinlang.org/t/dsl-for-apache-wicket-markup/31164)

<div class="topic-metadata">

**Author:** [@jstuyts](https://discuss.kotlinlang.org/u/jstuyts)\
**Replies:** 0\
**Last updated:** [July 30, 2026, 11:03am UTC](https://discuss.kotlinlang.org/t/dsl-for-apache-wicket-markup/31164 "2026-07-30T11:03:12Z")

</div>

I have written a DSL that allows you to write the markup for Apache Wicket in Kotlin. It makes navigation between code and markup, and refactoring (e.g. renaming a component ID) a lot easier. But the biggest advantage is…

---

## [Place one ComposePanel over another in the same JFrame?](https://discuss.kotlinlang.org/t/place-one-composepanel-over-another-in-the-same-jframe/31140)

<div class="topic-metadata">

**Author:** [@Radiokot](https://discuss.kotlinlang.org/u/Radiokot)\
**Replies:** 0\
**Last updated:** [July 18, 2026, 7:00pm UTC](https://discuss.kotlinlang.org/t/place-one-composepanel-over-another-in-the-same-jframe/31140 "2026-07-18T19:00:54Z")

</div>

Hey guys, Do you know if there’s a way to put one ComposePanel with a transparent background, rendered on the Skia surface, over another, within the same JFrame? It is definitely possible to have one semi-transparent C…

---

## [I am a beginner for Kotlin](https://discuss.kotlinlang.org/t/i-am-a-beginner-for-kotlin/30851)

<div class="topic-metadata">

**Author:** [@balakrishnanultra01](https://discuss.kotlinlang.org/u/balakrishnanultra01)\
**Replies:** 8\
**Last updated:** [July 18, 2026, 12:12pm UTC](https://discuss.kotlinlang.org/t/i-am-a-beginner-for-kotlin/30851 "2026-07-18T12:12:16Z")

</div>

fun main() { var heightAlice = 160 val heightBob = 175 val taller = if (heightAlice \< heightBob) { print("Choose Alice\\n") heightAlice=10 } else { print("Choose Bob\\n") …

---

## [Feature request: Something like C#'s LINQ](https://discuss.kotlinlang.org/t/feature-request-something-like-c-s-linq/20069)

<div class="topic-metadata">

**Author:** [@Kotlinius](https://discuss.kotlinlang.org/u/Kotlinius)\
**Replies:** 16\
**Last updated:** [July 18, 2026, 11:32am UTC](https://discuss.kotlinlang.org/t/feature-request-something-like-c-s-linq/20069 "2026-07-18T11:32:24Z")

</div>

Discussed how to build SQL queries with code in this topic, but figured out that this is not really possible to do in a nice way. We can’t build SQL natively in the language, as @mtimmerm explained in the other topic: T…

---

## [Nameof to get names of program elements](https://discuss.kotlinlang.org/t/nameof-to-get-names-of-program-elements/1518)

<div class="topic-metadata">

**Author:** [@medium](https://discuss.kotlinlang.org/u/medium)\
**Replies:** 15\
**Last updated:** [July 17, 2026, 10:37am UTC](https://discuss.kotlinlang.org/t/nameof-to-get-names-of-program-elements/1518 "2026-07-17T10:37:25Z")

</div>

C# has a really nice feature called nameof. With this expression you can get the name of a program element in a safe way without repeating it as a string. Example: fun process(customer: Customer) { checkArgument(cu…

---

## [Errors running kotlin class from comd-line](https://discuss.kotlinlang.org/t/errors-running-kotlin-class-from-comd-line/30800)

<div class="topic-metadata">

**Author:** [@ppinedo](https://discuss.kotlinlang.org/u/ppinedo)\
**Replies:** 11\
**Last updated:** [July 15, 2026, 12:01pm UTC](https://discuss.kotlinlang.org/t/errors-running-kotlin-class-from-comd-line/30800 "2026-07-15T12:01:39Z")

</div>

hello everyone, I’m trying to run a kotlin class from CLI(Kotlin command-line compiler | Kotlin Documentation), but I get some errors: Can anyone help me to find out the problem?? Thanks to all,

---

## [Pterocos – browser-based code editor with Kotlin/Wasm support (feedback welcome!)](https://discuss.kotlinlang.org/t/pterocos-browser-based-code-editor-with-kotlin-wasm-support-feedback-welcome/31114)

<div class="topic-metadata">

**Author:** [@aminkhd](https://discuss.kotlinlang.org/u/aminkhd)\
**Replies:** 0\
**Last updated:** [July 8, 2026, 1:50pm UTC](https://discuss.kotlinlang.org/t/pterocos-browser-based-code-editor-with-kotlin-wasm-support-feedback-welcome/31114 "2026-07-08T13:50:25Z")

</div>

Hello Kotlin community, I’m excited to share Pterocos – a free, open-source code editor that runs entirely in your browser via WebAssembly, and now supports Kotlin! What it does: :purple\_circle: Kotlin support – wri…

---

## [Cve-2026-53914](https://discuss.kotlinlang.org/t/cve-2026-53914/31108)

<div class="topic-metadata">

**Author:** [@NullBadger](https://discuss.kotlinlang.org/u/NullBadger)\
**Replies:** 1\
**Last updated:** [July 3, 2026, 10:35am UTC](https://discuss.kotlinlang.org/t/cve-2026-53914/31108 "2026-07-03T10:35:13Z")

</div>

Hi, It looks like this vulnerability present in KAPT, CVE-2026-53914, has been classed as 9.8 severity by NIST but has been classed as medium severity by jetbrains and it’s been scheduled for a September release: 2.4.20…

---

## [Kotlin adının yer adıyla bağlantısı üzerine iyi amaçlı soru / Good-faith question about Kotlin’s place-name-based naming](https://discuss.kotlinlang.org/t/kotlin-adinin-yer-adiyla-baglantisi-uzerine-iyi-amacli-soru-good-faith-question-about-kotlin-s-place-name-based-naming/31106)

<div class="topic-metadata">

**Author:** [@Mehmet\_Ali\_POLAT](https://discuss.kotlinlang.org/u/Mehmet_Ali_POLAT)\
**Replies:** 5\
**Last updated:** [July 2, 2026, 6:25am UTC](https://discuss.kotlinlang.org/t/kotlin-adinin-yer-adiyla-baglantisi-uzerine-iyi-amacli-soru-good-faith-question-about-kotlin-s-place-name-based-naming/31106 "2026-07-02T06:25:00Z")

</div>

Türkçe Bu yazıyı önce Türkçe yazıyorum; çünkü düşüncelerimi en iyi anladığım ve kendimi en açık anlatabildiğim dilde dile getirmek istiyorum. Bu dil sıralaması kötü amaçlı değildir; ulusçu, ırkçı, soya dayalı ya da ayrım…

---

## [Game Over screen](https://discuss.kotlinlang.org/t/game-over-screen/31105)

<div class="topic-metadata">

**Author:** [@daisyball447](https://discuss.kotlinlang.org/u/daisyball447)\
**Replies:** 6\
**Last updated:** [July 1, 2026, 1:27pm UTC](https://discuss.kotlinlang.org/t/game-over-screen/31105 "2026-07-01T13:27:05Z")

</div>

Hi! I’m working on some code for a game called “Slats”. Most of the code works, you get a start page and you can play the game, but when the slats disappear it’s supposed to have a game over page which never shows up. I’…

---

## [Exploring whether Rust source files can be automatically parsed to generate JNI bindings, Kotlin APIs, and Android build integration through a Gradle plugin](https://discuss.kotlinlang.org/t/exploring-whether-rust-source-files-can-be-automatically-parsed-to-generate-jni-bindings-kotlin-apis-and-android-build-integration-through-a-gradle-plugin/31098)

<div class="topic-metadata">

**Author:** [@Kingjha13](https://discuss.kotlinlang.org/u/Kingjha13)\
**Replies:** 2\
**Last updated:** [June 23, 2026, 5:35pm UTC](https://discuss.kotlinlang.org/t/exploring-whether-rust-source-files-can-be-automatically-parsed-to-generate-jni-bindings-kotlin-apis-and-android-build-integration-through-a-gradle-plugin/31098 "2026-06-23T17:35:18Z")

</div>

Exploring a Gradle Plugin for Automatic Rust ↔ Kotlin Bindings on Android Hi everyone, I’m an Android developer currently learning Rust and experimenting with Rust integration in Android applications. While working wit…

[Next page](https://discuss.kotlinlang.org/latest.md?page=1)
