I began creating a compiler for JS. I focused on compiling a few JS instructions on Linux, like math operations and logical instructions. I started with “for loop” and functions. Managing non-type variables was also a bit complicated, but I achieved that with time, tests and a multi-pass algorithm. It was a step by step work, with help from the “Dragon book”.
After two weeks of working hard on this project, I started to bench performances, size and time to compile.
It was a good start, but I was only able to compile JS for my Linux computer.
That’s why I began to imagine a CAAS (Compiler As A Service) for JS:
... read the whole story at codeburst.io.