We've probably heard the saying in many places that JavaScript is everything. This isn't exactly accurate because we know undefined isn't an object, but it's...
In the last article, we introduced the execution pipeline architecture of the V8 engine. This article focuses on V8 syntax parsing. The original video is...
Space fragmentation. Garbage objects currently collected are not contiguous in address and cannot be used to maximize space usage. The cleanup phase starts with a...
Modern Web applications often use phrases like "yesterday," "42 seconds ago," or "3 months" instead of full date and time stamps. This relative time format...
Memory management Memory: consists of read/write units, representing a piece of operable space Management: manually apply for, use, and release a piece of space Memory...
Low-level languages like C typically have low-level memory management interfaces, such as malloc() and free(). Instead, JavaScript allocates memory automatically when variables (objects, strings, etc.)...
V8 is simply a JavaScript engine. We can think of a JavaScript engine as a translator that translates JavaScript, a programming language that humans can...
JavaScript is a single-threaded language by nature, and the community often talks about async and Event Loop in JavaScript. It may seem like they are...
V8 is Chrome's JavaScript engine, and the sorting of arrays is implemented entirely in JavaScript. The sorting algorithm depends on the length of the array....
As javascript became more popular, many teams started using it on their technology stacks, such as front end, back end, hybrid, embedded devices, etc. As...
The second article will focus on getting inside the V8 engine and sharing some best practices for writing good JavaScript code. A JavaScript engine is...
Garbage Collection - Garbage Collection stack memory is managed by the operating system, while GC refers to heap memory. Introduction of mainstream engines, V8 GC...
The main reference for this article is https://v8.dev/docs, Google official documentation. Interpreted and Compiled Languages Interpreted languages JavaScript is an interpreted language, can also be...
Understanding how JavaScript works is key to writing efficient JavaScript code. Forget the trivial millisecond improvements: Using object attributes incorrectly can slow down a simple...
This is the second article in a series. The object Model is used to optimize access to properties of objects. Property Review The ECMA specification...
How does Google V8 work? That's a very good question, and here's a little official documentation that's leaked to explain exactly what's going on inside...
V8, perhaps, is familiar but unfamiliar territory for front-end developers. By the time you read this article, it will have gone through three iterations. The...