Compiled languages: C/C++, GO

Interpreted languages: Python, Javascript

AST: Abstract syntax tree (data structure)

  • Babel code converter: ES6 -> ES6 AST -> ES5 AST -> JS source code
  • ESLint: source code -> AST -> check code normalization

Just-in-time compilation (JIT) : bytecode with interpreter and compiler

  • js v8
  • Java and Python VMS

Optimize JS execution efficiency

  • Improved single execution speed
  • Avoid large inline scripts (parsing HTML takes up the main thread)
  • Reduce js file size (faster download, lower memory footprint)