# Kotlin multiplatform libraries

**URL:** https://discuss.kotlinlang.org/t/kotlin-multiplatform-libraries/15546
**Category:** Multiplatform
**Created:** [December 21, 2019, 12:19pm UTC](https://discuss.kotlinlang.org/t/kotlin-multiplatform-libraries/15546 "2019-12-21T12:19:00Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![snorbi](https://avatars.discourse-cdn.com/v4/letter/s/94ad74/32.png) [@snorbi](https://discuss.kotlinlang.org/u/snorbi)
#### Post date: [December 21, 2019, 12:19pm UTC](https://discuss.kotlinlang.org/t/kotlin-multiplatform-libraries/15546/1 "2019-12-21T12:19:00Z")

</div>

I started a new hobby project: [Kotlin World](https://github.com/kotlin-world/kotlinw-project)  
It will be a multiplatform Kotlin library (for JVM and JS).  
Additionally, I plan to provide some non-trivial Kotlin [examples](https://github.com/kotlin-world/kotlinw-project/tree/master/example)

Goals:

- reuse Java types on JVM (if possible)
- do not reinvent the wheel, use existing platform implementations (if possible)

What do you think? Is there a place for such library/project?  
I don’t want to spend my time on hopeless/useless work… 🤔

Thanks.

---

<div class="post-metadata">

### Author: ![Wasabi375](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/wasabi375/32/4741_2.png) [@Wasabi375](https://discuss.kotlinlang.org/u/Wasabi375)
#### Post date: [December 21, 2019, 12:51pm UTC](https://discuss.kotlinlang.org/t/kotlin-multiplatform-libraries/15546/2 "2019-12-21T12:51:45Z")

</div>

Honestly I think your time would be better spend contributing to the existing kotlin mmp libraries that already work on those problems. For math I suggest checking the kotlin slack group(join here: [Kotlin Slack Sign-up](https://kotl.in/slack)) or ask @darksnake.  
UUID and other common utility functions are part of [kotlin extlib](https://github.com/kotlin-extra-library/kotlin-extlib/) and for time there is a current [KEEP](https://github.com/Kotlin/KEEP/blob/durations/proposals/stdlib/durations-and-clocks.md) with an experimental implementation so you should at least look to build your API on top of that. Also I think there are already some other time libraries for kotlin, I don’t have any links though, but I guess google will find them 😉  
Also a comprehensive time library as you outline in your readme takes a lot of work and should in my humble oppinion be a standalone library and not part of something bigger as it is complex enough, but that’s just me.

---

<div class="post-metadata">

### Author: ![Wasabi375](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/wasabi375/32/4741_2.png) [@Wasabi375](https://discuss.kotlinlang.org/u/Wasabi375)
#### Post date: [December 21, 2019, 1:11pm UTC](https://discuss.kotlinlang.org/t/kotlin-multiplatform-libraries/15546/4 "2019-12-21T13:11:22Z")

</div>

> [@snorbi](#):
>
> The types/features listed in the readme are already working

Yeah for some reason I though you were planing on implementing this yourself, but I see you just delegate to jvm/js implementations, so yeah. Still for it to be used in kotlin I think it should also work well with the KEEP I linked above.

---

<div class="post-metadata">

### Author: ![darksnake](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/darksnake/32/2479_2.png) [@darksnake](https://discuss.kotlinlang.org/u/darksnake)
#### Post date: [December 21, 2019, 1:59pm UTC](https://discuss.kotlinlang.org/t/kotlin-multiplatform-libraries/15546/5 "2019-12-21T13:59:46Z")

</div>

It seems like you want to duplicate [KorGE Game Engine & Korlibs · GitHub](https://github.com/korlibs). I agree with @Wasabi375 about contributing to existing projects. We have a lot of toy-libraries in Kotlin ecosystem and not a lot of stable solutions. I think it is better to have one stable library with good API than several unfinished attempts. We have JS ecosystem as an example of the second approach.
