“ Why would anyone want to use machine learning to build a compiler?”
Compilers translate programming languages written by humans into binary executable by computer hardware.Machine learning, on the other hand, is an area of artificial intelligence (AI) aimed at detecting and predicting patterns. Perhaps it seems this domains are diverse and are too vast but we shall see further how that compilers and machine learning are a natural fit and have developed into an established research domain.
It’s all about optimization
Compilers have two jobs-translation and optimization. First, they must translate programs into binary correctly. Second, they have to…