r/java • • Aug 02 '22

Bright future to Java devs ahead 🚀

https://www.youtube.com/watch?v=2nOj8MKHvmw
188 Upvotes

27 comments sorted by

View all comments

12

u/Iryanus Aug 02 '22

Looking forward to it, but currently we are using Akka, which also allows a huge load of actors working at the same time with only a few real threads underneath it - and Akka offers a cleaner programming model than threads, to be honest.

18

u/[deleted] Aug 02 '22 edited Aug 02 '22

Completely agree, a ton of scenarios feel much more natural with actors than with threads. Besides, Akka and Loom have always sounded perfectly compatible to me, if I had to guess the biggest impact of Loom would be the introduction of a virtual thread dispatcher for blocking calls to replace the fixed thread pool one.

Not to mention all the Akka libraries that make developing distributed systems easier that have nothing to do with Loom.

Edit: The amount of downvotes is ridiculous :shockedpikachu:

2

u/Iryanus Aug 03 '22

Yeah, it will probably take a while until we have a version of Akka that uses virtual threads under the hood, but I'm also looking forward to that, combining the Akka programming model with the low-level virtual threads for even better performance sounds really promising. (Also the votes seem to have evened out, no clue what some people were reading there.)