Engines in Programming

VISHAL D BHAT
Feb 28, 2022

Ever wondered why Google built their own browser — Chrome?

  1. Google Services and API run extensively and rely upon Javascript at the root.
  2. 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.
  3. 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.
  4. 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.
Photo by Caspar Camille Rubin on Unsplash

The entire Life Cycle of a code written in JS:

  1. Log in into AST explorer
  2. Parser => Abstract Syntax Tree => Interpretor(Byte Code)=> Profiler => Compiler => Optimised Code.

--

--