https://kotlinlang.org logo
r

Robert

12/26/2018, 9:22 AM
Is there a channel/tracker where we can request new libraries to become multiplatform? For example I would love to use
InetAddresses
, but it is not compatible.
a

altavir

12/26/2018, 9:46 AM
You probably should create a ticket in appropriate repository
3
r

Robert

12/26/2018, 10:54 AM
But it is a java class, so where should I create it then? Can't create it with Java/Oracle obviously
a

altavir

12/26/2018, 10:55 AM
Then it does not exist. You should find a library that have similar functionality. I would start with https://github.com/ktorio/ktor
You should remember that it is not the aim of the kotlin to just copy everything that exists in Java, so in some cases Koltin will provide different (in most cases better) API.
r

Robert

12/26/2018, 11:54 AM
But you want to be compatible with the most popular libraries from the Java world I would say. That's one of the main reasons what drives users towards Kotlin instead of others. Also, without it, most projects can't even make the switch
a

altavir

12/26/2018, 11:55 AM
Yes, but you can't use librarires from Java world on JS. For JVM kotlin usually uses wrappers.
r

Robert

12/26/2018, 11:57 AM
(ktor looks awesome, but isn't multiplatform from what I can see, will be a hell of a job to do so. Especially just for replacing one or two simple Java classes 😋)
👎 1
But the more general question. If something is not yet available on Kotlin (especially multiplatform) is there a central place where one can post requests (and add bounties)?
a

altavir

12/26/2018, 12:00 PM
It is partially multiplatform. And yes, there is a https://youtrack.jetbrains.com/oauth?state=%2Fissues%2FKT. Though I think that requests to just give you some class from java without motivation will be discarded. I am not sure what you mean by bounties.
👌 1
🔥 1
r

Robert

12/26/2018, 12:14 PM
Bounties is like funding. It is unfair to make one company pay for the development of a library if actually multiple companies wants to use it. By adding bounties to a task companies can make it more appealing for developers to start working on a task or library.
(28000+ issues, nice 🤣)