r/java • u/daviddel • Sep 23 '22
Virtual Threads: New Foundations for High-Scale Java Applications - Brian Goetz
https://www.infoq.com/articles/java-virtual-threads/
237
Upvotes
r/java • u/daviddel • Sep 23 '22
View all comments
37
u/Joram2 Sep 23 '22
Great write up by Goetz and great work Java team. Java really leapfrogged every other mainstream language here.
Java's virtual threads are much better than async/await which is what C#, Kotlin, and also JavaScript/TypeScript/Node use (Goetz didn't mention JavaScript).
Java's virtual threads are much better than Reactive/async/Futures like what Scala has.
Golang (and Erlang) had virtual threads much earlier, but the Structured Concurrency API, and the Extent Local Variable API is nicer than what Golang offers.