Project Loom & Kotlin: Will Coroutines become obsolete? by Urs Peter

Поділитися
Вставка
  • Опубліковано 15 вер 2024
  • For more info on the next Devoxx UK event 👉 www.devoxx.co.uk
    Finally: Project Loom has been officially announced for Java 19 as a preview feature! Loom will be a game-changer for the JVM’s concurrency model, delivering ‘reactive’ characteristics out of the box without the need for complex concurrency abstractions.
    Regarding Kotlin, the concurrency features project Loom offers are already available through Coroutines. So the question is: Will Loom make Coroutines obsolete, catapulting Coroutine code to the realm of legacy from one day to another?
    In this talk, we will try to answer this question and learn a great deal about modern concurrency. Starting with a global introduction to how Loom achieves lightweight concurrency, I will compare essential characteristics with Coroutines, such as suspend calls, structured concurrency, and context propagation across Threads. Live-coded examples will illustrate the pros and cons of the different approaches and give you a better understanding of the underlying concurrency concepts. Moreover, light will be shed on whether it makes sense to combine Loom with Coroutines.
    At the end of the talk, you have gained a good understanding of what Loom will mean for Java and how it will impact Kotlin, so you are ready for the next ‘big thing’ on the JVM .

КОМЕНТАРІ • 6

  • @Anbu_Sampath
    @Anbu_Sampath Рік тому +10

    One of the best presentation to understand how loom and coroutines works under the hood.

  •  9 місяців тому +2

    Thank you so much. I finally understand the Coroutines and Loom project!

  • @kornkode
    @kornkode Рік тому +2

    Thank you so much for such a great presentation and anticipating the goodies to come! hype java 21!

  • @ansarozden5767
    @ansarozden5767 11 місяців тому +3

    31:00 the most cool part of Loom for backward compatibility with old blocking IO libs

  • @PixelHamster
    @PixelHamster 7 місяців тому +1

    Good talk, thank you

  • @andy_ltluan
    @andy_ltluan Рік тому +2

    Like it 🎉