2 ms·
or, Java Virtual Threads and chill.
by cbm-vic-20 2mo ago
or, Java Virtual Threads and chill.
- biorach 2mo agoNo. Because concurrency vs parallelism
- MichaelNolan 2mo agoHow does parallelism come into play for this conversation? Async/await is a concurrency construct. And Java’s virtual threads are also a concurrency construct. Neither of them have anything to do with parallelism. Or am I misunderstanding something?
- PhilipRoman 2mo agoI'd say Java's virtual threads are also a parallelism construct (at least in the performance sense, not logical guarantees), since they're scheduled on a pool.
- mitxela 2mo agoAlso formerly known as goroutines Both efforts, instead of trying to avoid threads because they are expensive, simply asked why they have to be expensive and then made them not expensive.
- tcfhgj 2mo agothey are still more expensive than compiled async await, also mixing compute and io-bound work can cause issues
- yxhuvud 2mo agoMost of the dimensions exist in the threaded world as well, only the dimensions wasn't as explored at that point so the choices are usually not what would have been chosen today.