# Uncategorized

**URL:** https://discuss.kotlinlang.org/c/uncategorized/1.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.

---

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

---

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

---

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

---

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

---

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

---

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

---

## [Ordered Sets](https://discuss.kotlinlang.org/t/ordered-sets/5420)

<div class="topic-metadata">

**Author:** [@nanodeath](https://discuss.kotlinlang.org/u/nanodeath)\
**Replies:** 5\
**Last updated:** [May 4, 2026, 8:55am UTC](https://discuss.kotlinlang.org/t/ordered-sets/5420 "2026-05-04T08:55:15Z")

</div>

Hey folks, The Java collections frameworks, frustratingly, lacks any interface that indicates “an ordered collection of unique elements”, and Kotlin doesn’t step in and provide an interface/class either. So…I’m curious …

---

## [Pattern matching in Kotlin](https://discuss.kotlinlang.org/t/pattern-matching-in-kotlin/598)

<div class="topic-metadata">

**Author:** [@kenbarc](https://discuss.kotlinlang.org/u/kenbarc)\
**Replies:** 11\
**Last updated:** [February 21, 2026, 9:00pm UTC](https://discuss.kotlinlang.org/t/pattern-matching-in-kotlin/598 "2026-02-21T21:00:55Z")

</div>

The past year I have evolved a simple pattern matching scheme that I now automatically incorporate into new Kotlin class hierarchies. The scheme is trivial to include, costs nothing to program and offers some beneficial …

---

## [Coroutine cancelling](https://discuss.kotlinlang.org/t/coroutine-cancelling/30964)

<div class="topic-metadata">

**Author:** [@Mike\_Bray](https://discuss.kotlinlang.org/u/Mike_Bray)\
**Replies:** 7\
**Last updated:** [February 20, 2026, 4:36pm UTC](https://discuss.kotlinlang.org/t/coroutine-cancelling/30964 "2026-02-20T16:36:48Z")

</div>

I have an app with 2 background tasks. The main app communicates with these via LinkedBlockingQueues. Tasks to be executed are put on the appropriate queue. The background tasks wait on these queues. When they receive…

---

## [Kotlin vs. modern Java](https://discuss.kotlinlang.org/t/kotlin-vs-modern-java/26859)

<div class="topic-metadata">

**Author:** [@medium](https://discuss.kotlinlang.org/u/medium)\
**Replies:** 51\
**Last updated:** [February 17, 2026, 9:41am UTC](https://discuss.kotlinlang.org/t/kotlin-vs-modern-java/26859 "2026-02-17T09:41:29Z")

</div>

Some years back Kotlin was an easy sell, because Java (lets say up to Java 9) felt dated and was inconvenient in many regards. But Oracle invested a lot to make Java more attractive. Recent Java features: Local type in…

---

## [Atomic Numbers](https://discuss.kotlinlang.org/t/atomic-numbers/30949)

<div class="topic-metadata">

**Author:** [@Mike\_Bray](https://discuss.kotlinlang.org/u/Mike_Bray)\
**Replies:** 2\
**Last updated:** [January 30, 2026, 6:26pm UTC](https://discuss.kotlinlang.org/t/atomic-numbers/30949 "2026-01-30T18:26:46Z")

</div>

I have a need to control access to counts in a multi-thread app. Kotlin seems to have 2 different solutions. My IDE (Idea) suggests that the var is AtomicInteger, i.e. var count = AtomicInteger(0) Whilst the online he…

---

## [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:** 1\
**Last updated:** [January 22, 2026, 8:57am UTC](https://discuss.kotlinlang.org/t/my-book-creative-dsls-in-kotlin/29123 "2026-01-22T08:57:19Z")

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

---

## [Partial Class support in the future?](https://discuss.kotlinlang.org/t/partial-class-support-in-the-future/254)

<div class="topic-metadata">

**Author:** [@terrybleger](https://discuss.kotlinlang.org/u/terrybleger)\
**Replies:** 10\
**Last updated:** [December 30, 2025, 8:49am UTC](https://discuss.kotlinlang.org/t/partial-class-support-in-the-future/254 "2025-12-30T08:49:44Z")

</div>

Since Kotlin is able to create top level function inside a package, but since it will just be compiled as a package class, then why not try to support partial class just like in C#? Cause it will benefit a lot since it c…

---

## [LongRange.count() returns Int and cause an Exception](https://discuss.kotlinlang.org/t/longrange-count-returns-int-and-cause-an-exception/30878)

<div class="topic-metadata">

**Author:** [@przemek.materna](https://discuss.kotlinlang.org/u/przemek.materna)\
**Replies:** 7\
**Last updated:** [December 8, 2025, 10:53pm UTC](https://discuss.kotlinlang.org/t/longrange-count-returns-int-and-cause-an-exception/30878 "2025-12-08T22:53:03Z")

</div>

There is a LongRange, which exposes a method count(), by Iterable\<T\> extension: package kotlin.collections // file: \_Collections.kt public fun \<T\> Iterable\<T\>.count(): Int { if (this is Collection) return size …

---

## [What are the differences between Kotlin Multiplatform & Compose Multiplatform?](https://discuss.kotlinlang.org/t/what-are-the-differences-between-kotlin-multiplatform-compose-multiplatform/30865)

<div class="topic-metadata">

**Author:** [@dcs.79c](https://discuss.kotlinlang.org/u/dcs.79c)\
**Replies:** 5\
**Last updated:** [December 8, 2025, 9:04am UTC](https://discuss.kotlinlang.org/t/what-are-the-differences-between-kotlin-multiplatform-compose-multiplatform/30865 "2025-12-08T09:04:41Z")

</div>

I installed IntelliJ on my Mac. I have a book on Kotlin programming. I’m learning Kotlin! I’ve explored different programming languages - BASIC(before it became Visual Basic), Visual Basic, Turbo Pascal, & Java. Java is…

---

## [I’d like to be able to plot trig functions & fractals & parametric equations on Kotlin](https://discuss.kotlinlang.org/t/i-d-like-to-be-able-to-plot-trig-functions-fractals-parametric-equations-on-kotlin/30867)

<div class="topic-metadata">

**Author:** [@dcs.79c](https://discuss.kotlinlang.org/u/dcs.79c)\
**Replies:** 3\
**Last updated:** [December 4, 2025, 8:46pm UTC](https://discuss.kotlinlang.org/t/i-d-like-to-be-able-to-plot-trig-functions-fractals-parametric-equations-on-kotlin/30867 "2025-12-04T20:46:56Z")

</div>

I’d like to be able to plot trig functions & fractals & parametric equations on Kotlin. I read about Let’s Plot. Back when Basic was Basic & not Visual Basic, I created programs that plotted parametric equations. It was …

---

## [Empty Main function](https://discuss.kotlinlang.org/t/empty-main-function/30864)

<div class="topic-metadata">

**Author:** [@dcs.79c](https://discuss.kotlinlang.org/u/dcs.79c)\
**Replies:** 2\
**Last updated:** [November 28, 2025, 4:07am UTC](https://discuss.kotlinlang.org/t/empty-main-function/30864 "2025-11-28T04:07:28Z")

</div>

I read online that the Main function is the starting point of the program. Is it possible to start a Kotlin program with an empty Main function, that is, fun Main(), & nothing else? I’m intrigued about Kotlin & I’m eag…

---

## [Parse Kotlin build.gradle.kts Script via ScriptDefinition](https://discuss.kotlinlang.org/t/parse-kotlin-build-gradle-kts-script-via-scriptdefinition/30862)

<div class="topic-metadata">

**Author:** [@PhilKes](https://discuss.kotlinlang.org/u/PhilKes)\
**Replies:** 0\
**Last updated:** [November 21, 2025, 11:29am UTC](https://discuss.kotlinlang.org/t/parse-kotlin-build-gradle-kts-script-via-scriptdefinition/30862 "2025-11-21T11:29:52Z")

</div>

Use Case: OpenRewrite is a tool to performce large-scale code migrations/refactorings which leverages parsing Java/Groovy/Kotlin sources and performing modifications on them. For Kotlin you can find the parsing code in…

---

## [How to use SQLite without GUI? only print console](https://discuss.kotlinlang.org/t/how-to-use-sqlite-without-gui-only-print-console/30803)

<div class="topic-metadata">

**Author:** [@vmercadolibretuc](https://discuss.kotlinlang.org/u/vmercadolibretuc)\
**Replies:** 4\
**Last updated:** [October 28, 2025, 12:43pm UTC](https://discuss.kotlinlang.org/t/how-to-use-sqlite-without-gui-only-print-console/30803 "2025-10-28T12:43:06Z")

</div>

With the GUI, everything is fine, but when I try to do it without the GUI, I get errors. Is this possible? I'm new to Kotlin. Thank you very much.

---

## [Unbelievable error message after compile](https://discuss.kotlinlang.org/t/unbelievable-error-message-after-compile/30778)

<div class="topic-metadata">

**Author:** [@ppinedo](https://discuss.kotlinlang.org/u/ppinedo)\
**Replies:** 7\
**Last updated:** [October 20, 2025, 11:52am UTC](https://discuss.kotlinlang.org/t/unbelievable-error-message-after-compile/30778 "2025-10-20T11:52:18Z")

</div>

Hello everybody¡¡ I’m starting to learn different aspects about programming in kotlin. Sometimes I recive this confussin error message, I don’t understand it. can anybody explain me it?? but if I open the generated…

---

## [How to cancel forum membership](https://discuss.kotlinlang.org/t/how-to-cancel-forum-membership/23124)

<div class="topic-metadata">

**Author:** [@absoluterookie](https://discuss.kotlinlang.org/u/absoluterookie)\
**Replies:** 2\
**Last updated:** [October 16, 2025, 10:29pm UTC](https://discuss.kotlinlang.org/t/how-to-cancel-forum-membership/23124 "2025-10-16T22:29:58Z")

</div>

Maybe you can help me. Maybe im just stupid. I find everything in my profile but no button to leave the forum for good (delete my account and so on)

---

## [Lsp + mcp](https://discuss.kotlinlang.org/t/lsp-mcp/30749)

<div class="topic-metadata">

**Author:** [@esafak](https://discuss.kotlinlang.org/u/esafak)\
**Replies:** 0\
**Last updated:** [September 4, 2025, 5:51pm UTC](https://discuss.kotlinlang.org/t/lsp-mcp/30749 "2025-09-04T17:51:10Z")

</div>

Has anyone used the Kotlin LSP with MCP?

---

## [How to Compile Kotlin Code at Runtime from Java?](https://discuss.kotlinlang.org/t/how-to-compile-kotlin-code-at-runtime-from-java/30324)

<div class="topic-metadata">

**Author:** [@semenov.valentine](https://discuss.kotlinlang.org/u/semenov.valentine)\
**Replies:** 2\
**Last updated:** [September 2, 2025, 12:05am UTC](https://discuss.kotlinlang.org/t/how-to-compile-kotlin-code-at-runtime-from-java/30324 "2025-09-02T00:05:23Z")

</div>

Hey, I have a task where I need to compile Kotlin source code at runtime from within a Java application. Is kotlin-compiler-embeddable the recommended way to achieve this? For now, I am using K2JVMCompiler, but I’m not…

---

## [Support for "satisfies an interface"](https://discuss.kotlinlang.org/t/support-for-satisfies-an-interface/30736)

<div class="topic-metadata">

**Author:** [@luigialice](https://discuss.kotlinlang.org/u/luigialice)\
**Replies:** 18\
**Last updated:** [August 30, 2025, 9:48pm UTC](https://discuss.kotlinlang.org/t/support-for-satisfies-an-interface/30736 "2025-08-30T21:48:35Z")

</div>

I want to write a function, that accepts any argument that just fullfills or satisfies an interface. E.g. My example interface Inf1 has an open() and a close() method. fun myFun(arg: satisfies Inf1) {arg.open(); … arg.…

---

## [Feedback for my Pattern-Matching lib](https://discuss.kotlinlang.org/t/feedback-for-my-pattern-matching-lib/25180)

<div class="topic-metadata">

**Author:** [@Landei](https://discuss.kotlinlang.org/u/Landei)\
**Replies:** 11\
**Last updated:** [August 28, 2025, 11:42am UTC](https://discuss.kotlinlang.org/t/feedback-for-my-pattern-matching-lib/25180 "2025-08-28T11:42:14Z")

</div>

I’m writing a small library for “Scala-like” pattern-matching in when-expressions. It’s not ready yet (especially collections need some more love), and I’m looking for feedback and criticism. Here is how it can look like…

---

## [Type Classes in Kotlin?](https://discuss.kotlinlang.org/t/type-classes-in-kotlin/410)

<div class="topic-metadata">

**Author:** [@BruceEckel](https://discuss.kotlinlang.org/u/BruceEckel)\
**Replies:** 5\
**Last updated:** [August 17, 2025, 6:57pm UTC](https://discuss.kotlinlang.org/t/type-classes-in-kotlin/410 "2025-08-17T18:57:20Z")

</div>

Does Kotlin support type classes in any way? If so, can someone point me to an example? Thanks!

---

## [What is the safest file format to convert a large JSON file for use in Kotlin (android)?](https://discuss.kotlinlang.org/t/what-is-the-safest-file-format-to-convert-a-large-json-file-for-use-in-kotlin-android/30575)

<div class="topic-metadata">

**Author:** [@elpafras](https://discuss.kotlinlang.org/u/elpafras)\
**Replies:** 4\
**Last updated:** [August 14, 2025, 2:27am UTC](https://discuss.kotlinlang.org/t/what-is-the-safest-file-format-to-convert-a-large-json-file-for-use-in-kotlin-android/30575 "2025-08-14T02:27:26Z")

</div>

I have a large JSON file that I need to work with in a Kotlin (android) project. Due to its size, I’m considering converting it to a different file format for better performance or easier handling. What would be the saf…

---

## [No remove Items in ArrayList](https://discuss.kotlinlang.org/t/no-remove-items-in-arraylist/30565)

<div class="topic-metadata">

**Author:** [@vmercadolibretuc](https://discuss.kotlinlang.org/u/vmercadolibretuc)\
**Replies:** 6\
**Last updated:** [August 4, 2025, 6:38am UTC](https://discuss.kotlinlang.org/t/no-remove-items-in-arraylist/30565 "2025-08-04T06:38:56Z")

</div>

Hey guys, I’m new to Kotlin and I’m practicing ArrayList. I can’t get it to delete the item I select. Can someone help me? Thanks a lot. package com.example.pruebas.oop.clases import kotlin.String class Producto (val…

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