News for hackers. Stuff that matters.
Re:Go Creeping In by Thaxll on Tuesday June 18, 2019 @08:09AM (#20212103)
I started working with Kotlin recently, it's bad compare to Go goroutine model, the biggest problem is actually knowing if a function is sync or async, especially when you use other Java lib.

The fact that you need to create your own threads pool to run those koroutine, really it's inferior to the Go runtime that does everything for you ( multiplexing goroutines onto os threads, creating new thread if blocking ect .. ), in Go it just works and it makes sense, in Kotlin you need to do many many things manually and it's much more complex for no apparent reasons.

Re:Go Creeping In by eropple on Tuesday June 18, 2019 @09:14AM (#20212585)
It's more complex because you have more control. If the Go scheduler does something pathological, you're going to be digging a hell of a lot deeper than you need to in Kotlin.

You can just use a shared executor with a growing pool if you don't care.

Re:Go Creeping In by apta on Tuesday June 18, 2019 @11:38AM (#20214274)
Java is getting a fiber (green thread) implementation by means of project Loom. I recommend you check it out. In the mean time, you have other solutions like Vertx, Akka, and Reactor/RxJava.