HN 精选

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

JSConf
16 人推荐 · 跨 14 个月 · 2015–2025
Web 开发脚本与动态语言(Python、Ruby 等)
What the heck is the event loop anyway? | Philip Roberts | JSConf EU

中文导读

Philip Roberts 借助自研的可视化工具,直观拆解了 JavaScript 事件循环、调用栈、回调函数与异步执行模型,彻底扫清“单线程”与“非阻塞”背后的概念迷雾。

为什么 HN 推它

HN 社区公认讲 JS 事件循环最生动直观的视频,写复杂异步代码前必看的启蒙教材。

「他做的那套实时展示事件循环的工具简直太赞了。」HN 网友原话:The tool he created to display the event loop in real time is fantastic.
英文原摘要(HackerTube / Claude 整理)

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.

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

HN 上的提及

rec the_cat_kittles · 2015-03 · HN 原文
a great, very simple explanation.
strong_rec lollipop25 · 2016-03 · HN 原文
how async operations are scheduled on a single thread
rec hackaflocka · 2016-10 · HN 原文
Listed among favorite tech talks.
strong_rec zappo2938 · 2016-10 · HN 原文
Philip Roberts has a great lecture called what the heck is the event loop anyway?
reference stankot · 2017-08 · HN 原文
Listed among JavaScript learning resources.

相关视频