Voxxed Days Thessaloniki 2023 - Async Showdown: Java Virtual Threads vs. Kotlin Coroutines

  Рет қаралды 2,079

Devoxx

Devoxx

Күн бұрын

Speaker : RICCARDO LIPPOLIS
With so many options available for asynchronous programming on the JVM, it can be hard to keep up. Enter Java Virtual Threads, the new and upcoming feature in Java that promises to change the game. Lightweight, non-blocking, and more efficient than traditional threads, Java Virtual Threads are poised to become the go-to tool for efficient asynchronous programming. But what about Kotlin Coroutines, the popular alternative for asynchronous programming on the JVM? Will they become obsolete?
In this talk, we'll dive deep into the new Java Virtual Threads feature and examine how they work. We'll also explore their potential impact on Kotlin Coroutines and the advantages and limitations of each approach. We'll show how they can be used together to create powerful and efficient asynchronous programming models.
This talk is designed to be accessible to developers of all skill levels. Whether you're new to asynchronous programming or an experienced developer, you'll come away with a better understanding of the latest trends and how to apply them to your own projects.
Join me for this exciting talk and witness the Async Showdown as we compare Java Virtual Threads and Kotlin Coroutines to determine the future of efficient asynchronous programming!

Пікірлер: 4
@Tony-dp1rl
@Tony-dp1rl 9 ай бұрын
Java really made a mess of Virtual Threads. What was needed was something like C#/.NET's TPL, with Tasks clever use of async/await, and dynamic hardware thread use built into the runtime via a hill climbing algorithm. Works so well, and is so simple to use.
@hoaphan-uc3me
@hoaphan-uc3me 8 ай бұрын
It's interesting to hear perspectives on Java's Virtual Threads. While the comment suggests that there's a perceived mess in their implementation, it's worth noting that Java often evolves based on existing patterns and requirements. If you find comfort and efficiency in the familiarity of async/await and .NET's TPL, then that's a great approach to leverage. The analogy of comparing Java Virtual Threads to C#/.NET's TPL and async/await is akin to comparing a banh mi to a ham sandwich. Both have their unique flavors and are appreciated by different palates. If you have a preference for a particular approach, whether it's the simplicity of .NET's concurrency model or the intricacies of Java's Virtual Threads, it's all about choosing what suits your taste and aligns with your development goals. In the end, the beauty of programming lies in the diverse set of tools and languages available, allowing developers to select the ones that resonate with them and best address the challenges at hand. So, whether you enjoy a banh mi or a ham sandwich, the key is to savor the experience of crafting software with the tools that bring you the most satisfaction and efficiency.
@reinterpret_cast
@reinterpret_cast 6 ай бұрын
Virtual threads are slightly higher level compared to C# async/await. They allow for cleaner syntax (you don't have to put async and await in every function) but give you less control of when to suspend execution (i.e. you can't do Task.Yield() in the middle of a long computation). IMHO for most of the relevant use cases this is a good trade-off.
@lufenmartofilia5804
@lufenmartofilia5804 Ай бұрын
I prefere the virtual threads personnally. But you could go with something like kotlin if you don't like it
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН
Nastya and balloon challenge
00:23
Nastya
Рет қаралды 65 МЛН
The Joker wanted to stand at the front, but unexpectedly was beaten up by Officer Rabbit
00:12
Electric Flying Bird with Hanging Wire Automatic for Ceiling Parrot
00:15
Asynchronous Programming in Java using Virtual Threads, Venkat Subramaniam
49:16
Bulgarian Java User Group
Рет қаралды 12 М.
Flutter Belgium Meetup #19
2:38:15
Flutter Belgium
Рет қаралды 88
Headache-Free Reactive Programming With Spring Boot and Kotlin Coroutines
54:21
Async Showdown: Java Virtual Threads vs. Kotlin Coroutines (Riccardo LIPPOLIS)
49:48
Solving distributed systems challenges in Rust
3:15:52
Jon Gjengset
Рет қаралды 241 М.
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН