Tag

libuv

0 views collected around this technical thread.

JD Tech
JD Tech
Apr 3, 2024 · Backend Development

Understanding JavaScript Engines: QuickJS, V8, TurboFan, and Integration with libuv

This article provides a comprehensive technical overview of JavaScript language standards, the architecture and optimization techniques of major JavaScript engines such as V8 and TurboFan, introduces the lightweight QuickJS engine with its features, file layout and memory management, and demonstrates how to embed QuickJS with libuv for asynchronous I/O using detailed C code examples.

C-APIJavaScriptQuickJS
0 likes · 15 min read
Understanding JavaScript Engines: QuickJS, V8, TurboFan, and Integration with libuv
Baidu Geek Talk
Baidu Geek Talk
Dec 21, 2022 · Backend Development

Understanding Node.js: Architecture, Event Loop, and Asynchronous I/O

Node.js is a server‑side JavaScript runtime built on V8 that replaces the browser environment with native libraries, uses libuv’s event loop and thread pool to provide non‑blocking asynchronous I/O, and organizes its architecture into application code, V8, bindings, and libuv layers for efficient backend development.

Event LoopJavaScriptNode.js
0 likes · 16 min read
Understanding Node.js: Architecture, Event Loop, and Asynchronous I/O
ByteDance Web Infra
ByteDance Web Infra
Sep 16, 2021 · Backend Development

Deep Dive into Node.js Architecture and Core Module Implementation

This article provides a comprehensive overview of Node.js’s architecture, including its composition, code structure, startup process, event loop phases, process and thread management, core modules such as Cluster, libuv thread pool, signal handling, file operations, and networking protocols, illustrating how the runtime integrates V8 and operating‑system features.

Event LoopNode.jsThread
0 likes · 29 min read
Deep Dive into Node.js Architecture and Core Module Implementation
System Architect Go
System Architect Go
Sep 24, 2019 · Backend Development

Do CPU‑Intensive Tasks Block Node.js? An Experimental Study of libuv Thread Pool

An experiment demonstrates that CPU‑intensive encryption tasks do not block Node.js when the number of concurrent tasks does not exceed libuv’s default four‑thread pool, but adding a fifth task causes blocking, illustrating how libuv’s thread pool size and environment variable UV_THREADPOOL_SIZE affect concurrency.

CPU-intensiveNode.jsconcurrency
0 likes · 3 min read
Do CPU‑Intensive Tasks Block Node.js? An Experimental Study of libuv Thread Pool
Architecture Digest
Architecture Digest
May 10, 2018 · Backend Development

Design and Plugin‑Based Refactoring of a Cross‑Platform Long Connection Component

This article describes the motivation, layered architecture, protocol implementation details, and a plug‑in refactoring approach for a cross‑platform long‑connection component that unifies iOS, Android, and WebSocket communication using libuv, mbedTLS, and C interfaces.

C ProgrammingPlugin ArchitectureTLS
0 likes · 20 min read
Design and Plugin‑Based Refactoring of a Cross‑Platform Long Connection Component
Hujiang Technology
Hujiang Technology
Mar 24, 2017 · Backend Development

Understanding the Startup Process of Node.js

This article explains how Node.js initializes by combining Google’s V8 engine with the libuv asynchronous I/O library, details the main function flow, event loop, thread pools, environment creation, module binding, and demonstrates exposing a C++ object to JavaScript via a native addon.

C++ addonJavaScriptNode.js
0 likes · 9 min read
Understanding the Startup Process of Node.js