News for hackers. Stuff that matters.
Re:Using Java's Project Loom to build more reliable distribu... by shellac on Tuesday May 10, 2022 @04:17AM (#31324749)
It's more accurate to say Loom is [a particular type of] continuations in the JVM, which can be used to implement green threads / fibers.

You can see the implementation of VirtualThread here: https://github.com/openjdk/loom/blob/fibers/src/java.base/sh...

This uses the internal 'one-shot delimited continuation': https://github.com/openjdk/loom/blob/fibers/src/java.base/sh...

So, at least in principle, there is scope for other styles of concurrency to be implemented over this.

There are no comments on this comment yet.