- examples re: Project Loom in JDK 21
- usage of egg here is intended as an SSCCE; not a hidden feature
- as of September 2023, these work using Bash but not Gradle or Maven
- GitHub actions are broken, pending availability of JDK 21
- see branch
jdk-19
for this repo using JDK 19 (including Gradle and Maven) - includes examples for virtual threads
- includes examples for structured concurrency, which is "preview" in JDK 21
- we use
sc
for "structured concurrency" in the folder names
- we use
- see README for each example
- test message
- create token on GitHub for workflow scope
- use
git remote set-url origin https://codetojoy:[email protected]/codetojoy/easter_eggs_for_java_loom.git
- JEP 425 Virtual Threads
- JEP 428 Structured Concurrency
- Brian Goetz on Virtual Threads
- Java 19 Virtual Threads - JEP Café
- Project Loom: Modern Scalable Concurrency for the Java Platform by Ron Pressler
- 12m00s : "codes like sync, scales like async"
- 12m34s : excellent discussion on Thread vs async/await in various languages
- 30m44s : great slides illustrating 1:1 versus M:N
- 37m34s : Little's Law
- Project Loom: Revolution in concurrency or obscure implementation detail? by Tomasz Nurkiewicz
- contrarian view
- Project Loom - A Friend or Foe of Reactive? by Oleh Dokuka and Andrii Rodionov
- contrarian view
- esp. near 19m20s
- AMA About the Java Language by Brian Goetz and Nicolai Parlog
- near 19m10s, "Loom will kill Reactive programming"
- reddit thread here
- Project Loom Q&A with Ron Pressler
- esp. near 55m25s
- Project Loom C5M
- 5 million concurrent connections
- Conway's Game of Life with virtual threads
- blog post: Notes on structured concurrency, or: Go statement considered harmful by Nathaniel J. Smith