Hello 🙏, Hope you’re having a great Weekend 😃
✔️ What have i done today?
Less productive day 😴, watched some YouTube and read some blogs tutorials about Advance JS ✌️
And learned about how V8 engine works and why it was created? Well How is Hard to explain but let me tell you why it was created...
🔹 Interpreter:- What interpreter do is it read files line by line on the fly.
🔸 Compiler:- Like interpreter Compiler doesn’t read code on the fly, but what it does is it works ahead of time to create a translation of what code we’ve just written, and It compiles down to usually a language that can be understood by machines.
So what was the problem 🤔, The problem was they both have their own Pros and Cons :
🔹 Interpreter is really fast to get up and running but unfortunately dosen’t do any optimisations,
🔸 Compiler obviously takes a little bit longer to get up and running but the code is going to eventually run faster,
So, back then engineers decided to build something by combining these both to increase performance So they Created something called JIT Compiler ( Just-In-Time ) Compiler
It’s just a little idea about what is V8 engine, You should definitely do some research to find out more about it.🔥
👉 Join the community:- #buildupdevs
✔️ Quote of the Day
“ Every breath we take, every step we make, can be filled with peace, joy and serenity. “
– Thich Nhat Hanh
Thank you 😊🙏❤️