# 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.

---

## [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 …

---

## [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:** 14\
**Last updated:** [September 25, 2026, 2:02am UTC](https://discuss.kotlinlang.org/t/modifying-a-var-within-an-async-coroutine/31230 "2026-09-25T02:02:02Z")

</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: …

---

## [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…

---

## [Best practices for Kotlin version when creating libraries](https://discuss.kotlinlang.org/t/best-practices-for-kotlin-version-when-creating-libraries/31100)

<div class="topic-metadata">

**Author:** [@Skater901](https://discuss.kotlinlang.org/u/Skater901)\
**Replies:** 0\
**Last updated:** [June 20, 2026, 6:27am UTC](https://discuss.kotlinlang.org/t/best-practices-for-kotlin-version-when-creating-libraries/31100 "2026-06-20T06:27:33Z")

</div>

Hi all, I’m planning to build a library for Dropwizard. Since I’m targeting Dropwizard 5, it makes sense to compile my library with Java 17, as Dropwizard 5 requires Java 17 or newer. However, since I was going to write…

---

## [WorldWind Kotlin - the first multi-platform planetary 3D globe library for JS, Android and JVM](https://discuss.kotlinlang.org/t/worldwind-kotlin-the-first-multi-platform-planetary-3d-globe-library-for-js-android-and-jvm/25734)

<div class="topic-metadata">

**Author:** [@ComBatVision](https://discuss.kotlinlang.org/u/ComBatVision)\
**Replies:** 24\
**Last updated:** [June 17, 2026, 10:06am UTC](https://discuss.kotlinlang.org/t/worldwind-kotlin-the-first-multi-platform-planetary-3d-globe-library-for-js-android-and-jvm/25734 "2026-06-17T10:06:05Z")

</div>

Hello, Kotlin Community! Let me introduce you the first Kotlin multi-platform open-source planetary 3D globe SDK library for JS, Android and JVM - GitHub - WorldWindEarth/WorldWindKotlin: The WorldWind Kotlin SDK (WWK) …

---

## [The require function should be: fun require(value: Boolean, lazyMessage: () -\> String)](https://discuss.kotlinlang.org/t/the-require-function-should-be-fun-require-value-boolean-lazymessage-string/31074)

<div class="topic-metadata">

**Author:** [@aweiss](https://discuss.kotlinlang.org/u/aweiss)\
**Replies:** 3\
**Last updated:** [May 29, 2026, 8:42am UTC](https://discuss.kotlinlang.org/t/the-require-function-should-be-fun-require-value-boolean-lazymessage-string/31074 "2026-05-29T08:42:07Z")

</div>

Hi all, I think the current require function with the lazyMessage allows unintentional usage. This is it: @kotlin.internal.InlineOnly public inline fun require(value: Boolean, lazyMessage: () -\> Any): Unit { contr…

---

## [Why do extra consumers considerably slow down or speed up processing over channels](https://discuss.kotlinlang.org/t/why-do-extra-consumers-considerably-slow-down-or-speed-up-processing-over-channels/31073)

<div class="topic-metadata">

**Author:** [@ssomers](https://discuss.kotlinlang.org/u/ssomers)\
**Replies:** 2\
**Last updated:** [May 27, 2026, 8:41pm UTC](https://discuss.kotlinlang.org/t/why-do-extra-consumers-considerably-slow-down-or-speed-up-processing-over-channels/31073 "2026-05-27T20:41:54Z")

</div>

Originally, I noticed that in a single producer, multiple consumer scenario, performance in Kotlin using buffered channels seems mostly fine compared to some other languages, but disappoints in case the jobs handed to co…

---

## [How can I make a row take all remaining height?](https://discuss.kotlinlang.org/t/how-can-i-make-a-row-take-all-remaining-height/31065)

<div class="topic-metadata">

**Author:** [@JoeAntB](https://discuss.kotlinlang.org/u/JoeAntB)\
**Replies:** 2\
**Last updated:** [May 20, 2026, 5:03pm UTC](https://discuss.kotlinlang.org/t/how-can-i-make-a-row-take-all-remaining-height/31065 "2026-05-20T17:03:04Z")

</div>

I am creating a game by using the Unscramble sample as a starting point. The app will be a single full screen with no scrolling. The screen will show an AppBar, a status bar, a canvas and a grid of buttons. Three rows ha…

---

## [Support understanding how .copy works in Kotlin](https://discuss.kotlinlang.org/t/support-understanding-how-copy-works-in-kotlin/31053)

<div class="topic-metadata">

**Author:** [@Saghar\_Pervez-Akhtar](https://discuss.kotlinlang.org/u/Saghar_Pervez-Akhtar)\
**Replies:** 8\
**Last updated:** [May 20, 2026, 8:58am UTC](https://discuss.kotlinlang.org/t/support-understanding-how-copy-works-in-kotlin/31053 "2026-05-20T08:58:00Z")

</div>

I hope someone can explain this to me. I have modified the code to make it clear so that is easier to understand what is doing. I’ve implemneted some changes where I was populating latLong fields. However, I noticed t…

---

## [How to do WASM Unit tests with function defined in Index.html?](https://discuss.kotlinlang.org/t/how-to-do-wasm-unit-tests-with-function-defined-in-index-html/31063)

<div class="topic-metadata">

**Author:** [@monoseb](https://discuss.kotlinlang.org/u/monoseb)\
**Replies:** 0\
**Last updated:** [May 19, 2026, 7:38am UTC](https://discuss.kotlinlang.org/t/how-to-do-wasm-unit-tests-with-function-defined-in-index-html/31063 "2026-05-19T07:38:46Z")

</div>

Hello, I created a simple function in my index.html that is called in my feature.wasm.kt as an external function. external fun myFunction(text: String): JSArray\<JsString\> in Kotlin and in index.html \<script\> functi…

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