32 ms·
When Golang switched to a self-hosted compiler, it lost compilation speed. When Zig switched to a self-hosted compiler, it gained compilation speed.
by 1vuio0pswjnm7 4y ago
When Golang switched to a self-hosted compiler, it lost compilation speed. When Zig switched to a self-hosted compiler, it gained compilation speed.
- tapirl 4y agoIt is reasonable. For Go case, Go is slower than C. For Zig case, zig is not slower than C++.
- pjmlp 4y agoBecause they weren't focused on performance, rather correctness. Later versions of the compiler improved on the performance side as they then started to improve on the compiler's backend.