Generators
Alan Bateman
Alan.Bateman at oracle.com
Wed Nov 24 15:03:43 UTC 2021
On 24/11/2021 14:51, Pedro Lamarão wrote:
> :
> I have updated my generator experiments by forking loom
> and adding code in the generators branch, java.base module,
> java.util.generator package:
> https://github.com/pedrolamarao/jdk-loom/tree/generators/src/java.base/share/classes/java/util/generator
> The generator-based DER parser has been updated to use a build from the
> above:
> https://github.com/pedrolamarao/loom-asn
> If you could provide some general feedback on this approach, that would be
> awesome.
> From this foundation, I think it would be very easy to provide an Iterable
> generator.
>
It's great to experiment in this area. I suspect approaches along these
lines will require the generator is to thread confined, it would
otherwise be unsafe to yield on one thread and then be called again on
a different thread.
-Alan
More information about the loom-dev
mailing list