|5 days ago||7 days ago|
|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.
Project Valhalla: A look inside Java's epic refactor
2 projects | news.ycombinator.com | 2 Dec 2023
Nice. So for example, it looks like Kotlin has a nearly identical feature at the language level which will be optimizable when Valhalla ships: https://github.com/Kotlin/KEEP/blob/master/notes/value-class...
> In the future, in a Valhalla-capable JVM, JVM primitive classes will enable efficient representation of Kotlin value classes with an arbitrary number of underlying fields on JVM.
Unchecked Java: Say Goodbye to Checked Exceptions Forever
6 projects | news.ycombinator.com | 13 Jul 2023
Most other languages agree that checked exceptions are not good by not having them.
As for alternatives, Try/Result and similar monads have decent adoption even in Java, but personally I quite like the Kotlin philosophy  to not have generic error containers and either use runtime exceptions or make failures of the return type.
Is runCatching in use in any of your projects ? My team is abusing it
2 projects | /r/androiddev | 20 Mar 2023
More on OOP: Polymorphism this time
5 projects | /r/rust | 7 Feb 2023
The nitty-gritty is in the KEEP. They show in the end how they considered to add type classes, and then discarded the idea.
Making Lenses Practical in Java
4 projects | news.ycombinator.com | 15 Jan 2023
Lenses work today. And I think the value class feature will be awesome.
Adding Coeffect System to Java with Project Loom
2 projects | /r/java | 10 Aug 2022
Seems like Kotlin Context Receivers then (https://github.com/Kotlin/KEEP/blob/master/proposals/context-receivers.md).
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.
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 | /r/Kotlin | 22 Apr 2022
[Question][Kotlin] Dexter Runtime Permissions development has stopped, whats the alternative?
10 projects | /r/androiddev | 8 Apr 2022
This will be furthermore simplified with multiple receivers coming very soon
How would I serialize a JSON primitive to a class?
2 projects | /r/Kotlin | 1 Jul 2023
Have you tried this:? https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/serializers.md2 projects | /r/Kotlin | 1 Jul 2023
It might be possible with a value class
Is rust serde unique?
6 projects | /r/rust | 19 Apr 2023
I think kotlinx.serialization might come close, but looks like custom Encoders and Decoders are still experimental.
Why should I use kotlinx.serialization?
4 projects | /r/Kotlin | 24 Feb 2023
This is the issue to +1 https://github.com/Kotlin/kotlinx.serialization/issues/1931
Generate Kotlin client for a complex web API
7 projects | dev.to | 9 Feb 2023
Modern Android Development in 2023
7 projects | dev.to | 23 Jan 2023
Apple's Swift rewrite of its Foundation framework will be open source
4 projects | /r/programming | 14 Dec 2022
Kotlin Serialization is also a newer option, but doesn't have as much traction.
Jackson, moshi or kotlinx.serialization?
8 projects | /r/Kotlin | 19 Oct 2022
``` see the docs
Connect-Web: It's time for Protobuf/gRPC to be your first choice in the browser
10 projects | news.ycombinator.com | 4 Aug 2022
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?
5 projects | /r/functionalprogramming | 2 Aug 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
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
KorGE - KorGE Game Engine. Multiplatform Kotlin Game Engine
xmlutil - XML Serialization library for Kotlin
xls2json - Read in Excel file (.xls, .xlsx, .xlsm) and output JSON.