Engines in Programming
Feb 28, 2022
Ever wondered why Google built their own browser — Chrome?
- Google Services and API run extensively and rely upon Javascript at the root.
- At the end of the day, all the map locations and the service functionalities are just JS codes that are run by the projects that Google leverages.
- Google coders and researchers found that the memory latency and the time taken to run the services given that the code is in JS is significantly higher.
- Hence, they ended up creating a browser, which internally is an engine to leverage the JS code and convert into machine code a lot quicker and easier.
The entire Life Cycle of a code written in JS:
- Log in into AST explorer
- Parser => Abstract Syntax Tree => Interpretor(Byte Code)=> Profiler => Compiler => Optimised Code.