Writing a Fast Compiler
tibleiz.net·99w
Preview
Report Post

2024-02-04

I’m going to describe the various tricks I used to write fast compilers for my programming languages. By fast compilation, I mean compiling at least 500.000 lines of code per second (excluding blank lines and comments) on a single CPU core.

Does it Matter?

You may argue that compilation time is not important. After all, once released, who cares that a program took hours to build; as users, we only want it to work and to work fast. It’s like complaining that the last Pixar movie took days for the final rendering.

However it can severely affect the development cycle and make developers angry. It’s 2024 and I can see that the most common complaint for Rust is still its compilation time.

The speed also affects the design of the compiler: when my biggest program is …

Similar Posts

Loading similar posts...