Arindam Paul – JavaScript VM internals, EventLoop, Async and ScopeChains




The goal of this talk would be to provide a good understanding of the following,
A crisp understanding of the JavaScript VM and how a single threaded engine can be massively parallel. How event loop and callbacks works, example of blocking and non-blocking codes, ES6 generators for custom Async signaling. How function definitions happen and invocations happen, how scope chains are formed, what closures are and how to reason about them. Async programming, how reactive programming works at the bottom level, how event listeners registers themselves and then deregisters.

https://jsfoo.talkfunnel.com/2015/44-javascript-vm-internals-eventloop-async-and-scopec

Original source


39 responses to “Arindam Paul – JavaScript VM internals, EventLoop, Async and ScopeChains”

  1. Hey guys I though this information would help you.

    During the memory allocation phase,if you have a variable assignment (var b =3) it will allocate the memory for variable b and set the value of be to be UNDEFINED,a special value in JS.And later during execution phase the assignment actually happens.

  2. What you mean to say is that Declarations take precedence over Statements and are parsed through first in the 'compilation phase' and then things are put together in the 'execution phase' where statements are brought into play to generate the output? Add to that, variable hiding and forgiving nature of JS, the concept sounds and looks messy. I say that despite the fact that I like JavaScript. Very helpful and highly informative. Thanks a ton.

Leave a Reply