JS Engine EXPOSED 🔥 Google's V8 Architecture 🚀 | Namaste JavaScript Ep. 16
HTML-код
- Опубликовано: 5 июл 2024
- In-depth explanation of JS Engine Architecture, JavaScript Runtime Environment, JIT compilation, Syntax Parsers, Garbage Collector, and how things work behind the scenes in Google's V8 JS Engine and its architecture.
This is the `Maha-Episode` of the Namaste JavaScript series, after this video, you will understand how the code is executed inside the JS Engine in detail. You'll understand why JS is so popular as a language and a lot of interesting things.
The only request is to watch this Episode of Namaste JavaScript with full attention. 🙏
It took a lot of effort to create this video, do comment down and let me know if you find it helpful.
My tech gear I use every day - google.peek.link/2pba
00:00 - Introduction
00:23 - JavaScript Runtime Environment
01:20 - Browser and Node.js JS Runtime
04:54 - List of JavaScript Engines
06:13 - First JS Engine ever created
06:58 - Myths about JS Engine
08:05 - JS Engine Architecture
08:54 - Syntax Parsers and Abstract Syntax Tree
11:38 - Compilation & Execution of JS Code
12:04 - Just In Time Compilation
14:00 - Is JavaScript Interpreted or Compiled Language?
18:47 - Garbage Collector - Mark & Sweep Algorithm
21:51 - Fastest JavaScript Engine
22:45 - Google's V8 JS Engine Architecture
24:32 - Quick Revision of JSRE & JS Engine
27:11 - Teaser of the Next Video
27:45 - Thank you for watching Namaste JavaScript 🙏
Support this video series, NOT BY MONEY, but by sharing it with your friends. 🙏
I'll give my best to come up with great content and everything absolutely for free on RUclips. 😊
If you are active on Social Media,
please give a shoutout to Namaste JavaScript and help me reach more people. 🙏
Cheers,
Akshay Saini
akshaysaini.in
Would love to Stay Connected with you ❤️
LinkedIn - / akshaymarch7
Instagram - / akshaymarch7
Twitter - / akshaymarch7
Facebook - / akshaymarch7
#NamasteJS #AkshaySaini
This is `Maha-Episode` of Namaste JavaScript. It's VERY Important. Please watch it with Full Attention. 🙏
Comment down what was the best part of the video? ( I read all comments ) ❤️
JIT compilation
V8 engine working
I like the whole video, but the best part is V8 engine, I can't wait to seach the given HW, Thanks Akshay 👍
Sir, in the next video please put Lakshya ko har hal ma pana hai theme tune
@@VishalSharma-rn7mt Copyright free music dhundna padta hai. That song is not open-source. 😅
After this video, my mind is saying
" Javascript is so beautiful, so elegant, just coding it like a wow " 😍
JS is elegant and beautiful? Did you smoke crack? 🤣
Basic idea about Mark & Sweep Algo:
It comprise of 2 phases -
1. Mark phase
2. Sweep phase
All objects are marked as 0 initially (at creation) and in mark phase the objects that will be accessible are marked as 1 (reachable) by a DFS graph traversal.
During sweep phase, the objects marked with 0 are removed from heap memory. and also all reachable objects are again initialized with 0 (made unreachable) because the algorithm will run again.
So, it's basically tracing garbage collector concept. :)
Thanks bro for simple explanation
cool bro, i love this community.
great man....so simplified.
Things learned:
1. JS runtime environment contains all elements required to run JS.
2. It contains JS engine, set of API's, callback queue, microtask queue, event loop.
3. JS engine is a piece of code.
4. Process includes Parsing ---> Compilation -----> Execution.
5. Parsing breaks code into tokens and converts it into AST(Abstract Syntax Tree).
6. Modern JS engine follows JIT compilation, it interprets while it optimises code as much as it can.
7. Execution and Compilation are done together.
8. Execution has Garbage collector and other optimisation such as inlining, copy elusion, inline caching etc.
9. Fell in love with JS. ❤❤
Thank you for notes
ok
*copy elision
Also ,javascript runtime environment is different for different browser
Jagrut Sharma is a Gem , Save him.
Man THANK YOU! I've been going through this series in order for about 2 weeks now and you have filled in major gaps in my understanding of what JS is and how it works. You explain everything in depth while also making it simple. Much gratitude my brother - peace and much love!
The enthusiasm and energy that you radiate in your teaching makes me fall in love with JavaScript !!
hello as a codeNewbie i just want to ask you something . Ive started web development and rn im doing js , so how to get to know that what total number of concepts are needed for mastering javascript .. and suggestions for web development will be much more apreciated
Truly said..
Started with the mindset of watching 1 episode every day and here I am binge-watching NJSflix, reached 2nd last episode. This series is contagious, once you start watching you can't stop 😌. Thanks Akshay, great content as always ✌️Falling in love with JS ❤️
same !
literally felt that.. i binge watched the whole playlist in one day
hello as a codeNewbie i just want to ask you something . Ive started web development and rn im doing js , so how to get to know that what total number of concepts are needed for mastering javascript .. and suggestions for web development will be much more apreciated
I have been developing since a couple of years in javascript based frameworks but never imagined that things are soo in depth here! This course is like a Master's Degree in Javascript! Thanks Akshay for this and really grateful to you because you are putting this up for free!
Thanks for this series Akshay. Mission accomplished! I love how things work together to execute our codes in the most efficient way possible in the runtime environment.
I started learning JavaScript because of you, I ended up getting a job because of your videos and now I am loving JavaScript because of you. Thanks a lot Akshay 🙏
Wow, that's amazing. Congratulations brother. ❤️
which company ?
hello as a codeNewbie i just want to ask you something . Ive started web development and rn im doing js , so how to get to know that what total number of concepts are needed for mastering javascript .. and suggestions for web development will be much more apreciated
@@harshneetsingh5267bro did you get your answer? Because I am also learning web development and don't know how much js is Enough for web development
This whole playlist is gold. Loved your step by step explanations and the way you showed everything by debugging in the browser in previous videos. This video and the previous one were especially amazing. Thanks for all your effort in creating such a beautiful series. I definitely understand javascript a lot better after watching your videos.
We are more in love with Javascript than Javascript itself!! Great lecture sir..best amongst the series; thank you
Today when somebody asked me, "How do I learn Javascript?". I said Google out Akshay Saini and I am sure you will understand Javascript. Keep up the good work Akshay :)
hello as a codeNewbie i just want to ask you something . Ive started web development and rn im doing js , so how to get to know that what total number of concepts are needed for mastering javascript .. and suggestions for web development will be much more apreciated
Yes, you did make a lot of people fall in love with JS even more!
hello as a codeNewbie i just want to ask you something . Ive started web development and rn im doing js , so how to get to know that what total number of concepts are needed for mastering javascript .. and suggestions for web development will be much more apreciated
@@harshneetsingh5267 Bro did u get to know the answer? If yes please share. Iam in your situation now
@@sbc498 bro leave web dev do logic and then ai( data science0 or cybersecurity
How amazing😍😍. The whole JS comunity need to watch you videoes. Very needed topics that you cover and ofcource as you cover...congrats. thanks god for having you .❤
Loving it, Akshay. Thanks for this series. Definitely liking JS more and more as we go.
First I'll click on the like button, then start watching it.
Namaste JavaScript🙏
U just started my way ,kudos 🤘🤘
Same Here .... First like the video and then start to study....... Thanks a lot Akshay bhaiya for such a brilliant concepts and understanding ... Keep Learning Keep Growing
Your passion about JS is contagious! I take other courses too but your videos are among my favorites because of the way you present the information, with visualizations and such enthusiasm. You make it easy to understand even more complicated concepts, explaining them with simple words and examples. Thank you 🙏
Dekh raha hai Binod aaj duniya me akshay saini sir jaise teacher bhi hain jo dil se padhate hain.
Yes, I'm definitely in love with Javascript now. All thanks to you, this is the first programming playlist that I watch with a big smile on my face. I would like to grab a beer with you sir and hear you talk about the marvels of the v8 engine lol. Thank you so much for opening my eyes to this hidden world!
I have been taking paid courses and reading blogs but nowhere I found the knowledge which you are sharing.
Not just a teacher you are a mentor to me. Thanks Mentor
Ps. yes I have started loving JS more now
been using JS for years and I wish a course like this came out when I first started :(
The transitioning from trying to break my head to understand javascript to making me fall in love with Javascript ❤️, you made that possible! Thanks dude 😌
I just saw someone say about your video on Twitter and I just want to look around and you attracted me to watch the whole video. Definitely, I love you and JavaScript ❤
I have watched all playlist in a single day. `Today`
.
I never turned on my youtube notification but today i will turn on.
.
Extremely exited for next gold video.
This was a small tutorial about the compiler design course in B.Tech.
Your energy is contagious. Honestly one of the best things I did this year is to binge on your playlist which was recommended to me by a good friend of mine, also in 2024 I'm aiming to complete Namaste React. Thanks!
which yr?
Thank You. The behind scene explanation is spellbound. When I write code from now onward, I get a mental picture of behind-the-screen activities. and more over your power-packed radiating energy.
I never knew I was still missing a lot in JavaScript until I subscribed to this channel. I have been following up all the episodes and I am getting more confidence in JavaScript. Thank you
I have totally 3.5 years of experience in front-end ,after watching your videos then only realized how beautiful technology which is using by me .Thanks akshay for made me to love my job more and your videos are made me to fall in love with javascript again and again. The way your explaining the concept definitely deserve big hats off. please Keep doing this for us and that positive energy and enthu is spreading to the universe.
I just didn't fall in love with JS, I fell in love with your teaching skill! You are the best, man!
Yesss, now I'm slowly falling in love with JS! 👌 and a huge thanks to you for making this quality content free for everyone 👏
I've been waiting for this. Finished each and every video of Namaste JS series and made notes of them. You're an incredible teacher. Keep it up! Last song was amazing.
hey, it would be a great favor if you please send me the notes of these video tutorial it will help me a lot
You are not just the teacher for us... You are an inspiration, hero and legend for us. Lots of love for you❤️❤️
Very much in love with your javascript series. Many thanks to all your hardwork Akshay.
Your mission is 100% successful! ❤ The way you are explaining all this is just awesome.
You made me fall in love with JavaScript, whenever i think of JS i definitely remember u..
Every video of this series is so lucid. When RUclips notfies me about your video I'm like: "Chalo, now I'll be one more step closer to that dream JS job."
❤️🙌
An amazing teacher you are ! . I find Javascript very interesting now . Thank you for your efforts in making this course :)
you really made me fall in love wid javascript brother..!all credit goes to this man.,such an underrated course
You are taking so much efforts for all of us
.THANK YOU SO MUCH 💓❤️
Yes, JS is now my most fav lang. I literally completed the whole series within 3 days.
I falled in love with his teaching style and energy.. really beautiful way of explaining... he can explain to a little child also.
You changed the whole perspective of looking at Javascript and now I know how powerful it is. JS Love!!
This series has helped me understanding many core concepts of JS in a very simple and easy way.... Thanks for sharing and yes, JS is now turu lob!!😂
Learning about the architecture of a JavaScript engine like Google's V8 can be fascinating, and it's wonderful to see educational resources like the Namaste JavaScript podcast bringing this knowledge to a wider audience. By improving our understanding of the technology behind programming languages, we can become better developers and create more efficient and effective code. Kudos to the creators of this podcast for their work in sharing this valuable information!
it's been 2 months since i have started js...now things are starting to make sense...just loving it
Yes, you most definitely made me appreciate the awesomeness of Javascript more !! Thanks for the high-quality content .
Love the way teach.
explanation / smile /knowledge
outstanding man.
m already in love with JavaScript and typescript.
Thaaaaaaaaaaaank youuuuuuuuuu teeeeeeeeacherrrrrrrrr
Lots of love
I am started loving it more...Thank you.
Thanks a lot for the effors you have put for the creation of this series, learnt good parts and indepth knowledge of Javascript. Humble request to you please continue making videos love your content.
You just blasted the show man. Thank you so much for all your hardwork. Proud to be a JS developer.
My First comment on RUclips! I'm someone who never understood coding at all and after watching Namaste Javascript now I'm understanding the reason why I never understood. I wish I had found you earlier. Kudos to your enthusiasm to teaching. I hope you become a full time teacher soon. The world requires your teaching skills and last thing I want to say is YOU're making me fall in love with JS. Looking forward for more episodes. Thanks Akshay!
Love you, brother! ♥️
First time I am also commenting on any youtube video, I am falling in love with JS
I Lv javascript and also lv u bcoz u r the reason behind it.
You are a great teacher, you will not make us loose our attention for even 1 sec, instead make us more interested!!!
I left programming for more than 5 years but now in this time your videos are helping me alot to grab the core concepts in js that i missed and helping me grab a deep knowledge and are letting me love JS, thanks akshay
We are waiting for more videos on Promises, Generator Functions, Async functions, Proxies, Symbols, etc.
In school and college, we used to learn from our friends just before the day of examination and we understand the concepts even much clearer than from the teacher itself.
You're one of the kind. Thanks to you Akshay Saini for everything.
hello as a codeNewbie i just want to ask you something . Ive started web development and rn im doing js , so how to get to know that what total number of concepts are needed for mastering javascript .. and suggestions for web development will be much more apreciated
@@harshneetsingh5267 read about the technology stack and learn one(for example the MERN stack). That might land you a job.
Merko to Issaq ❤️ ho gya javascript se....btw thanks brother....too good👍
Thanks for these fantastic videos, I am following you since the first video of this series and learned a lot from you. Waiting for more videos on Promises, Async, and Await concepts.
I hope my learning will not end :)
Coming from a Java background, I was REALLY confused and lost, when I started writing JS code. But I want to thank you so much, that you made such descriptive and informative videos about modern Javascript concepts, now I understand JS better :)
Thank you so much..
I had always struggled with learning JS. Now, as I'm learning the basics which I knew is the most important thing to understand for being a JS developer, thank you, brother. You really make the learning process simpler and fascinating. Kudos to you.
hello as a codeNewbie i just want to ask you something . Ive started web development and rn im doing js , so how to get to know that what total number of concepts are needed for mastering javascript .. and suggestions for web development will be much more apreciated
@@harshneetsingh5267 JS is so vast that mastering it will take a lot of time. If your intention is to be a front-end developer then covering JS topics like fundamentals, higher order functions, Async/await, ES6, API calls are fine to move on to a framework like React, in my opinion.
@@asheeshprasai5175 thank you for replying buddy .. I want to be a full stack . These concepts enough to be go on for a long phase ?
First time i am commenting on any youtube video because i just wanted to say thank you badhe Bhaiya 🙏🙏
Thank you so much brother..🙏
Love you, brother ❤️
Aapke comments motivate karte hai, it feels that yes there's someone watching the videos on the other side. 😇🙏
Yes, Fall in love with javascript after your Namaste Javascript series. Thank you so much GURU!!!
bro ek sal baad dekh raha hu kya content ha love it almost everything in this video is new for me
Your laugh 😂 after every 2-3 lines.
I lov it❤
Most underrated tech channel
Hi Akshay, I loved the way you gave amazing clarity on JavaScript hierarchy inside. Thanks a lot .. I loved your enthusiasm towards sharing the knowledge and I inspired by watching your to learn more.
Now, that's called teaching, i am just thinking if everything was taught to us in school this way where would we be today ? We Need more Developers, Teachers and Mentors just like you.😍
before falling in love with JavaScript, I fell in love with your teaching skills.
I go through entire "Namaste Javascript" series before all my interviews. Now even though I remember and understand all concepts that Akshay taught, I still watch them for the passion and energy that Akshay has. You have my best wishes brother!
Thank you brother ❤️
If someone will ask me who is father of JavaScript I would say without thinking a sec its Akshay saini sir🙏🙏. You are great sir. No one upload in depth content for free and you are doing this. Thank you so much for helping us . #NamasteJavascript🙏
Haha 😂. I'm not the father of JS, I'm just a teacher.
and TBH, I'm still learning. The more I learn, the more I get to learn, that there is a lot more to learn. 😇
@@akshaymarch7 sir for me you are 🙏. Whatever in depth knowledge I have now it's because of you only . Thank you once again for putting efforts for us. Means alot.
#NamasteJavascript 🙏
@@akshaymarch7 Huge respect for these words.
What a series!!! Thanks for providing such great content for free.
I started falling in love with Javascript because of you dude. Thanks for everything
One small thing/correction to add-
MicroTask Queue is a part of the Engine and some engines like Chakra don't even have it, MicroTask queue is V8 engine specific "term".
For other engines its called PromiseJobs (ECMA spec), implementation of it is very Engine dependent.
That means even in the absence of an EventLoop(platform), you can ask the engine to process your promise callbacks, i.e there is no need of an event loop to execute a promise.
Source: Worked with V8 and event loops.
Link: v8docs.nodesource.com/node-12.0/db/d08/classv8_1_1_microtask_queue.html
Thank you for pointing out ❤️
Js Lover button
Watching your javascript series is more exciting than series on netflix , take a bow 🙌🏼
You're the best Akshay.I genuinely enjoyed learning javascrpt infact you made my learning enjoyable.Kudos! Keep up the great work.
compiler, interpreter, JIT and AOT are a bit confusing, can someone help me?
@Akshay Saini Agreed. I tried googling for AOT and JIT but most results are only for angular. Can you have a practical video in namaste Javascript style, please? Really hooked on your teaching and absolutely loving learning about js
These dislikers are Feeling Jealus from Akshay sir
Doesn't matter brother, everyone has their own taste. 😇
I'm happy(+honoured) that I have so many people who like my content, super happy to serve them ❤️
Love your videos and JS now because of you. Please continue making more such videos. Please show us the flow to create a small-medium-large JS project .
I didn't know I would come this far in this series.. bcoz its interesting. Thanks to you, thanks to your enthusiam towards teaching. Loved that.
i am back 😆😆😆😆
First Comment
You're a gem! 💎
@@akshaymarch7 for us you're gem, thanks for such valuable content... If possible for you please gives us some exercise.. Thanks...
Thank you, Akshay Saini, for making javascript more exciting and now I love to more explore about javascript and its engine.
Beautifully explained all concepts.. definitely all those who are watching would have fallen in love with Javascript. With some other tutors, it happens that we understand concepts but there are many questions still present in our mind, while watching this series, there was no any doubt left behind in my mind and I was learning without any stress, smoothly understood every topic. Thank you so much for such a great content.
I will download all this videos and save into my gdrive😁. Your tutorial videos are gems💎💎. JS has now become a lovely programming language all because of you. A huge salute, respect and love from my side❤
I'm in love with JavaScript. I never thought it would have happened. Thanks Akshay💚
Definitely fallen in love with javascript after watching your videos sir. Thank you so much.
I used to think that JS is not a good language but after watching the 60 % of this playlist i can confirm Js as well as Akshay bhai is op ... Love your work man.
It’s the best JS channel I’ve ever seen! Thank you so much!
Brilliant! Got to know the deep understanding of JS and Browser internals. Thanks a lot Akshay!
Started following in love with JS❤ And your way of teaching!❤ Thanks a lot!
Yes, the love on the JS became more after seeing your wonderful smile 😄 Amazing content and superb explanation. Thank you very much for this beautiful content and hard work 🥊
Just loved the way how the little details are presented in JS ....loved how you made it way more fun to learn the concepts...
Thank you Sir!!
Started loving Javascript :) Again gem of a video. Thanks a lot & keep up the great work.
This is really well explained giving so much of knowledge. One of the best videos I have come across till now
Yes, Javascript is awesome. Truly with all your efforts I have started to love javascript more than ever. Thank you akshay sir. You are doing really amazing work.
Love your outro bro, only motivation to watch till end 😂😂. Actually this episode and previous one was so lengthy and knowledge heavy. But motivation comes in all shapes and sizes.
Can't get enough of your videos Akshay! Learning in 2024! Amazing content!
I fall in love with JavaScript after watching your playlist. Thank you so much sir
falling in love with Js!! started studying js this new year...already loving the concept