Re:Project Loom: Fibers and Continuations for the Java Virtu...
by tomp on Friday November 03, 2017 @11:19AM
(#15619812)
You wrote the proposal? Amazing! Any clue when it might get implemented, or how might I experiment with it before it's part of the official HotSpot release? I think fibers would really bring JVM to the next level...
[ Parent
| on HN ]
Re:Project Loom: Fibers and Continuations for the Java Virtu...
by pron on Friday November 03, 2017 @11:58AM
(#15620137)
Once the voting period is complete, in another week, there will be a mailing list for the project. We'll publish binaries from time to time for people to try. In the meantime, you can play with Quasar, to see if you like the model (although as Loom would be implemented in the JVM, we expect it to be more robust, more efficient and even more convenient).
Re:Project Loom: Fibers and Continuations for the Java Virtu...
by tomp on Friday November 03, 2017 @12:11PM
(#15620250)
Yeah, I've considered playing with Quasar, but I'm a bit concerned about the "colored functions" that it imposes. In any case, I'm mainly interested in Fibres as a code generation platform (for some toy languages I'm playing with), and obviously there I could avoid having to use Quasar/bytecode rewriting by simply emitting functions as state machines in the first place... My hope for project Loom is to be able to avoid this, i.e. to have it taken care of automagically by JVM.
Re:Project Loom: Fibers and Continuations for the Java Virtu...
by pron on Saturday November 04, 2017 @01:38PM
(#15626055)
Quasar doesn't have colored functions, and you can instrument your code at build time, as part of the compilation process. But an implementation in the JVM is indeed more robust and efficient.