This book pulls back the curtain on JavaScript itself, the engines that implement it, and runtimes like Node.js to understand what is happening under the hood. You'll learn how JavaScript's seemingly simple features create complex runtime behaviors, why certain patterns destroy performance while similar ones run blazingly fast, and how the evolution of both the language and the implementation of it have invalidated much of the "common wisdom" about JavaScript optimization that has persisted through the years.

Tasks and queues.
It is important to understand that the event loop is not the only queue that a runtime will provide. Each runtime may have multiple, and they may all be different! Why is this important? These queues, and the differences between how they are implemented, are key to understanding why the examples we have seen produce different results!
The JavaScript language, for example, defines one type of queue called the microtask queue that is used to implement JavaScript promises. Some documentation you can find online will claim that the microtask queue and event loop are connected but as we’ll see later in the chapter about promises, they really are not directly related to one another at all! Instead, each individual host runtime is given the freedom to drain tasks from the microtask queue whenever it sees fit and may do so hundreds or even thousands of times within a single turn of the event loop.
Contents.
1 When a hello isn’t hello.
2 Strings.
3 Numbers.
4 Primitives, Coercion, and Equality.
5 Objects.
6 Functions.
7 Errors.
8 Scheduling.
9 Garbage collection.
10 Modules.
11 Tracing and diagnostics.
12 Worker threads and Web workers.
13 Fetch.
14 Cryptography.
15 Streams.
16 Standards.
17 Tricks and treats (or stuff along the way that didn't fit anywhere else).
Бесплатно скачать электронную книгу в удобном формате, смотреть и читать:
Скачать книгу JavaScript in Depth, Version 3, MEAP, Snell J.M., 2026 - fileskachat.com, быстрое и бесплатное скачивание.
Скачать файл № 1 - pdf
Скачать файл № 2 - epub
Скачать файл № 3 - mobi
Ниже можно купить эту книгу, если она есть в продаже, и похожие книги по лучшей цене со скидкой с доставкой по всей России.Купить книги
Скачать - epub - Яндекс.Диск.
Скачать - mobi - Яндекс.Диск.
Скачать - pdf - Яндекс.Диск.
Дата публикации:
Хештеги: #учебник по программированию :: #программирование :: #Snell
Смотрите также учебники, книги и учебные материалы:
Предыдущие статьи:








