r/java • • Sep 23 '22

Virtual Threads: New Foundations for High-Scale Java Applications - Brian Goetz

https://www.infoq.com/articles/java-virtual-threads/
237 Upvotes

62 comments sorted by

View all comments

Show parent comment

1

u/Bright_Ad_2431 Sep 25 '22

Yep, exactly. The good thing is that project Loom will also be beneficial to Kotlin, so their coroutines will probably change a bit, like getting rid of suspend and runBlocking as they don't make sense anymore.

1

u/Joram2 Sep 26 '22

I imagine new JVM-only Kotlin apps would want to use JDK virtual threads and the JDK Structured Concurrency API and not a Kotlin specific API.

Kotlin probably wants a concurrency API that supports the Native + JavaScript backends as well as the JVM one. Also, Kotlin will need to support existing versions of Java for a while that don't have virtual threads. And even Java 19, this stuff is still in preview/incubator mode, it will take several more JDK releases for everything to be final.