https://kotlinlang.org logo
#ktor
Title
# ktor
r

rnett

10/27/2020, 1:04 AM
I've seen it mentioned in a few places that a kotlin native server is in the works (eventually). I assume you're going to have to write a HOCON parser for it, are there any plans to open source a multiplatform HOCON parser (and hopefully a kotlinx.serialization backend)?
❤️ 1
c

cy

10/27/2020, 7:42 PM
The idea was to make kotlinx.serialixarion partially support hocon, right.
@sandwwraith cc
s

sandwwraith

10/28/2020, 12:37 PM
kotlinx.serialization's HOCON is currently JVM-only, unfortunately. creating MPP HOCON is a completely new task
c

cy

10/28/2020, 5:08 PM
@sandwwraith what is the reason of that it’s JVM only? Does it depend on the original jar?
s

sandwwraith

10/28/2020, 5:09 PM
Yes, it uses additional jar for parsing, and only then converts config structure to kotlin files
r

rnett

10/28/2020, 10:35 PM
Yeah, I figured that a full mpp Hocon would be out of scope for serialization, but since ktor uses it, it would be necessary to make one at some point for the native server. I'm just hoping it gets open sources and incorporated into kotlinx serialization.
3 Views