4 ms·
> Kotlin is becoming more and more popular. Are we better off learning Kotlin instead of Go? How does Kotlin handles concurrency? Now I've heard that Kotlin ha
by camus2 9y ago
> Kotlin is becoming more and more popular. Are we better off learning Kotlin instead of Go?
How does Kotlin handles concurrency? Now I've heard that Kotlin has a "Kotlin native" version. I didn't try it yet, but if that's the case and it has good concurrency support then Yes, in theory it could compete with Go, more than Scala native would, Scala is too complicated for the kind of audience attracted by Go.
- SureshG 9y agoOn JVM and Native kotlin does support coroutines and supports all kinds of concurrency models (including go style goroutines). Check this more details - https://github.com/Kotlin/kotlinx.coroutines/blob/master/coroutines-guide.md#guide-to-kotlinxcoroutines-by-example https://github.com/Kotlin/kotlinx.coroutines/blob/master/cor...
- weberc2 9y agoI don't think that has to routines. Goroutines are multiplexed across threads automatically by the scheduler, so all I have to care about is describing concurrent operations. Further, all I/o is async under the hood, so you never have to worry if a call will block the thread. Also, Go's concurrency is muuccchhh simpler.