Software Alternatives & Reviews

The compact overview of JDK 21’s “frozen” feature list

Medium Conc
  1. 1
    Welcome to Medium, a place to read, write, and interact with the stories that matter most to you.
    Pricing:
    • Open Source

    #Blogging #Blogging Platform #CMS 2197 social mentions

  2. 2
    Better structured concurrency for go. Contribute to sourcegraph/conc development by creating an account on GitHub.
    While virtual threads will be stable in Java 21, Structured Concurrency is still a preview feature. You probably won't see it in production anytime soon. Preview features require a special flag when compiling and running them, and they won't run on newer versions of the JVM. I don't expect to see StructuredTaskScope in common production use before the next LTS version is out. But it doesn't mean you cannot have structured concurrency before that. Even in language that mostly enforce Structured Concurrency like Kotlin, it's still a library feature. Even the original blog post which formulated this concept, described a library that implemented structured concurrency for Python[1]. You can pretty easily implement structured concurrency yourself by creating your own implementation of StructuredTaskScope, if you need it right now. You can even structured concurrency in C#[2] or Go[3]. [1] https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/ [2] https://github.com/StephenCleary/StructuredConcurrency.

    #Application And Data #Languages & Frameworks #Concurrency Frameworks 6 social mentions

Discuss: The compact overview of JDK 21’s “frozen” feature list

Log in or Post with