multik
kotlinx.serialization
Our great sponsors
multik | kotlinx.serialization | |
---|---|---|
9 | 52 | |
613 | 5,063 | |
2.9% | 2.2% | |
8.3 | 8.5 | |
about 2 months ago | 1 day ago | |
Kotlin | Kotlin | |
Apache License 2.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
multik
-
multidimensional arrays
If you need a simpler array syntax, have a look at the official multi dimensional array library for Kotlin: https://github.com/Kotlin/multik
One other notable resource when it comes to multidimensional arrays in Kotlin is the multidimensional library from the creators of Kotlin called Multik which has a good blog post showcasing how the library can be used to improve the developer experience when working with multidimensional arrays.
-
NumPy equivalent for Java?
for JVM https://github.com/Kotlin/multik
- Numpy for kotlin
-
Kotlin Team AMA #3: Ask Us Anything
Multik (NumPy analogue) - Multidimensional array library for Kotlin.
-
Natural language processing with Kotlin: Part-of-speech tagging with Hidden Markov Model
To work with matrices, I'm using multik, a multidimensional array library for Kotlin. It has been publicly released recently, and you can read more about it on the Kotlin blog.
-
Matrices multiplication benchmark: Apache math vs colt vs ejml vs la4j vs nd4j
Can the benchmark add the recent https://github.com/Kotlin/multik And https://github.com/Kotlin/kotlin-numpy
kotlinx.serialization
-
How would I serialize a JSON primitive to a class?
Have you tried this:? https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md
It might be possible with a value class
-
Is rust serde unique?
I think kotlinx.serialization might come close, but looks like custom Encoders and Decoders are still experimental.
-
Why should I use kotlinx.serialization?
This is the issue to +1 https://github.com/Kotlin/kotlinx.serialization/issues/1931
- Generate Kotlin client for a complex web API
-
Modern Android Development in 2023
Kotlin Serialization
-
Apple's Swift rewrite of its Foundation framework will be open source
Kotlin Serialization is also a newer option, but doesn't have as much traction.
-
Jackson, moshi or kotlinx.serialization?
``` see the docs
-
Connect-Web: It's time for Protobuf/gRPC to be your first choice in the browser
It makes sense for some use cases but the vast majority of use cases, parsing overhead is simply not a concern. Mobile phones are fast, networks have plenty of bandwidth (and the savings are marginal), parsers are pretty good.
But done right, binary protocols are sometimes worth the marginal savings they provide. We switched over one of our APIs to use CBOR instead of json. It's a search API that we hit a lot and I wanted to cut down on the bytesize of the responses a little. The savings are not that impressive. But I'll take 10% when i can get it.
Otherwise, this was a pretty simple change. We use kotlinx serialization in a multi-platform library. Basically, all we did is configure it to use CBOR instead of json. https://github.com/Kotlin/kotlinx.serialization/blob/master/... Half hour job. Haven't looked at it since; just works. It supports protobuf as well but it looked like more hassle to set up so we went with CBOR instead.
-
FP for web/mobile apps in 2022?
I'm very much with you on kotlinx.serialization's pain points. And unfortunately, there just doesn't seem to be much of a willingness to fix them. They seem very tied to their polymorphic/contextual serialization model, despite all the problems it causes.
What are some alternatives?
jackson-module-kotlin - Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
Moshi - A modern JSON library for Kotlin and Java.
klaxon - A JSON parser for Kotlin
Gson - A Java serialization/deserialization library to convert Java Objects into JSON and back
spring-native - Spring Native is now superseded by Spring Boot 3 official native support
kotlin-json - A JavaScript Object Notation library for Kotlin JVM.
compose-multiplatform - Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
kotlinx-datetime - KotlinX multiplatform date/time library
koin - Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform
nd4j - Fast, Scientific and Numerical Computing for the JVM (NDArrays)
xmlutil - XML Serialization library for Kotlin
xls2json - Read in Excel file (.xls, .xlsx, .xlsm) and output JSON.