Well, hello, my friends.
So in this lesson, we're going to learn a little bit more about this so-called V8 engine.
So to fully understand how no justice works, I want to talk about the different subjects that it's
made up of.
And the first one is this VATE and.
So I told you before that no jazz is working on a vate JavaScript engine and.
Let's dive a little bit deeper and figure out how it works.
So first of all.
A JavaScript engine, what the heck is it?
So when we write JavaScript, the computer doesn't actually understand it, right?
So it takes a JavaScript code and then converts that JavaScript code into machine code, something that
the computer can understand so that it can be processed.
So have a look at the diagram and you'll see what I mean.
So we have machine code here at the bottom, and that's what computers basically run on and understand.
But it's very difficult to program in machine code.
In fact, it even looks messy.
So what happened was engineers started to abstract different languages from it, for example, assembly
language, which sits just above it in here.
But it's still pretty much like machine code.
So then in here, people figured out how to write C++ or C abstracted from it.
These became really popular.
But then finally, we got this thing called JavaScript, which sits right up here at the top and abstracted
a lot away from the machine code.
OK, so when we write in JavaScript, it means that we're going to need a way for it to be converted
into machine code because we don't want to write machine code.
Let me reveal something to you.
Just like JavaScript, no jass is actually written in C++.
They are exactly the same.
But no, jazz is all about writing in JavaScript, and it is written in C++, but unlike JavaScript,
no jazz allows us to write JavaScript on a computer or server.
So the reason that no gas is written in C++ is because it uses this Veidt JavaScript engine created
by Google and it's also written in C++.
OK, so now we know that no jazz is written in C++ and we also know that the VA JavaScript engine converts
the JavaScript that we write into the machine code.
So that means you understand it, right?
I'm kind of playing with you, but if you do want to read a little bit more about VÉ, then you can
just go to Vedat Deve.
And you can see in here that it says VATE is Google's opensource high performance JavaScript and Web
assembly engine written in C++, right?
I told ya and it's used in Chrome.
And in no Jass case, you thought I didn't know what I was saying.
So basically, it's also the JavaScript engine that runs in Google Chrome.
All right.
So when we create JavaScript and Google Chrome browsers, then Veidt is being used at that point to
translate it into the machine code.
And I mean, you know, all this is going on flawlessly and seamlessly, very.
So you can see and hear that it says Vache and run standalone war can be embedded into any C++ application.
OK, so now that we know that no jazz is a C++ application and it takes VATE and then embeds it into
no jazz.
Well.
How then does no jazz work with Veidt?
This fall, Alami, known jazz, is written in C++ and VA is embedded into it.
So when we write JavaScript and we run it through no J.S..
It gets passed into a V8, converted into machine code, which then the computer can understand.
So C++ in OJARS hooks in to the JavaScript V8 engine, and it adds additional features to it.
So initially, JavaScript was designed to run in a browser and it wasn't meant to deal with lower level
operations that we can normally do with C++.
But of course, C++ is way more powerful in JavaScript.
So no jazz, which is written in C++, hooks into the all powerful V8 engine and then add some additional
features to JavaScript, such as reading and writing files or connecting to a database.
Right.
Does that make sense now?
So all of this makes no news so very powerful.
That's why it's become so popular.
That's why you want to know more about it.
All right, so we have been given, I would say, a great deal of power to wield with JavaScript that
we didn't have before.
So therefore, it enables us to create server side code in JavaScript.
And if that doesn't get you excited, then.
I don't know.
Do you have a pulse?
So here we've talked about what VATE is, how no gas works, and I think that's enough to digest for
now.
So go back and review something.
Have a look at that chart.
And in the next lesson, we're going to dive in to know Jesse, so have a short break here and we'll
come back for the next lesson.