What the heck is the event loop anyway? | Philip Roberts | JSConf EU

2014 ж. 8 Қаз.
3 337 834 Рет қаралды

JavaScript programmers like to use words like, “event-loop”, “non-blocking”, “callback”, “asynchronous”, “single-threaded” and “concurrency”.
We say things like “don’t block the event loop”, “make sure your code runs at 60 frames-per-second”, “well of course, it won’t work, that function is an asynchronous callback!”
If you’re anything like me, you nod and agree, as if it’s all obvious, even though you don’t actually know what the words mean; and yet, finding good explanations of how JavaScript actually works isn’t all that easy, so let’s learn!
With some handy visualisations, and fun hacks, let’s get an intuitive understanding of what happens when JavaScript runs.
Transcript: 2014.jsconf.eu/speakers/philip...
License: For reuse of this video under a more permissive license please get in touch with us. The speakers retain the copyright for their performances.

Пікірлер
  • This talk is the perfect example of "If you can't explain it simply, you don't understand it well enough". Well done Philip.

    @marios2liquid@marios2liquid9 жыл бұрын
    • That's quit simple!

      @MehdiRaash@MehdiRaash4 жыл бұрын
    • agreed

      @JenJHayden@JenJHayden4 жыл бұрын
    • Agreed!

      @gopalgplus@gopalgplus4 жыл бұрын
    • CS50 teacher explains very well too.. Sometimes i'm worried he will forget to breath..

      @pastuh@pastuh4 жыл бұрын
    • That sounds wonderful.

      @seongamkim4834@seongamkim48344 жыл бұрын
  • Today I had interview and was asked about execution context and i explained him based on this video. my interviewer was so impressed with the my answer. he said "This is the best explanation i have heard so far". made my day 🙂

    @apoorvasa1026@apoorvasa10262 жыл бұрын
    • amazing

      @davidlee588@davidlee5882 жыл бұрын
    • nice!

      @mohamedGado3@mohamedGado3 Жыл бұрын
    • Did you get the job though?

      @darthvader1368@darthvader1368 Жыл бұрын
    • Nice !

      @zikoelitbook1422@zikoelitbook1422 Жыл бұрын
    • congratulations

      @damonesswu8254@damonesswu8254 Жыл бұрын
  • He understood it in 18 months, for me it took 26 minutes, that is how much he helped me, really appreciate it. Time is all you have. Thank you man!!!

    @syedmuhammadibtisam441@syedmuhammadibtisam441 Жыл бұрын
    • Not nearly at the same level though

      @simpleffective186@simpleffective1867 ай бұрын
  • 9 years later, and this is still pure gold.

    @sumanyusoniwal5194@sumanyusoniwal5194Ай бұрын
  • I like this guy. He's so humble and explains things with such clarity - an for a universal audience. That's no easy feat.

    @sunmustbedestroyed@sunmustbedestroyed9 жыл бұрын
    • John totally agree, great presentation

      @ChrisBrooksbank@ChrisBrooksbank9 жыл бұрын
    • +John Yeah! I just saw he's from &yet, they seem like a really thoughtful bunch

      @hoorayimhelping3978@hoorayimhelping39788 жыл бұрын
    • This was hardly for an universal audience

      @raigorstonehoof6477@raigorstonehoof64774 жыл бұрын
    • @@bvrulez why man?

      @thothtrismegistus929@thothtrismegistus9294 жыл бұрын
    • "Fucking Gilfoyle"

      @Daniel_WR_Hart@Daniel_WR_Hart3 жыл бұрын
  • 13:45 "The event loop job is to look at the stack and look at the task queue. If the stack is empty, it takes the first thing on the queue and pushed it on to the stack."

    @AndreOliveira-vq7iv@AndreOliveira-vq7iv5 жыл бұрын
    • what if there's multiple tasks in the queue ... and they'll get done in some order ... doesn't that make it a sync-function of it's world??

      @mementomori8856@mementomori88563 жыл бұрын
    • never mind ...

      @mementomori8856@mementomori88563 жыл бұрын
    • @@mementomori8856 it's async for you as a developer, but at the end, there has to be a queue for that poor single thread... serverless is serverless for you but at the end there has to be a server to run your code!

      @khaledelnagar4135@khaledelnagar41353 жыл бұрын
    • @@khaledelnagar4135 This makes no sense

      @luuuzeta@luuuzeta Жыл бұрын
    • @@luuuzeta It does make sense, but only if you have some basic working knowledge or better on how multithreading works, and the fact that JS is still a single-threaded language despite supporting asynchronous code.

      @kaelon9170@kaelon9170 Жыл бұрын
  • 00:53 how does javascript actually work ? 02:46 V8, setTimeout 04:03 the call tack 07:18 blocking, what happens when things are slow 10:35 aynchronous callbacks, setTimout 11:13 aynchronous callbacks, the call stack 11:56 concurrency 12:50 stack, webapis, eventloop, task queue, console

    @domaincontroller@domaincontroller3 жыл бұрын
    • 00:53 how does javascript actually work ? 02:46 V8, setTimeout 04:03 the call stack 07:18 blocking, what happens when things are slow 10:35 aynchronous callbacks, setTimout 11:13 aynchronous callbacks, the call stack 11:56 concurrency 12:50 stack, webapis, eventloop, task queue, console

      @FoysalAhmed-gd9sp@FoysalAhmed-gd9sp Жыл бұрын
  • 8 years ago and this is still my favorite explanation of the event loop. Brilliant communication.

    @R3fuge@R3fuge2 жыл бұрын
  • watching this in 2019, and it is still the best source to learn JS event loop.

    @luciferonetwothree2030@luciferonetwothree20305 жыл бұрын
    • couldn't agree more, just rewatched it there for a refresh

      @bennyrussell4966@bennyrussell49664 жыл бұрын
    • watching this in 2020

      @castelocl@castelocl4 жыл бұрын
    • @@castelocl and still relevant!

      @petrd6173@petrd61734 жыл бұрын
    • still the best in 2020

      @user-xb8bk1hd8s@user-xb8bk1hd8s4 жыл бұрын
    • @@user-xb8bk1hd8s I agree

      @yuanmin6496@yuanmin64964 жыл бұрын
  • Best event-loop explanation ever .... !!!

    @thedevcyclist@thedevcyclist7 жыл бұрын
    • What about Jake Archibalds explanation?

      @johannbauer2863@johannbauer28635 жыл бұрын
  • For videos like this, youtube should implement a multi-thumbs-up system.

    @andriciandu@andriciandu5 жыл бұрын
    • They already do, how else you think Fake news is so "Popular" these days

      @RockDavid@RockDavid4 жыл бұрын
    • @@RockDavid I think you misunderstood what he was meaning.

      @coldblackice@coldblackice2 жыл бұрын
  • i can't even express how much i appreciate this video. i watch it every couple of months as a refresher. and encourage my team to do the same.

    @c3eb4@c3eb44 жыл бұрын
  • this video changed my life,.. great

    @nadiar.syaripul@nadiar.syaripul8 жыл бұрын
    • +Nadiar AS Same, his show is really clear, I learned so much thanks to him :p

      @babas_babas@babas_babas8 жыл бұрын
    • Yeah, awesome presentation

      @jonnieve2483@jonnieve24837 жыл бұрын
    • Truly is. Mine too. Simply Brilliant Video

      @lakshithaweerakkody5326@lakshithaweerakkody53266 жыл бұрын
    • You need to know about Tony Alecia

      @aishahale5504@aishahale55045 жыл бұрын
    • lol.

      @Gigusx@Gigusx5 жыл бұрын
  • This guy just cleared the stack for my callback queue of understanding javascript to execute. Great explanation.

    @ManasGupta_mag@ManasGupta_mag7 жыл бұрын
    • @@xxicenturyfuck1195 He mentions he used Keynote, which is the powerpoint for Apple software. There a ton of tutorials online showing how to do animations

      @Nadrioc@Nadrioc4 жыл бұрын
  • Graduated in 2015, worked in JS alone for 4+ years, discovered this only today! Thank you

    @Hariharan-sh6bo@Hariharan-sh6bo3 ай бұрын
  • This gave me a breakthrough moment in realizing how async JS actually works. Really good talk.

    @element3663@element36633 жыл бұрын
  • the gareth bale of js!

    @djkater@djkater7 жыл бұрын
    • so great!!

      @quanghoang8031@quanghoang80314 жыл бұрын
    • was thinking that he looks like Gareth

      @BudyKIr@BudyKIr4 жыл бұрын
    • Exactly !!

      @thelolladorfking2416@thelolladorfking24164 жыл бұрын
    • 🤣

      @SushilYadav7@SushilYadav74 жыл бұрын
    • 😂😂

      @radoncreepgaming2604@radoncreepgaming26043 жыл бұрын
  • I've returned to this video several times to engrain the concept of the event loop in my head. It's so clearly explained and so useful. Thanks so much for making it!

    @jonsanders2069@jonsanders20696 жыл бұрын
  • Genius talk, seriously. Not hiding behind many fancy technicalities and being able to still convey high-level concepts and make them understandable is surely not an easy skill. Props!

    @MelMacaluso@MelMacaluso5 жыл бұрын
  • This video is life-changing! Thank you for this, Philip! It takes great understanding to explain complex things in simple ways. And thank you for not gatekeeping - we need more people to come into tech and videos like this make sure that even noobs understand and can work with seemingly hard concepts!

    @manojmj5479@manojmj54795 жыл бұрын
  • Really, Amazing talk, bro! :) Once I came up across a scenario where calling a function, say "func()" did not work rather, setTimeout(func, 0) worked! Now, I understood the reason completely!! :)

    @navaneethagastya@navaneethagastya9 жыл бұрын
  • This is one of the best lectures on JavaScript that I've seen anywhere. Phillip does a great job of using visualization to explain some of the more complicated aspects of JavaScript programming while making it look easy. That's truly commendable.

    @carlellis9647@carlellis96473 жыл бұрын
  • This is by far one of the best presentations on any programming concept I've ever seen. Absolutely brilliant. Thank you!!

    @hraynaud@hraynaud8 жыл бұрын
  • This was my introduction to great conference talks, and, I really believe, one of the experiences that turned me from hobbyist to developer.

    @maximpekarsky7266@maximpekarsky72662 жыл бұрын
  • 8 years down the lane for this video, current in year 2023. Buffering through many videos on event loop still find this one the best. The energy of this man...can feel it on screen as well. Wish i could attend his session once in my life in person.

    @mdmobasshir595@mdmobasshir59510 ай бұрын
  • This is by far the most informative and accessible talks about asynchronous functionality in JavaScript. Thanks, Philip, for showing us the light.

    @chunk1978@chunk19785 жыл бұрын
  • It's the first time I'm giving a comment in 7 years. This guy did such a great presentation. It was fantastic. Such a complex topic broken down into small lucid chunks ! Great work.

    @AshokDey@AshokDey7 жыл бұрын
    • Puh, hey I'm your callback. Why did you queue me with 5 years delay?

      @Martinit0@Martinit02 жыл бұрын
  • I've been watching some interviews and mocks preparing for my own, and people nebulously reference 'the event loop' and single-threadedness very often, like "How does X work?" "ahh, the event loop", but more in a buzzword way than as an explanation, so thank you for this video. It was super helpful

    @inordirection_@inordirection_2 жыл бұрын
  • Its not just the content of the video that is amazing but also the slides are done so nicely and as a speaker i know making a simpler presentation on a technical topic is very hard. Kudos Philip!

    @dushyantsabharwal6706@dushyantsabharwal67064 жыл бұрын
  • This will no doubt remain a fantastic presentation well into 2020 and beyond. Thank you, Philip!

    @sethfeingold@sethfeingold4 жыл бұрын
  • When I watched this video, I knew it would prove useful for my work. Less than a month later, it happened. Thank you for the great presentation!!

    @JoseSotoCanHelp@JoseSotoCanHelp9 жыл бұрын
  • Wow... amazing lecture. The way he is explaining is great. I wish a whole JS course should be taught by him.

    @rameshwari@rameshwari3 жыл бұрын
  • Honestly, your explanation is down-to-earth for the understanding of all. Great work!

    @msbecks3806@msbecks38063 жыл бұрын
  • Some explanations are so good that you understand the concept crystal clear. It really sticks with you, thank you.

    @bharghavak@bharghavak Жыл бұрын
  • "I did not do a computer science degree, so these words... they're words" I relate so so deeply with that

    @BURN-ADDiCT@BURN-ADDiCT2 жыл бұрын
  • thanks @Philip Roberts first time I completely understand event loop :). If you have some other video on js please share.

    @sushilkumartechy@sushilkumartechy7 жыл бұрын
    • Javascript Understanding the weird parts

      @aishahale5504@aishahale55045 жыл бұрын
    • @@aishahale5504 Different author.

      @NishadAhsan@NishadAhsan4 жыл бұрын
    • @@NishadAhsan Yes, try it.

      @aishahale5504@aishahale55044 жыл бұрын
  • I find myself coming back to this talk as i progress in my career as a JS developer. I think this is my third time watching it, it gets better every time. Well done.

    @Middollo@Middollo Жыл бұрын
  • I've literally read many articles trying to understand this very well, but now I think I do. His explanation is amazing.

    @idrisawedazubair2562@idrisawedazubair25628 ай бұрын
  • 2019 and this is still awesome. Great explanation!

    @agusmoles@agusmoles5 жыл бұрын
  • @19:18 you can see his history. I found it reassuring that a guy with this level of knowledge still has to look up the syntax for Date(). :-) Great dissection of the event loop.

    @nosajghoul@nosajghoul9 жыл бұрын
    • Good example of why code interviews that just test how well someone has memorized various language apis/functions are an ineffective way to determine the candidate's knowledge :)

      @timeslowingdown@timeslowingdown5 жыл бұрын
    • @@timeslowingdown None of those tests actually check if you have those things memorized. All those tests are there to see how you look for the best available solution

      @lighterinthestorm@lighterinthestorm4 жыл бұрын
    • @@lighterinthestorm Finding the solution to a single function with input and output is very different than writing an entire application or maintaining it, so I beg to differ

      @timeslowingdown@timeslowingdown4 жыл бұрын
    • That's why Incognito Mode exists

      @kotekutalia@kotekutalia4 жыл бұрын
    • Remembering the correct parameters for a function in a library is not a prerequisite for being a good developer, in the same way that needing a calculator in a math exam doesn't mean you're cheating. If you like calculating or memorising sure go ahead, but if you're lazy it's fine

      @theshermantanker7043@theshermantanker70433 жыл бұрын
  • So helpful! Great video. I've been learning computer science for years and you still explained all of this better than any professor I've had. Major kuddos to you :)

    @sredna3714@sredna37144 жыл бұрын
  • Thank you for breaking down these concepts into more digestible pieces, still trying to comprehend all of the details but I get the overall idea. Great job!

    @dynamic75@dynamic753 жыл бұрын
  • From someone who does not have a degree in computer science, I have to say, this is one hell of a good explanation! I only which that the teachers that I had during my CS degree, explained things as good as this guy. Really awesome!

    @ClaymorePT@ClaymorePT7 жыл бұрын
    • wish

      @malakies999@malakies9993 жыл бұрын
    • wish

      @alejandrocr9293@alejandrocr9293 Жыл бұрын
    • wish

      @schizo5189@schizo51893 ай бұрын
  • Honestly one of the best videos I've come across. Everything is explained so clearly. He Is excellent at what he does and I hope to hear more from him!

    @BlueTreeCode@BlueTreeCode5 жыл бұрын
  • 7 years later some things have changed. Now we have service workers in a seperate thread. And we have await/async functions. But yes, this talk makes the things clearer to understand. thank you!

    @braunbaerhh@braunbaerhh3 жыл бұрын
  • There are really no words to say how great this talk was. Amazingly clear, fun, and straight to the point.

    @kikevanegazz325@kikevanegazz325 Жыл бұрын
  • Really awesome talk, I knew conceptually what was happening in the event ques prior to watching this, but the visualizations clarify it so well.

    @DanielRamBeats@DanielRamBeats8 жыл бұрын
  • Watched it at the end of year 2020 and it is still one of the best in its kind to explain the event loop.

    @MrLiudongtony@MrLiudongtony3 жыл бұрын
  • I just pause while watching to recheck the speaker's name, wondering that we still have such great speakers. This is by far the best tech conference talk I ever watched in my life!!

    @aminukano_@aminukano_4 жыл бұрын
  • I randomly watched this video a week or two before I went on a job interview five years ago. The event loop came up in some advanced JS discussion and I'm convinced it's a big part of why I got the job. Got another interview coming up and I figured I should probably revisit this just to make sure I still remember it. Still just as informative as I recall.

    @kevinbuffington4008@kevinbuffington40082 жыл бұрын
  • This has to be one of the best explanations out there about the event loop.

    @okikiolaosunronbi8766@okikiolaosunronbi8766 Жыл бұрын
  • I have been trying very hard understanding this whole JavaScript event-loop, callback, and asynchronous concepts for WEEKS (and failed), despite tons of google searches, article readings and tutorials. I think I finally "got it" after watching this video. So thank you SO MUCH for the talk Philip!!! (and thanks for sharing this JSConf!). I sense "hope"... in understanding and using JavaScripts :)

    @johnnychan6755@johnnychan67558 жыл бұрын
    • It's true!

      @ravabat5841@ravabat58414 жыл бұрын
  • By far the best explanation of the JS event loop I ever came across. Must watch for every JS lover out there!

    @abhinavgupta1846@abhinavgupta18462 жыл бұрын
  • I love this talk, he explains asynchronous code so it's totally intuitive and clear. Thanks Philip!

    @arinspanner@arinspanner2 жыл бұрын
  • brilliance! Absolutely stunning. Thank you

    @sahilattri51@sahilattri518 жыл бұрын
  • This was an awesome talk, and i love the tool this dude built. He has changed the way i look at writting my JS.

    @kandysman86@kandysman865 жыл бұрын
  • This explanation changes my life every time I watch it. Thank you!

    @msshwetap7095@msshwetap70953 жыл бұрын
  • Funny how many "senior" JS devs think that they are clever AF because they interview you with this kind of questions but, in here, he managed to explain so clearly these concepts that destroy all the "mystery" of these guys intelligence ... What an awesome explanation! Simple and sharp!

    @guilhermeferreirabr@guilhermeferreirabr2 жыл бұрын
  • The intro music tho.... I turned off the lights and got my glowstick game on. He's amazing. It was an excellent video. My ADHD did not kicked in ever while watching it. 10/10. Will buy again.

    @DecaSpace@DecaSpace7 жыл бұрын
  • Good job brother! Transitioning to JS after 7 year of break on core Java, this was good to quickly pickup the core concepts without which I am blind to start coding a tech.

    @dibyendurb@dibyendurb5 жыл бұрын
  • Probably one of the best talks I've seen in recent times.

    @fhc9916@fhc99163 жыл бұрын
  • One of the best js videos till today. I wonder it was uploaded 8 years ago. If i would have watched then I would be that much AOT (Ahead of time).

    @prashantchauhan1360@prashantchauhan1360 Жыл бұрын
  • Talk about boss mode, great work by Philip! The loop tool he created is amazing for helping to visualize the runtime, event queue/loop and web api! I can only imagine the time that went into creating and researching how to build it and you can see by his facial expression how much of a challenge it must have been hahah!

    @joshdellay3603@joshdellay36039 жыл бұрын
  • No one can explain better than this guy. So far the best demo I have ever seen on jsconf videos

    @deepakkj@deepakkj5 жыл бұрын
  • Still the best explanation of what event loop is, with great examples. Thank you Philip

    @hasanmirarabshahi1956@hasanmirarabshahi19562 жыл бұрын
  • This is absolutely a marvelous explanation of event loops within javascript. It doesn't get better than this, thank you.

    @shalizi1280@shalizi12808 жыл бұрын
    • Do you know what the ppt is made by? I like the ppt style(animation most). but i think the microsoft ppt is so heavy

      @yeshiqing8929@yeshiqing89296 жыл бұрын
    • Ye Shiqing its made in keynote

      @4Y0P@4Y0P5 жыл бұрын
  • Interesting how no textbooks mention this stuff wich in my opinion is crucial in understanding core javascript and especially closures (especially when every example on closures out there contains *for* loop with setTimeout and never explains or even mentions event loop and why does *for* loop first finish its iterations and then invokes setTimeout callbacks)

    @TheHolyReality@TheHolyReality7 жыл бұрын
    • I just made the connection with what you're saying! It finally makes sense!

      @ihateslowcars@ihateslowcars7 жыл бұрын
    • What he means is that a very common practice question given to novices to see if they understand closures is the following: const arr = [0,1,2,3]; for (var i = 0; i < arr.length; i++) { setTimeout(function() { console.log('index ' + i + ', value: ' + arr[i]); }, 3000); } //Prints 'index 4, value: undefined' The issue here is that because var is function scoped and not block scoped, i will break out of the loop when it hits the value 4 (as i will now equal arr.length, breaking the test of the for loop). As index 4 is out-of-bounds, it returns undefined as the value for arr[4]. Closures via something like the let keyword mitigate this problem, however. So the test in question is to see whether or not the novice understands the issues of closure with var versus the new block-level variable definers: let and const.

      @johnb1391@johnb13916 жыл бұрын
    • Javascript: The Good Parts by Doug Crockford explains closures very well. Also function-orientation. Other core JS lang features, but not the event loop.

      @raulnoheagoodness@raulnoheagoodness6 жыл бұрын
    • @@johnb1391 Or maybe a less granular way to explain it is: once the for loop is done setting up the setTimeout callbacks, it is finished, and the variable is at its final value of 4. Meanwhile the callbacks run for 3 seconds each, and they are still active - when they print the value of i, it is always 4 (unexpected). You can create closures around the timeout function value to keep the value of i as it was when the callback was created, by either passing it to a function outside of the loop to create the callback, or just making that setTimeout function an IIFE - immediately invoking it creates the closure while the i is still at its iterative value. Well I guess that was more words lol. Is there any simple way to explain closures?

      @chriscorrigan14@chriscorrigan145 жыл бұрын
    • @@chriscorrigan14 thanks that's a great explanation,, can you include some code examples for "You can create closures around the timeout function value to keep the value of i as it was when the callback was created, by either passing it to a function outside of the loop to create the callback, or just making that setTimeout function an IIFE "?

      @boliussa@boliussa4 жыл бұрын
  • holy crap this talk was from 6 years ago, still the best video I've watched on explaining javascript event loop in 2020

    @gerryramosftw@gerryramosftw3 жыл бұрын
  • This is brilliant! I thought I understood this stuff, but now I really do understand what is going on. Perfect visual examples. Well done.

    @busyrand@busyrand4 жыл бұрын
  • This lecture is just a masterpiece

    @mohammedelhadididi4612@mohammedelhadididi46123 жыл бұрын
  • watching this is 2020, and it is still the best source to learn JS event loop.

    @timzhang8751@timzhang87514 жыл бұрын
  • I knew the concept of event loop but man your explanation is simply amazing. Thanks a lot for putting this up !!

    @AlayDhagia@AlayDhagia4 жыл бұрын
  • the best video ever seen. it's still awesome in 2019!

    @tak68tak@tak68tak4 жыл бұрын
  • This video has helped me cracking interviews!! Thanks Man!

    @rahulraut1569@rahulraut15695 жыл бұрын
  • Thank you, Philip, you have explained really well. And thanks for sharing the Loupe tool, now we can play with it to understand the flow, whenever we are in doubt.

    @vishwajeethol4584@vishwajeethol45843 жыл бұрын
  • Very informative. Though I new most of this already, it was conveyed in an easy to understand manner. One thing that I learned though was that consecutive setTimeout statements don't occur from the point in your code, but occur successively, which I thought was interesting as I just assumed they'd fire when you wrote them in your code (of course factoring in the time passed).

    @theuseraccountname@theuseraccountname4 жыл бұрын
  • worth every second, watching it the second time.

    @syedbaryalay5849@syedbaryalay58495 жыл бұрын
  • Amazing,!! the best and simplest explanation I've seen, thanks

    @juanmanueltoni2506@juanmanueltoni25069 жыл бұрын
  • one of the best if not the best explanation on this particular topic. Philip you really are amazing, keep up the good stuff

    @mohamedkamel7915@mohamedkamel7915 Жыл бұрын
  • 13:47, passes from webapi after settimeout() finishes to task queue and then the vet loop takes a look at the stack and if it's empty, then it goes and takes what's in task you and put it into the stack. 14:57 Async stuff we do setTimeout(function cb() { console.log('there'); }, 0); and then this code will execute after the stack is empty of the other code 23:53 example of not blocking the event loop - they're saying don't put slow shitty code on the stack because the browser can't do what it needs to do which is create a nice fluid UI, 23:34 we can't select anything on the screen while the stack has items, whereas at 23:57 they all go to the callback queue after going through webapis and so it's a clear stack for render queue to render the screen incrementally.

    @abdul.arif2000@abdul.arif20007 күн бұрын
  • Excellent presentation! 👏👏👏

    @gnclmorais@gnclmorais8 жыл бұрын
  • Great explanation.

    @Josematube@Josematube8 жыл бұрын
  • Mind blown!!!!! The lightbulb just turned on. THANK YOU!!!!!!

    @justadev____7232@justadev____72323 жыл бұрын
  • Didn't realize this was 6 and a half years ago, still the best explanation and the only explanation I need!

    @rimoros.1020@rimoros.10202 жыл бұрын
  • oh, that was in 2014 and I thought it is the latest talk, amazing!

    @CodeSynergy@CodeSynergy Жыл бұрын
  • thank you, excellent presentation.

    @rozoneri@rozoneri9 жыл бұрын
  • I remember I watched it back in 2016, and now in 2022, I came back to check if it was as good as I remember, and... yes, it's definitively is. There's a real good stuff here, congrats Philip!

    @cronus663@cronus6632 жыл бұрын
  • I love this talk so much. Can't help but keep coming to watch again every few months.

    @4ndrs_dev@4ndrs_dev10 ай бұрын
  • Well explained! Thank you.

    @teamworkucla@teamworkucla8 жыл бұрын
  • Thank you phillips. i been programming from 12-14 years. never come i across to understand event loop. thank you so simply explained.

    @v4raziel@v4raziel3 жыл бұрын
  • Brilliant. No question that this talk opened up new doors for this young man.

    @ighsight@ighsight2 жыл бұрын
  • Рассказ, понятней чем этот мне ни разу не встречались. Спасибо большое за видео и за перевод

    @user-sl6zf3te7t@user-sl6zf3te7t2 жыл бұрын
  • best explanation ever ! literally

    @mbasitbilal@mbasitbilal7 жыл бұрын
  • honestly this is the best convo about js runtime ive ever listened. thank you phil!

    @theyoutubeliva@theyoutubeliva4 ай бұрын
  • After 5 days It will be 2022, and this is still the best introduction to the event-loop ever. Thank you :)

    @mryildiz702@mryildiz7022 жыл бұрын
  • Fantastic explanation!!!

    @oksanaserhiivna2634@oksanaserhiivna26345 жыл бұрын
  • Great explanation! Just one note: at 23:35 , lines 12 and 13, I think it should instead be array.forEach(function (i) { setTimeout(cb, 0, i); or else the array element will not be passed to the callback and console.log() will log them as 'undefined'.

    @kwstasl2@kwstasl28 жыл бұрын
    • +kwstasl2 Thanks!

      @hoangminhvu2425@hoangminhvu24258 жыл бұрын
    • ***** You're right

      @kwstasl2@kwstasl27 жыл бұрын
    • Yeah, thanks

      @muratcan__22@muratcan__222 жыл бұрын
  • This might be one of the best lectures/presentations I have ever seen. So clear and makes the topic easy to understand. Fabulous work!

    @azur3125@azur31252 ай бұрын
  • This video makes crystal clear that which I've been trying to understand for years. Great job. For the future, I'd sure like to see a follow-on video describing how the concept of promises affects the picture that you have presented.

    @dougjolley4849@dougjolley48493 жыл бұрын
  • Excellent video! Now it would be great if the same animation was used to show the differences (in Node) between setImmediate(f), setTimeout(f,0) and process.nextTick(f)

    @shaminoranger8588@shaminoranger85887 жыл бұрын
KZhead