i got that one to work just now, but was wondering...
# kotlin-native
j
i got that one to work just now, but was wondering if that only works bc it's bundled?
j
Not exactly, but it does give it a leg up
j
was originally trying to find a JSON lib that would work (kotlinx.serialization seems to work, yay) , but now I'm interested in finding any libs that would work, just for the sake of making one or two work
j
I don't know of any that will do object binding in a multiplatform context.
j
looking at https://github.com/KotlinBy/awesome-kotlin, there's a few called "pure kotlin" that end up depending on java
j
Just parsing JSON in a multiplatform way is easy, but there aren't the necessary reflective APIs for creating and binding objects yet
j
"parsing JSON in a multiplatform way is easy"... is there a lib I should know?
j
I'm just saying that parsing JSON is the least interesting part of providing a JSON library
j
ah, got it
j
The reason these libraries still depend on Java APIs is because Kotlin does not provide the APIs necessary to provide the features of a JSON (or XML or whatever) library across platforms
j
and those APIs are?
reflection ?
j
pretty much, yep
you can't see annotations on properties, you can't create instances of objects reflectively, etc.
j
right. to understand my context: I just wanted to try making a windows program ( without jvm) that does a bunch of basic stuff ( JSON parsing, running other programs ) and I guess I expected a few more Kotlin-only libs in general.
This seems to be a nice example of one that supports many targets, but I still couldn't get it to work : .. https://github.com/ionspin/kotlin-multiplatform-bignum
motivation is really that I like writing Kotlin, and would be able to create small exe files without any dep's... I guess it's a bit of a weird case.
j
The ecosystem needs people building up multiplatform libraries, so perhaps you could help fill that void!
j
I hear ya 🙂
even just setting up a lib project that builds is quite a hurdle.. but yeah... and hey, thanks for responding