|about 1 month ago||5 days ago|
|-||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.
Rust: A Critical Retrospective
19 projects | news.ycombinator.com | 19 May 2022
Kotlin has value classes. Here's a good overview of how they work in Kotlin: https://github.com/Kotlin/KEEP/blob/master/notes/value-class...
That document is a few years old now and was intended as a design document. But Value classes shipped with Kotlin 1.5. Apparently they are compatible with the project Valhalla value objects that will be added to the JVM at some point. So, this stuff is coming.
I had to look it up because even though I write Kotlin a lot, value classes are not something I have used at all. Looks useful but not that big of a deal and doesn't really solve a problem I have. Data classes and records (in Java) are a bigger deal IMHO.
In practice, the way you deal with immutability in Kotlin is to keep most of your data structures immutable by default unless they need to be mutable. E.g. there's a List and a MutableList interface. Most lists are immutable unless you create a MutableList. Same with val vs. var variables. Val variables can't be reassigned and you kind of use var only by exception when you really have to. The compiler will actually warn you if you do it without good reason. A data class with only vals can't be modified. Java is a bit more sloppy when it comes to mutability semantics. It has records now but all the fields have setters by default. It has var but no val assignments (you can use final to force this but few people do). And so on.
Semantically this is not as strong as what Rust does of course but it's good enough to make e.g. concurrency a lot easier. Mostly, if you avoid having a lot of mutable shared state, that becomes a lot easier.
You could imagine a Kotlin like language with much stronger semantics implementing borrow checking instead of garbage collection. It wouldn't be the same language of course but I don't think it needs to be very different. Using it would not be a massively different.
Toying with Kotlin's context receivers
1 project | dev.to | 16 May 2022
KEEP: Context receivers
Java record pattern matching in JDK 19
4 projects | news.ycombinator.com | 14 May 2022
I'd be very interested in a comparison between scala 3 using/given and Kotlin new context receivers https://github.com/Kotlin/KEEP/blob/master/proposals/context...
Why no one recommends the use of the standard library's Result class but a custom sealed class approach?
4 projects | reddit.com/r/Kotlin | 22 Apr 2022
[Question][Kotlin] Dexter Runtime Permissions development has stopped, whats the alternative?
10 projects | reddit.com/r/androiddev | 8 Apr 2022
This will be furthermore simplified with multiple receivers coming very soon
Combining scripts and DSLs is Kotlin’s most underrated feature
1 project | reddit.com/r/Kotlin | 24 Mar 2022
I’m realizing I forgot to mention the scripting proposal in the post, will add it soon.
Java 20 looks like it may be one of the biggest updates in years
2 projects | reddit.com/r/java | 23 Mar 2022
Tfw no pattern matching. :(
Encapsulate successful or failed function execution
1 project | news.ycombinator.com | 17 Feb 2022
Preview of Kotlin 1.6.20 With Prototype of Context Receivers, Parallel Compilation on JVM, Incremental Compilation in JS
1 project | reddit.com/r/Kotlin | 8 Feb 2022
I hadn't gone over the Context Receivers design proposal until now (and still doing so, so take this with a grain of salt), but the use of what is seemingly a function call(but not) to define them seems like a bad choice. I'm sure there are design constraints that pushed this option forward, but it just seems really odd and out of place in the current Kotlin language design.
JSpecify: Express specifications (initially, just nullness properties) in a machine-readable way
9 projects | reddit.com/r/java | 26 Jan 2022
I'm aware that kotlin decided against this in kotlin itself, see https://github.com/Kotlin/KEEP/issues/82.
Is there a good JSON to Gson converter for Kotlin !
2 projects | reddit.com/r/Kotlin | 21 Mar 2022
Implementing Jetpack Compose + Orbit MVI
6 projects | dev.to | 10 Feb 2022
Name Link Koin https://insert-koin.io Jetpack Compose https://developer.android.com/jetpack/compose Navigation Compose https://developer.android.com/jetpack/compose/navigation Orbit MVI https://orbit-mvi.org Coil https://coil-kt.github.io/coil/ Room https://developer.android.com/training/data-storage/room?hl=ja Kotlin-Serialiazation https://github.com/Kotlin/kotlinx.serialization PokemonGO-Pokedex https://github.com/Biuni/PokemonGO-Pokedex
Kotlin or Java?
2 projects | reddit.com/r/androiddev | 2 Feb 2022
Learn Kotlin. This guide is quite good for the basics. After that, definitely learn about Coroutines. Then question your libraries, there are a lot of pretty convenient Kotlin-optimized libraries available, like ktor (HTTP client) or Kotlin Serialization.
Don't know how to pull API which has it's property names changing depending of call.
1 project | reddit.com/r/Kotlin | 24 Jan 2022
For mapping you can use the Kotlin serilization library. See the example in the introduction, that should help: https://github.com/Kotlin/kotlinx.serialization
Kotlinx Serialization equivalent for GSON's RunTimeTypeAdapterFactory?
1 project | reddit.com/r/android_devs | 18 Jan 2022
I believe it is explained indeed by this article: https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/polymorphism.md
typeOf<T> and KType
2 projects | reddit.com/r/Kotlin | 12 Jan 2022
You might find this interesting: https://github.com/Kotlin/kotlinx.serialization/issues/1348
What are the most common used (3rd party) libraries and frameworks used in Android development?
30 projects | reddit.com/r/androiddev | 7 Jan 2022
JSON de/serialization: Kotlin serialization, Moshi
Android Kotlin Developer Nanodegree Projects Review
11 projects | dev.to | 17 Dec 2021
You can now also use the KotlinX Serialization library which is in the stable release. This library supports JSON deserializing without Reflection based lookups and hence can save a lot of memory and time for large projects and also supports MultiPlatform. The syntax is fairly easy but very powerful when deserializing large JSON.
100% Kotlin Twitter Library
3 projects | reddit.com/r/Kotlin | 29 Nov 2021
I scanned your build.gradle though and it looks like the only possibly tricky thing is the use of fasterxml.jackson. If you decide to support multiplatform, I'd first suggest migrating that dependency to Kotlinx serialization
Looking for an old dependency: org.jetbrains.kotlinx:kotlinx-gradle-serialization-plugin:0.5.1
1 project | reddit.com/r/Kotlin | 2 Nov 2021
I tried to find the source and build it locally but the only possible source I could find seems to have a dependency to org.jetbrains.kotlinx:kotlinx-gradle-serialization-plugin as well. So, it's clearly not the right source.
What are some alternatives?
Moshi - A modern JSON library for Kotlin and Java.
jackson-module-kotlin - Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.
klaxon - A JSON parser for Kotlin
spring-native - Spring Native provides beta support for compiling Spring applications to native executables using GraalVM native-image compiler.
compose-jb - Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
koin - Koin - a pragmatic lightweight dependency injection framework for Kotlin
KorGE - KorGE Game Engine. Multiplatform Kotlin Game Engine
kotlinx.html - Kotlin DSL for HTML
kotlinx-datetime - KotlinX multiplatform date/time library
xls2json - Read in Excel file (.xls, .xlsx, .xlsm) and output JSON.
Gson - A Java serialization/deserialization library to convert Java Objects into JSON and back