|10 days ago||4 months 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.
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 | reddit.com/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 | 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
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. :(
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.
State of Valhalla
2 projects | news.ycombinator.com | 25 Dec 2021
I really enjoy the "scope" pattern that Kotlin uses. Where to learn more?
2 projects | reddit.com/r/Kotlin | 25 Nov 2021
If you like the idea of CoroutineScope, CoroutineContext, suspend, you will like the Kotlin Coroutines Design proposal https://github.com/Kotlin/KEEP/blob/master/proposals/coroutines.md
Kotlin assertion libraries - JUnit, Hamkrest and Strikt
3 projects | reddit.com/r/Kotlin | 6 Jan 2023
I’m getting recommendations a compiler plug-in that also looks very interesting https://github.com/bnorm/kotlin-power-assert
Kotlin Team AMA #3: Ask Us Anything
52 projects | reddit.com/r/Kotlin | 27 May 2021
Other examples are atomicfu and power assert (developed and maintained externally!), and we expect this list to grow even further.
What are some alternatives?
KorGE - KorGE Game Engine. Multiplatform Kotlin Game Engine & Korlibs
compose-jb - Compose Multiplatform, a modern UI framework for Kotlin that makes building performant and beautiful user interfaces easy and enjoyable.
htmx - </> htmx - high power tools for HTML
swift-evolution - This maintains proposals for changes and user-visible enhancements to the Swift Programming Language.
kotlinx.serialization - Kotlin multiplatform / multi-format serialization
kotlin-jupyter - Kotlin kernel for Jupyter/IPython
kotlin-multiplatform-libsodium - A kotlin multiplatform wrapper for libsodium, using directly built libsodium for jvm and native, and libsodium.js for js targets.
kotlin-result - A multiplatform Result monad for modelling success or failure operations.
PeopleInSpace - Kotlin Multiplatform project with SwiftUI, Jetpack Compose, Compose for Wear, Compose for Desktop, Compose for Web and Kotlin/JS + React clients along with Ktor backend.
koin - Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform
kotlindl - High-level Deep Learning Framework written in Kotlin and inspired by Keras
kotlinx.coroutines - Library support for Kotlin coroutines