# Libraries

**URL:** https://discuss.kotlinlang.org/c/libraries/11.md?page=3

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

**Page:** 4

---

## [Listing Interface implementations is overcomplicated](https://discuss.kotlinlang.org/t/listing-interface-implementations-is-overcomplicated/24791)

<div class="topic-metadata">

**Author:** [@illeatmyhat](https://discuss.kotlinlang.org/u/illeatmyhat)\
**Replies:** 1\
**Last updated:** [May 11, 2022, 9:45am UTC](https://discuss.kotlinlang.org/t/listing-interface-implementations-is-overcomplicated/24791 "2022-05-11T09:45:21Z")

</div>

Reflection in JVM languages seems to be really bad. A number of techniques relies on essentially being able to retrieve the list of Interface or abstract class implementations. Sure, this can be done with a sealed clas…

---

## [False positive: v1.6.21 kotlin-util-io detected as virus by MS Defender](https://discuss.kotlinlang.org/t/false-positive-v1-6-21-kotlin-util-io-detected-as-virus-by-ms-defender/24763)

<div class="topic-metadata">

**Author:** [@tocosonic](https://discuss.kotlinlang.org/u/tocosonic)\
**Replies:** 1\
**Last updated:** [May 5, 2022, 8:14am UTC](https://discuss.kotlinlang.org/t/false-positive-v1-6-21-kotlin-util-io-detected-as-virus-by-ms-defender/24763 "2022-05-05T08:14:20Z")

</div>

Today MS Defender started to block access to kotlin-util-io v1.6.21, e.g. when trying to download from mvnrepository.com. Other versions (e.g. v1.6.20) work fine. I’ve tested this behaviour on MS Defender protected Win1…

---

## [36 minutes vedio for my kotlin framework: graphql-provider](https://discuss.kotlinlang.org/t/36-minutes-vedio-for-my-kotlin-framework-graphql-provider/24717)

<div class="topic-metadata">

**Author:** [@babyfish-ct](https://discuss.kotlinlang.org/u/babyfish-ct)\
**Replies:** 0\
**Last updated:** [April 28, 2022, 9:24am UTC](https://discuss.kotlinlang.org/t/36-minutes-vedio-for-my-kotlin-framework-graphql-provider/24717 "2022-04-28T09:24:02Z")

</div>

Hello everyone I edited a 36-minutes video to introduce my framework graphql-provider, showing how to quickly build a GraphQL service based on kotlin and R2DBC. Any ideas and opinions are welcome.

---

## [Open file through smart locale from a src modules](https://discuss.kotlinlang.org/t/open-file-through-smart-locale-from-a-src-modules/24585)

<div class="topic-metadata">

**Author:** [@trute](https://discuss.kotlinlang.org/u/trute)\
**Replies:** 1\
**Last updated:** [April 12, 2022, 12:58am UTC](https://discuss.kotlinlang.org/t/open-file-through-smart-locale-from-a-src-modules/24585 "2022-04-12T00:58:22Z")

</div>

Hi, I’m a big noob, so I would like some kind help In my intellij project, I’m trying to access and open an .sql file in a folder in src/main/kotlin. I do NOT want to open these files from the special resources folder. …

---

## [How fast can you create a GraphQL server by kotlin?](https://discuss.kotlinlang.org/t/how-fast-can-you-create-a-graphql-server-by-kotlin/24484)

<div class="topic-metadata">

**Author:** [@babyfish-ct](https://discuss.kotlinlang.org/u/babyfish-ct)\
**Replies:** 0\
**Last updated:** [March 28, 2022, 5:51pm UTC](https://discuss.kotlinlang.org/t/how-fast-can-you-create-a-graphql-server-by-kotlin/24484 "2022-03-28T17:51:12Z")

</div>

Hi guys I just finished a new kotlin framework: GitHub - babyfish-ct/graphql-provider: Quickly build GraphQL services with kotlin based on R2DBC. If you use RDBMS to manage your persistent data, this framework can help…

---

## [Coroutines and cancelling blocking code](https://discuss.kotlinlang.org/t/coroutines-and-cancelling-blocking-code/12165)

<div class="topic-metadata">

**Author:** [@fra](https://discuss.kotlinlang.org/u/fra)\
**Replies:** 5\
**Last updated:** [March 20, 2022, 4:29pm UTC](https://discuss.kotlinlang.org/t/coroutines-and-cancelling-blocking-code/12165 "2022-03-20T16:29:20Z")

</div>

I have to interact with a blocking library from coroutine code and want to be able to cancel the blocking call. The situation is something similar to the following import kotlinx.coroutines.\* fun main() { val jobA = …

---

## [1.6 way to use Flows to an updating state (scan? StateFlow?)](https://discuss.kotlinlang.org/t/1-6-way-to-use-flows-to-an-updating-state-scan-stateflow/24440)

<div class="topic-metadata">

**Author:** [@benjaminhill](https://discuss.kotlinlang.org/u/benjaminhill)\
**Replies:** 1\
**Last updated:** [March 17, 2022, 8:14pm UTC](https://discuss.kotlinlang.org/t/1-6-way-to-use-flows-to-an-updating-state-scan-stateflow/24440 "2022-03-17T20:14:50Z")

</div>

I’m behind the times (circa Kotlin 1.3), and would like to use the latest flow functions to do this the most “clean” way. I have a flow of messages Those messages update a state of the current “span” Sometimes those me…

---

## [Ktor: Difference between engines](https://discuss.kotlinlang.org/t/ktor-difference-between-engines/22112)

<div class="topic-metadata">

**Author:** [@Psijic](https://discuss.kotlinlang.org/u/Psijic)\
**Replies:** 6\
**Last updated:** [March 17, 2022, 12:04pm UTC](https://discuss.kotlinlang.org/t/ktor-difference-between-engines/22112 "2022-03-17T12:04:09Z")

</div>

Hello, I’m starting to add Ktor versus Retrofit/Spring in my projects and there is an overwhelming abundance of engines available: Engines | Ktor What is the principal difference between them, which are the most promisi…

---

## [Oodbms for kotlin backend/desktop](https://discuss.kotlinlang.org/t/oodbms-for-kotlin-backend-desktop/24396)

<div class="topic-metadata">

**Author:** [@revilofe](https://discuss.kotlinlang.org/u/revilofe)\
**Replies:** 0\
**Last updated:** [March 13, 2022, 4:56pm UTC](https://discuss.kotlinlang.org/t/oodbms-for-kotlin-backend-desktop/24396 "2022-03-13T16:56:04Z")

</div>

please can you recommend me an oodbms to use with kotlin backend/desktop? do you know any?

---

## [KotlinLab update](https://discuss.kotlinlang.org/t/kotlinlab-update/24365)

<div class="topic-metadata">

**Author:** [@sterg](https://discuss.kotlinlang.org/u/sterg)\
**Replies:** 0\
**Last updated:** [March 9, 2022, 12:09pm UTC](https://discuss.kotlinlang.org/t/kotlinlab-update/24365 "2022-03-09T12:09:28Z")

</div>

I like to announce that I improved KotlinLab, Also, an article about KotlinLab is available at the former site.

---

## [Kotlin coroutines or jvm virtual threads?](https://discuss.kotlinlang.org/t/kotlin-coroutines-or-jvm-virtual-threads/24050)

<div class="topic-metadata">

**Author:** [@babyfish-ct](https://discuss.kotlinlang.org/u/babyfish-ct)\
**Replies:** 15\
**Last updated:** [March 3, 2022, 6:43pm UTC](https://discuss.kotlinlang.org/t/kotlin-coroutines-or-jvm-virtual-threads/24050 "2022-03-03T18:43:49Z")

</div>

Question: I want to create a pure asynchronous GraphQL server library based on kotlin coroutines, but I hesitated because java will officially release its experimental feature loom/virtual thread. Between kotlin corout…

---

## [Announcing kotlin-argparser: command line argument parsing for Kotlin](https://discuss.kotlinlang.org/t/announcing-kotlin-argparser-command-line-argument-parsing-for-kotlin/2253)

<div class="topic-metadata">

**Author:** [@xenomachina](https://discuss.kotlinlang.org/u/xenomachina)\
**Replies:** 4\
**Last updated:** [February 28, 2022, 6:03pm UTC](https://discuss.kotlinlang.org/t/announcing-kotlin-argparser-command-line-argument-parsing-for-kotlin/2253 "2022-02-28T18:03:14Z")

</div>

I started programming in Kotlin a few months ago. The two languages I used the most before were Python and Java. I love that Kotlin is more or less as concise as Python, but is even safer than Java and has roughly Java-e…

---

## [Read data from the .properties file using Placeholders](https://discuss.kotlinlang.org/t/read-data-from-the-properties-file-using-placeholders/24194)

<div class="topic-metadata">

**Author:** [@sathishreddy.sr123](https://discuss.kotlinlang.org/u/sathishreddy.sr123)\
**Replies:** 1\
**Last updated:** [February 21, 2022, 1:41pm UTC](https://discuss.kotlinlang.org/t/read-data-from-the-properties-file-using-placeholders/24194 "2022-02-21T13:41:51Z")

</div>

Is there any way to read data from the .properties file and using in functions by using any placeholders. suppose: var value : String = // i want to read this value from .properties file which is there in resource fold…

---

## [Kotlix.serialization polymorphism using property presense](https://discuss.kotlinlang.org/t/kotlix-serialization-polymorphism-using-property-presense/24177)

<div class="topic-metadata">

**Author:** [@madmax1028](https://discuss.kotlinlang.org/u/madmax1028)\
**Replies:** 1\
**Last updated:** [February 20, 2022, 11:11am UTC](https://discuss.kotlinlang.org/t/kotlix-serialization-polymorphism-using-property-presense/24177 "2022-02-20T11:11:37Z")

</div>

I want to implement for my model a polymorphism without a presense of discriminator field. I managed to do this relatively easily in Jackson so now I was trying my luck with kotlix.serialization. I was hoping for some ad…

---

## [New SQL DSL for kotlin: kimmer-sql](https://discuss.kotlinlang.org/t/new-sql-dsl-for-kotlin-kimmer-sql/24216)

<div class="topic-metadata">

**Author:** [@babyfish-ct](https://discuss.kotlinlang.org/u/babyfish-ct)\
**Replies:** 0\
**Last updated:** [February 18, 2022, 1:46am UTC](https://discuss.kotlinlang.org/t/new-sql-dsl-for-kotlin-kimmer-sql/24216 "2022-02-18T01:46:07Z")

</div>

I added a sub project named “kimmer-sql” into it. This is a new SQL DSL for kotlin. There are currently many solutions for accessing RDMBS JPA Mybatis JOOQ Exposed Ktorm Why provide a new SQL DSL? I have discusse…

---

## [How to change output generated based on input?](https://discuss.kotlinlang.org/t/how-to-change-output-generated-based-on-input/24134)

<div class="topic-metadata">

**Author:** [@NicholasJB1996](https://discuss.kotlinlang.org/u/NicholasJB1996)\
**Replies:** 4\
**Last updated:** [February 9, 2022, 9:50pm UTC](https://discuss.kotlinlang.org/t/how-to-change-output-generated-based-on-input/24134 "2022-02-09T21:50:01Z")

</div>

I’m new to Kotlin language and I am currently attempting to write some code that would take a user created opcode, match it to a template and change the result of the output based on the parameters set in the opcode. An …

---

## [Getting input from controllers](https://discuss.kotlinlang.org/t/getting-input-from-controllers/24112)

<div class="topic-metadata">

**Author:** [@will.42](https://discuss.kotlinlang.org/u/will.42)\
**Replies:** 3\
**Last updated:** [February 9, 2022, 3:37pm UTC](https://discuss.kotlinlang.org/t/getting-input-from-controllers/24112 "2022-02-09T15:37:32Z")

</div>

I’m wanting to program a custom rc car in kotlin and I’m wondering how I can get input from some kind of game controller?

---

## [Ktor - How to enable kotlinx.serialization DSL?](https://discuss.kotlinlang.org/t/ktor-how-to-enable-kotlinx-serialization-dsl/24121)

<div class="topic-metadata">

**Author:** [@johnnybaloney](https://discuss.kotlinlang.org/u/johnnybaloney)\
**Replies:** 0\
**Last updated:** [February 5, 2022, 1:50pm UTC](https://discuss.kotlinlang.org/t/ktor-how-to-enable-kotlinx-serialization-dsl/24121 "2022-02-05T13:50:19Z")

</div>

Hi, I’m browsing Ktor related resources and came across Ktor 1.3 release notes. There I found this: Ktor now supports a way to construct a JSON body using the kotlinx.serialization DSL: client.post("http://localhost…

---

## [Can you use Kotlin libraries in Java without the Kotlin runtime?](https://discuss.kotlinlang.org/t/can-you-use-kotlin-libraries-in-java-without-the-kotlin-runtime/24034)

<div class="topic-metadata">

**Author:** [@rollie42](https://discuss.kotlinlang.org/u/rollie42)\
**Replies:** 4\
**Last updated:** [January 26, 2022, 12:14pm UTC](https://discuss.kotlinlang.org/t/can-you-use-kotlin-libraries-in-java-without-the-kotlin-runtime/24034 "2022-01-26T12:14:38Z")

</div>

If I have some library I’ve created in Kotlin, which exposes some functionality like: class BookService { fun findBook(id: Number, title: String) } in order to use this API from a Java application, it would have to k…

---

## [Decimal format in a multi-platform build](https://discuss.kotlinlang.org/t/decimal-format-in-a-multi-platform-build/5692)

<div class="topic-metadata">

**Author:** [@darksnake](https://discuss.kotlinlang.org/u/darksnake)\
**Replies:** 5\
**Last updated:** [January 24, 2022, 2:21am UTC](https://discuss.kotlinlang.org/t/decimal-format-in-a-multi-platform-build/5692 "2022-01-24T02:21:00Z")

</div>

I am trying to converting one of my JavaFX projects to a multi-platform one. Since I do not have any experience with javascript ecosystem it is moving very slow. One specific problem I encountered, that there seems to b…

---

## [Coroutine GlobalScope.async vs GlobalScope.launch](https://discuss.kotlinlang.org/t/coroutine-globalscope-async-vs-globalscope-launch/21372)

<div class="topic-metadata">

**Author:** [@amtrax325](https://discuss.kotlinlang.org/u/amtrax325)\
**Replies:** 4\
**Last updated:** [January 21, 2022, 6:38pm UTC](https://discuss.kotlinlang.org/t/coroutine-globalscope-async-vs-globalscope-launch/21372 "2022-01-21T18:38:47Z")

</div>

Hi, I’m learning Kotlin Coroutines. Code below shows time measure between GlobalScope.async vs GlobalScope.launch. The problem is that result is same despite that first part is executed asynchronously. fun main(args: …

---

## [Kimmer is ready!](https://discuss.kotlinlang.org/t/kimmer-is-ready/23938)

<div class="topic-metadata">

**Author:** [@babyfish-ct](https://discuss.kotlinlang.org/u/babyfish-ct)\
**Replies:** 2\
**Last updated:** [January 16, 2022, 5:07pm UTC](https://discuss.kotlinlang.org/t/kimmer-is-ready/23938 "2022-01-16T17:07:11Z")

</div>

Hi guys I’ve created a framework: GitHub - babyfish-ct/kimmer: 1. Immer. 2. SQL DSL It brings immer(GitHub - immerjs/immer: Create the next immutable state by mutating the current one) to kotlin/jvm. Create the next i…

---

## [Can I use an InputStream as a body in Ktor HTTP client?](https://discuss.kotlinlang.org/t/can-i-use-an-inputstream-as-a-body-in-ktor-http-client/23855)

<div class="topic-metadata">

**Author:** [@ioannis](https://discuss.kotlinlang.org/u/ioannis)\
**Replies:** 5\
**Last updated:** [January 6, 2022, 7:16pm UTC](https://discuss.kotlinlang.org/t/can-i-use-an-inputstream-as-a-body-in-ktor-http-client/23855 "2022-01-06T19:16:47Z")

</div>

Hello folks! I am stumped by something I have not been able to figure out myself despite considerable experimentation and googling. In a nutshell, what I want to do is feed an InputStream as the body of a PUT request. I…

---

## [Kotlin coroutines stack trace problem](https://discuss.kotlinlang.org/t/kotlin-coroutines-stack-trace-problem/23847)

<div class="topic-metadata">

**Author:** [@reformator](https://discuss.kotlinlang.org/u/reformator)\
**Replies:** 4\
**Last updated:** [January 5, 2022, 9:24pm UTC](https://discuss.kotlinlang.org/t/kotlin-coroutines-stack-trace-problem/23847 "2022-01-05T21:24:01Z")

</div>

Kotlin coroutines is a great feature that allows you to write asynchronous code in synchronous style. It’s absolutely perfect until you need to investigate problems in your code. One of the common problems with corouti…

---

## [Gallia bindings for Kotlin (Scala data transformation library)](https://discuss.kotlinlang.org/t/gallia-bindings-for-kotlin-scala-data-transformation-library/23785)

<div class="topic-metadata">

**Author:** [@anthony.cros](https://discuss.kotlinlang.org/u/anthony.cros)\
**Replies:** 0\
**Last updated:** [December 28, 2021, 3:24pm UTC](https://discuss.kotlinlang.org/t/gallia-bindings-for-kotlin-scala-data-transformation-library/23785 "2021-12-28T15:24:25Z")

</div>

Hi all, I recently published an article in Towards Data Science (Gallia: A Library for Data Transformation | by Anthony Cros | Towards Data Science) describing Gallia, my personal library for data transformations writte…

---

## [Send updates from Kotlin multiplatform library to the app that is using the library](https://discuss.kotlinlang.org/t/send-updates-from-kotlin-multiplatform-library-to-the-app-that-is-using-the-library/23566)

<div class="topic-metadata">

**Author:** [@hassanjamilahj](https://discuss.kotlinlang.org/u/hassanjamilahj)\
**Replies:** 6\
**Last updated:** [December 27, 2021, 10:27am UTC](https://discuss.kotlinlang.org/t/send-updates-from-kotlin-multiplatform-library-to-the-app-that-is-using-the-library/23566 "2021-12-27T10:27:33Z")

</div>

Hello Please I need to send update from my multiplatform library to the app that is using the library, I need the updates to be fired every 1 minute So I can not find the correct way to do that Can you help me please …

---

## [Ktor: accept and accept-encoding issues](https://discuss.kotlinlang.org/t/ktor-accept-and-accept-encoding-issues/22475)

<div class="topic-metadata">

**Author:** [@Psijic](https://discuss.kotlinlang.org/u/Psijic)\
**Replies:** 1\
**Last updated:** [December 8, 2021, 6:28am UTC](https://discuss.kotlinlang.org/t/ktor-accept-and-accept-encoding-issues/22475 "2021-12-08T06:28:08Z")

</div>

Hello, I have a sensitive server that can pass curl requests well but there are troubles with Ktor same requests. While I have completely same headers and data, I found 2 issues: Ktor adds application/json to accept eve…

---

## [Can I copy the continuation object in kotlin？](https://discuss.kotlinlang.org/t/can-i-copy-the-continuation-object-in-kotlin/23481)

<div class="topic-metadata">

**Author:** [@ruxiliang](https://discuss.kotlinlang.org/u/ruxiliang)\
**Replies:** 1\
**Last updated:** [November 18, 2021, 10:47am UTC](https://discuss.kotlinlang.org/t/can-i-copy-the-continuation-object-in-kotlin/23481 "2021-11-18T10:47:10Z")

</div>

I want to implement the “do comprehension for List” in kotlin, and I want to use suspend functions to do it for the compiler can automatically do the CPS transformation for me. But as I implement it, I found that I canno…

---

## [Char.toByte() - Conversion of Char to Number is deprecated?](https://discuss.kotlinlang.org/t/char-tobyte-conversion-of-char-to-number-is-deprecated/23465)

<div class="topic-metadata">

**Author:** [@pasn1ak](https://discuss.kotlinlang.org/u/pasn1ak)\
**Replies:** 3\
**Last updated:** [November 17, 2021, 12:55am UTC](https://discuss.kotlinlang.org/t/char-tobyte-conversion-of-char-to-number-is-deprecated/23465 "2021-11-17T00:55:58Z")

</div>

' '.toByte() returns Byte The doc (below) states “Use Char.code property instead.” but ' '.code returns Int I need a ASCII byte for comparison in ByteArray (in some low level network code). So should I use ' '.code.to…

---

## [callbackFlow ExperimentalApi warning w/ kotlinx-coroutines 1.5.2](https://discuss.kotlinlang.org/t/callbackflow-experimentalapi-warning-w-kotlinx-coroutines-1-5-2/23361)

<div class="topic-metadata">

**Author:** [@Steell](https://discuss.kotlinlang.org/u/Steell)\
**Replies:** 1\
**Last updated:** [November 1, 2021, 9:53pm UTC](https://discuss.kotlinlang.org/t/callbackflow-experimentalapi-warning-w-kotlinx-coroutines-1-5-2/23361 "2021-11-01T21:53:25Z")

</div>

fun main() = runBlocking { callbackFlow\<Unit\> { send(Unit) }.collect {} } With implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2' in my gradle dependencies, I’m seeing the following compiler warning: …

[Previous page](https://discuss.kotlinlang.org/c/libraries/11.md?page=2)

[Next page](https://discuss.kotlinlang.org/c/libraries/11.md?page=4)
