No video

[VDIASI23] - Venkat Subramaniam - Keynote: Where Promises Fall Short

  Рет қаралды 12,585

Devoxx

Devoxx

Жыл бұрын

Multithreading has been in Java from day one but there is no such similar concept in the JavaScript world. Programmers using JavaScript have predominantly used asynchronous programming, callbacks, promises, and async-await. May be not too surprising, however, both the .NET platform/C# and the JVM/Java introduced asynchronous programming much later in their evolution. On the JVM we now have three options, multithreading APIs, CompletableFuture, and the Virtual Threads (as part of Project Loom). In this keynote we will discuss the APIs of the present and the future. Then we will dive into the nature of the problems and the approaches to solutions where one particular API may be better suited than the other. We will tease apart the details of these APIs to improve clarity of what they provide and when and where we should use one over the other.

Пікірлер: 16
@javisartdesign
@javisartdesign Жыл бұрын
Master Venkat! always learning from you.
@pramoth-dev
@pramoth-dev Жыл бұрын
He is my idol.
@nishantsabharwal13
@nishantsabharwal13 Жыл бұрын
favorite comedian
@jackgame8841
@jackgame8841 10 ай бұрын
venkat much more better talk this than agile stuff
@praveens2272
@praveens2272 Жыл бұрын
Mic issues 😔
@user-vp2nb2ie9k
@user-vp2nb2ie9k Жыл бұрын
In reality - don't ever use parallel stream.
@adambickford8720
@adambickford8720 Жыл бұрын
It would have to be cpu bound and have a sufficiently large amount of data to offset the overhead of parallel... and i haven't seen that happen in practice yet.
@cod3r1337
@cod3r1337 Жыл бұрын
I had literally one (yes, one) real world use case in close to 20 years of coding. It was handy to have around then (and that was in C#, Java didn't yet have that feature back then :-D) So is having this feature when you need it worth the complexity it adds to the core platform? I'm gonna have to say no.
@patrickhart6371
@patrickhart6371 Жыл бұрын
@@adambickford8720 why wouldn't it help io bound code?
@rahulat85
@rahulat85 Жыл бұрын
​@@patrickhart6371 It would definitely help with IO, because instead of 1 thread doing IO there are 8 IO (assuming there are 8 cores). However here comes the tricky part, if you are the only consumer of system forkjoin pool, then all is gonna be well. but if you are interfacing with other system/libraries, they might be using forkjoin pool too, so effectively, you're blocking other components. Happy to be corrected!
@HarmeetSingh0013
@HarmeetSingh0013 Жыл бұрын
audio and video are not synced.
@vaibhavm1986
@vaibhavm1986 Жыл бұрын
Exceptions can be handled always , what is to do with functional style , What Venkat is trying to mean here ?
@sheer_luck
@sheer_luck Жыл бұрын
The flow will break for functions down the line if don't return some number. If you put exceptionally in between 2 calls thenApply() and thenReturn(), you have to return (in this case) some number like -1 or something to handle the exception scenario. But choosing such number is difficult and error prone.
@TJ-hs1qm
@TJ-hs1qm 10 ай бұрын
Exceptions don't compose.
@Jebusankel
@Jebusankel Жыл бұрын
First
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 34 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 36 МЛН
ROLLING DOWN
00:20
Natan por Aí
Рет қаралды 7 МЛН
Кадр сыртындағы қызықтар | Келінжан
00:16
Rediscovering JavaScript, Venkat Subramaniam
43:47
Codecamp Romania
Рет қаралды 769
Asynchronous Programming in Java using Virtual Threads, Venkat Subramaniam
49:16
Bulgarian Java User Group
Рет қаралды 11 М.
Teaching old Streams new tricks  By Viktor Klang
50:51
Devoxx
Рет қаралды 20 М.
Know your Java? by Venkat Subramaniam
37:41
Devoxx
Рет қаралды 16 М.
Coroutines and Loom behind the scenes by Roman Elizarov
45:22
Kotlin by JetBrains
Рет қаралды 31 М.
The Amazing Features of Modern Java  - Venkat Subramaniam
1:02:01
Developer Summit
Рет қаралды 29 М.
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 34 МЛН