<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body>
    <br>
    <br>
    <div class="moz-cite-prefix">On 13/01/2026 10:13, Remi Forax wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:2111937546.13899793.1768299199908.JavaMail.zimbra@univ-eiffel.fr">
      <pre wrap="" class="moz-quote-pre">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.
</pre>
    </blockquote>
    <br>
    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.<br>
    <br>
    -Alan<br>
  </body>
</html>