mike-neckのブログ

Java or Groovy or Swift or Golang

雑記 - Fiber はなくなりました

WebFlux が云々というツイートがあったので、こんなツイートしました…

そしたら…

こんなリプライもらいました

…え、あれ? Fiber なくなったの? Project Loom はコケたということ?マジで?!調べてみた!

cr.openjdk.java.net

上のリンクの 「Sidebar: Why “Virtual”?」というところに以下のように書いてありました。

In previous iterations of the project, we called our lightweight, user-mode threads “fibers”, but found ourselves repeatedly explaining that they are not a new concept but a different implementation of a familiar one — the thread.

(雑な意訳) プロジェクトの前回のイテレーションでは、軽量なユーザーモードのスレッドを fibers と呼んできたけど、何度も新しいコンセプトではないいつも身近にあったものの再実装だと説明していることに気がついた。そう、スレッドだ。


そんなわけで、 Fiber と呼ばれてたものはいつの間にか VirtualThread になってたようです