How V8 Engine Came into existence ? & Exploring V8 Engine.

Avinash Yadav
3 min readJun 28, 2020

--

Almost everyone who has Worked on JavaScript has heard of V8 Engine.

These are called as ECMA Script Engines , there are other JS Engines as well like Chakra ( JS Engine Used in Microsoft Edge), SpiderMonkey ( used in Mozila Firefox ) etc.

What is this Engine that we speak of , well if we write some code lets say

const isHappy = true ;

we wrote some JS code , i.e we assigned the boolean Value true to the variable isHappy .

How do we read this or how does computer read this , Computer don`t understand JavaScript File . If we tell computer to read the JS File it won`t be able to read the file and perform the tasks .

Computer only understands 0`s and 1`s.

Here comes the Role of JavaScript Engine .

The Machine Like thing which you can see in the above Picture is the JavaScript Engine , this JS Engine Understand the JavaScript and because of this JavaScript Engine our Computer Understands JavaScript.

The Engine are Built by Programmers and the V8 Engine is Written in C++ and it was released by Google in 2008 , before then most browsers used engines that were very basic and little bit slow .

So Google had the Problem Because Google Having the Google Maps and as you know google maps requires a lot more power . It does lot more things , you can ask for Directions , Zoom In & Zoom Out , using Street View Functionality etc .

All the Previous Engines Made the Google Maps very very Slow on the Browser.

To Make their Browser efficient , they said that we are going to make our own JS Engine so that JavaScript runs way Faster than it runs previously .

But the big takeaway for us here is that really really smart people work on these engines so that our JavaScript runs as fast as possible on the browser, on the server or any type of computer.

So every day JavaScript gets faster and faster for us because of the work that goes into these engines.

The V8 engine is the most popular ,most common and the fastest JavaScript engine that the Chrome browser and NodeJS uses .

OK ! but what is inside this engine, this magical machine that understands JavaScript , it reads our code and then it runs this code.

Lets See What is inside the JavaScript Engine.

Inside JS Engine It Looks Something Like This

--

--