Kotlin

672 readers
2 users here now

Kotlin is a statically typed programming language for the JVM, Android, JavaScript, and native.

Subreddit rules:

Resources:

founded 1 year ago
MODERATORS
26
27
 
 

I've for a good while been using an excellent port of Scala's persistent data structures in my Kotlin code known as Dexx. This also works well from Java code.

However, while the project is what I would call feature complete, it's no longer maintained, resulting in outdated dependencies. It would also become problematic should any bugs or issues pop up.

Hence I decided to fork it as Sigbla PDS and tidy it up a bit, with v1.0 now released and ready for use.

28
29
 
 

I was using freecodecamp's tutorial on Kotlin but I was told that a video isn't a good way to learn a language. So I did the hyperskill course but it marks all of my answers as wrong even when the code works, and the subscription for more than ten questions a day is crazy expensive. I will be getting atomic kotlin soon but I still want to learn before it comes

30
31
32
2
Coil goes multiplatform (talkingkotlin.com)
submitted 1 year ago by [email protected] to c/kotlin
 
 

At least they took the grant from the Kotlin Foundation... Let's wait for version 3 to be ready!

33
34
 
 
35
36
3
Won't it? Open for debate (www.donnfelker.com)
submitted 1 year ago by [email protected] to c/kotlin
 
 

Seen this post by Donn Felker (!) on some other discussion platform and though I'd like to see the opinion of Lemmings about it.

37
38
39
40
 
 

Usually when I read a KMP article it talks about mobile. This one is about JS and the JVM.

41
4
Making Multiplatform Better (talkingkotlin.com)
submitted 1 year ago by samus7070 to c/kotlin
 
 

In this episode, we talk to Rick Clephas, one of the Kotlin Foundation Grants Program winners and the creator of KMP-NativeCoroutines and KMM-ViewModel.

When I last used KMP it was before the new memory model so I avoided coroutines as much as possible. A year later and it looks to be so much easier and better now.

42
43
2
Molecule and Mosaic updates out (mastodon.jakewharton.com)
submitted 1 year ago by Mreeman to c/kotlin
44
 
 

Hey, I am trying to do some data storing on compose multiplatform for ios and Android and tried using Jetpack Datastores but it seems that the class Context does not exist for shared platforms does anyone have any ideas on how to do this?

45
 
 

I bumped into this interesting behavior around unsigned types. At first I was confused why UInt doesn't extend Number, but as I was experimenting, it got weirder. It sometimes is a Number (see case c below) and sometimes isn't (see case d)?!

val a: Int = 12
a is Number // true

val b: UInt = 12u
b is Number // doesn't compile, `Incompatible types: Number and UInt`

val c: UInt = 12u
(c as Any) is Number // true, Idea says "No cast needed"

val d: Any = 12u
d is Number // false

I guess this is partly legacy of Java, which doesn't have unsigned types, and partly effect of UInt being value class. I'm curious if someone has a deeper explanation.

46
27
Kotlin 1.9.0 Released! (blog.jetbrains.com)
submitted 1 year ago by austin to c/kotlin
47
48
49
10
submitted 1 year ago by snowe to c/kotlin
50
view more: ‹ prev next ›