https://kotlinlang.org logo
#coroutines
Title
# coroutines
e

Evgeniy Zaharov

03/20/2018, 8:06 AM
Hi! Does anybody know, how future implementation of continuation (http://cr.openjdk.java.net/~rpressler/loom/Loom-Proposal.html) from Java will affect to coroutines? And will affect this proposal at all?
👍 2
also I have ask this question at stackoverflow (https://stackoverflow.com/questions/49379308/how-future-implementation-of-continuation-from-java-will-affect-to-coroutines-a), I think answer will be interesting for many.
e

elizarov

03/20/2018, 2:13 PM
It is too early to tell. We don't know how (and if) this proposal materializes. The goals that are set there are pretty bold and challenging, but even if they are partially achieved we might leverage some of the new JVM APIs for more efficient implementation of Kotlin coroutines.
👍 6
e

Evgeniy Zaharov

03/20/2018, 2:39 PM
@elizarov thanks for answer!
e

enleur

03/20/2018, 3:45 PM
anyway it would be great if jvm libs start to support coroutines/fibers as they do for reactivestreams
e

elizarov

03/20/2018, 3:53 PM
It would be great if JVM libs start being asynchronous. It does not matter how (callbacks, futures, rx, anything). We can leverage any kind of asynchronous library
Even if it as messy as a proposed JDBC 2 where every method returns
CompletableFuture
we can live with it. We can always write nice Kotlin DSL with suspending functions around it.
s

suresh

03/21/2018, 7:49 AM
might be interesting here https://twitter.com/MikaelVidstedt/status/960878394941550592

https://www.youtube.com/watch?v=fpyub8fbrVE&index=4&list=PL2ekzZZrxVUkhrcMKuPMbiKoghc777plr

👍 2
5 Views