Asynchrony: Under the Hood - Shelley Vohr - JSConf EU

  Рет қаралды 137,111

JSConf

JSConf

Күн бұрын

Пікірлер
@bagoquarks
@bagoquarks 6 жыл бұрын
Callbacks, promises, generators, and async/await all explained in 25 minutes. Well done!
@Dygear
@Dygear 4 жыл бұрын
It takes so much effort to make something complex, easy to understand. This is a really impressive talk!
@paulalexwilson
@paulalexwilson 5 жыл бұрын
Truly understanding something requires that we have a solid appreciation of at least 1 abstraction deeper. This talk was exactly what I was looking for.
@pixelpaxal
@pixelpaxal 6 жыл бұрын
If you already have a good grasp of callbacks, promises and async/await in javascript, this talk is a good review to put these these things into perspective and language evolution context, it could help one understand when to use one over the other.
@sandeepparmar3113
@sandeepparmar3113 9 ай бұрын
In the hell of tutorials, This is the true gem
@toxicdesire8811
@toxicdesire8811 6 жыл бұрын
Most underrated talk of entire jsconf
@AccelerateEffectively
@AccelerateEffectively 6 жыл бұрын
Truly impressed by this talk. I thought I knew everything about async/await and promises but she proved me wrong.
@nztuber
@nztuber 4 жыл бұрын
Great stuff! At 5:38 to be clear, the execution order suggested on the right is not true for *all* callbacks, only *asynchronous* callbacks. (If they are synchronous callbacks then the invocation order would be doA, doB, doC, doD, doE, doF)
@rtech8779
@rtech8779 4 жыл бұрын
yaa thats right its applicable for async calls only, for sync call it will wait in the call stack.
@yuansizhu6271
@yuansizhu6271 3 жыл бұрын
So that's why callbacks are not guaranteed to be asynchronous. But promises are, even when they are already resolved/rejected.
@PiyushAggarwal-hz9es
@PiyushAggarwal-hz9es 2 ай бұрын
6:38 She casually says, "assuming these functions are async". I don't know what that even means in this context.
@makhdv
@makhdv 6 жыл бұрын
Thanks! Needed some time to get use to academic style.
@sijanshrestha7278
@sijanshrestha7278 5 жыл бұрын
yup i had to use notebook to write, but was explained clearly :) :D
@sKopheK
@sKopheK Жыл бұрын
probably cause she read it
@ITWorx
@ITWorx 3 жыл бұрын
A very good explanation for promises vs callbacks, thank you!
@payphones
@payphones 6 жыл бұрын
21:00 actually made me go "ohhhhhhhhhh"
@alexagna
@alexagna 6 жыл бұрын
Indeed ! The combination of destructuring, async/await and Promise.all() to have a non-blocking version of multiple await is really smart
@mojojojo1211
@mojojojo1211 4 жыл бұрын
This is a great talk. Deserves more views!
@abhikumar2469
@abhikumar2469 5 жыл бұрын
Damn...! this engineer got some serious and rare content on callback, promises and async/await.
@Henrique-yw1rb
@Henrique-yw1rb 6 жыл бұрын
First slide is a meme of Nazaré, a character from a famous tv show here in brazil! LOL
@dixztube
@dixztube Жыл бұрын
This was so goood. Great job!
@hkjpotato
@hkjpotato 3 жыл бұрын
good summary of you dont know JS 1. now. and then, run to complete, continuation, trust. Exception is sync? 2. yield control to event loop? 3. promise is microtask queue, a placeholder of a future status 4. before anyelse can happen
@ahmedal-obaidi792
@ahmedal-obaidi792 4 жыл бұрын
pretty much reading "YDKJS: async & performance"
@alabidavid4674
@alabidavid4674 4 жыл бұрын
Generators could have an end. That's property done set to true in which case they stop yield anything but done:true. Also, you can terminate generators by return();
@sanderd17
@sanderd17 6 жыл бұрын
I wanted to have seen this talk so much earlier. Very well done.
@maltegb
@maltegb 3 жыл бұрын
Great talk! Everything clearly explained
@josephlee5829
@josephlee5829 2 жыл бұрын
Excellent Job explaining!
@randy4ii411
@randy4ii411 2 жыл бұрын
Thanks for the awesome lesson.
@ssougnez
@ssougnez 6 жыл бұрын
Awesome ! It would be even more perfect with a mention to Observables though. But congratulation, very clear and sweet to listen to :-D
@arunas1
@arunas1 6 жыл бұрын
Thanks @Shelley Vohr! Good job!
@floopy312
@floopy312 6 жыл бұрын
13:21 Can somebody write me a piece of code with an "infinite microtask loop" like she mentions, I'm not sure how you can do that.
@monolizm
@monolizm 5 жыл бұрын
you can find the answer here at 27 min kzbin.info/www/bejne/mXSyfWqDeJmDopI.
@romankos3283
@romankos3283 5 жыл бұрын
const loop = () => Promise.resolve(loop); loop();
@vscode4232
@vscode4232 3 жыл бұрын
Great talk
@asianfoodie5908
@asianfoodie5908 3 жыл бұрын
Well executed!! most of the time i ignored error handling, not anymore :)
@singingofstars
@singingofstars 6 жыл бұрын
Nice job. Easy to understand.
@Mostafaabobakr7
@Mostafaabobakr7 5 жыл бұрын
Love the Intro Music
@enzoscardamaglia9565
@enzoscardamaglia9565 4 жыл бұрын
"Since they're not running in the top-down sequential order you might expect." at 05:57. Has anyone tried that out? If I'm not mistaken in Node, FF, Chrome and Edge the functions run exactly in the sequential order I'm expecting.
@electroaddiction
@electroaddiction 4 жыл бұрын
Since every callback is asynchronous (eg: setTimeout(cb, 0)), it will execute in the order specified.
@kps2642
@kps2642 6 жыл бұрын
awesome talk, thank you.
@jameswon5497
@jameswon5497 5 жыл бұрын
Really great talk!
@HarshitSharma-cd4tr
@HarshitSharma-cd4tr 3 жыл бұрын
Every Single time you call dot then on a promise it creates and return a new promise
@biboswanroy6699
@biboswanroy6699 5 жыл бұрын
I aren't yet sure of the role of queues and their scope exactly.
@terranova3941
@terranova3941 5 жыл бұрын
I just watched this prior and is maybe what you are looking for: kzbin.info/www/bejne/bpKqmY2HoNR5mLM
@anastazjawrobel8040
@anastazjawrobel8040 3 жыл бұрын
Super :)
@dumbfailurekms
@dumbfailurekms Жыл бұрын
i googled her name and looked at her github and immediately realized i have no fking chance in this field
@giullianopaz8262
@giullianopaz8262 5 жыл бұрын
Brazilian meme in the first slide haha
@BinaryReader
@BinaryReader 5 жыл бұрын
Inversion of Control doesn't cause significant trust issues.
@halakhita_hk
@halakhita_hk 5 жыл бұрын
good ..
@ElChitarrino
@ElChitarrino 2 жыл бұрын
Really great stuff there, thanks a lot! However, I feel the urge to mention it's quite hard to follow due to your verbal breaks each 3-5 syllables. No offense intended.
@nischalofchrist
@nischalofchrist 2 жыл бұрын
great lesson, learnt a lot, but she should really evaluate how to dress when you are invited to be a speaker in such a huge event.
@kazmonroy
@kazmonroy 2 жыл бұрын
Have you seen how other male developers dress when they go to other big conferences? Geez. She's totally fine.
@philliplam2704
@philliplam2704 Жыл бұрын
Her expertise on this shit is srsly turning me on 😂
@felipepino834
@felipepino834 Жыл бұрын
Quiero aprender inglés 😪😪😪🥺 para entender mejor. Y si ya se que KZbin tiene subtitulos gracias
@tauiin
@tauiin 2 ай бұрын
Did it help :P
Do you love Blackpink?🖤🩷
00:23
Karina
Рет қаралды 16 МЛН
Disrespect or Respect 💔❤️
00:27
Thiago Productions
Рет қаралды 43 МЛН
This Game Is Wild...
00:19
MrBeast
Рет қаралды 169 МЛН
Node's Event Loop From the Inside Out by Sam Roberts, IBM
23:02
Programming Is Cooked
9:30
ThePrimeTime
Рет қаралды 158 М.
The Power of JS Generators by Anjana Vakil
36:10
JSConf
Рет қаралды 168 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
Lin Clark: A Cartoon Intro to WebAssembly | JSConf EU
29:41
Говорят, ЛУЧШИЙ КОМПАКТ! Хвалёный VIVO X200 PRO Mini - не без ПРОБЛЕМ
25:40
Other smartphones vs Nokia #shorts
0:37
ItsDoom Editz
Рет қаралды 44 МЛН
Nokia is built different...☠️
0:39
GoodBoyShaggy
Рет қаралды 1,8 МЛН
Может ли перегореть фонарик?
0:52
Newtonlabs
Рет қаралды 905 М.
with the power of denden it can turn into an iPhone #shorts
0:10
Máy báo động cho gia đình mãi đỉnh
0:31
SaboMall
Рет қаралды 33 МЛН