Generators built on virtual threads?
Alan Bateman
Alan.Bateman at oracle.com
Mon May 23 17:10:33 UTC 2022
On 20/05/2022 17:26, Daniel Avery wrote:
> Will it ever be possible to implement generators efficiently in Java? (eg
> is there room to reduce the context-switching overhead of virtual threads,
> or, is there a possibility of exposing a more efficient primitive to build
> on top of in the future (eg continuations?))
Right, generators can be built efficiently on top of continuations. So
while not part of the current JEPs, generators are something that this
project does want to explore more.
-Alan
More information about the loom-dev
mailing list