[External] : Re: Ephemeral threads
Alan Bateman
alan.bateman at oracle.com
Tue Jan 13 12:34:45 UTC 2026
On 13/01/2026 10:13, Remi Forax wrote:
> While it makes sense to see Java coroutine as Thread, it makes less sense to see generators as Thread.
>
> So if we introduce generators, we will use a different mechanism than virtual threads,
> so the expectations are not the same, so most of the spooky issues discuss here do not exist.
We are getting a bit off topic but we can't be too dismissive of the
spooky issues that would go with the control flow of generators. Even if
implemented on delimited continuations, and even if thread confined,
there are a bunch of related to reachability and breaking structure.
There's enough there to keep a market for Ghostbuster proton packs going
for a few years.
-Alan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/loom-dev/attachments/20260113/235a6f47/attachment.htm>
More information about the loom-dev
mailing list