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

Channel:JSConf · Length:26:52 · Published:2014-10-09 · Views:3806433

Watch on YouTube

Summary

Philip Roberts explains the JavaScript event loop, call stack, callbacks and asynchronous behavior with live visualizations using a tool he built. It demystifies terms like non-blocking and single-threaded.

Why HN recommends it

HN commenters repeatedly name it as the best explanation of the JS event loop and the first thing to watch before tackling async code.

The tool he created to display the event loop in real time is fantastic. — HN, 2018

Python, Ruby & scripting languages · Web development

Subtitles (excerpt)

>> (Phillip Roberts) hello, come in and sit down. So for the last session before the afternoon break, we have Phillip Roberts who works at Andea and is here from London ‑‑ Scotland. Edinbrough. ‑‑ wow, ten second memory, he's going to talk about the vent loop. If everyone could give Phillip a big brownedder round of applause. >> Phillip Roberts: Okay hello everyone, thanks for coming to the side track, it's awesome to see it packed out in here. Can everyone give me a stretch. I needed to stretch, so I look less weird. I want to talk about the event loop and what the heck is the event loop, as in the event loop inside JavaScript. So first up, as he said I work for AndYet which is an awesome little Dev shop in the US, look us up if you need help with real‑time stuff. That's what we're good at. So, about 18 months ago--I'm a paid professional JavaScript developer--I thought to myself how does, like JavaScript actually work? And I wasn't entirely sure. I'd heard V8 as a term, chrome's Runtime didn't really know what that meant, what that did. I'd heard things like single threaded, you know obviously I'm using callbacks. How do callbacks work? I started a journey of like reading and research

On Hacker News

This one is my all time favorite - What the heck is the event loop anyway? | Philip Roberts | JSConf EU [VIDEO] — krisgenre, 2020-11
I got to know the nuances of the language by working with it for years and having to figure out why various things didn't work at different points, but it doesn't sound like that's your style. This isn't comprehensive, but it's probably the most helpful deep-dive I've ever seen about some aspect of JavaScript. It's about the Event Loop, which is one of the biggest differences between JS and compa… — _bxg1, 2020-02
Another event loop talk from Philip Roberts. The tool he created to display the event loop in real time is fantastic. [VIDEO] — keyvin, 2018-10
The corner stone of understand async JavaScript code is a deep understanding what happens under the hood with the Event loop. Philip Roberts has a great lecture called what the heck is the event loop anyway? [1] Once that video is watched once, everything else just makes sense. [1] [VIDEO] — zappo2938, 2016-10
> How do I take, say JS, and learn it to the point where it really clicks to the point where I can visualize what's going on under the hood when I write programs? Learn how a JS engine works. Any engine will do, although V8 is very discussed on the internet. Here's a few things to get started with: - How the event loop works ( [VIDEO] ). This show how JS works under the hood, what's part of "JS" … — lollipop25, 2016-03

Related videos