3 ms·
I'm a bit confused, because I don't see the commonality between Go and Project Loom other than lightweight threading. Go's whole concurrency model is still fun
by bcrosby95 4y ago
I'm a bit confused, because I don't see the commonality between Go and Project Loom other than lightweight threading. Go's whole concurrency model is still fundamentally different from Java as it went all in on CSP, and Project Loom isn't.
Beyond that, nothing about Project Loom fundamentally changes the design of all but the most performance sensitive concurrent programs in Java.
For most of us plain programmers that Go was targeted at anyways, a bucket of OS threads is just fine. Now they will be a bucket of virtual threads, which will be nicer, but not exactly game changing.
- sriram_malhar 4y agoGo didn’t really go all in on CSP. It provides primitives for shared memory concurrency as well, in addition to message passing. And if you have messages that are not fully immutable, the producer and consumer have to use mutexes to avoid inconsistency. No different from Loom. What it does better than Loom is that all system APIs are savvy about goroutine yielding