5 ms·
It’s not just Rust. Practically every compiler based on LLVM is slow. Swift, Zig, Clang. The Go compiler being written from scratch based on the Plan9 C compil
by GrumpySloth 3y ago
It’s not just Rust. Practically every compiler based on LLVM is slow. Swift, Zig, Clang.
The Go compiler being written from scratch based on the Plan9 C compiler is a huge advantage.
- txdv 3y agoZig is moving away from LLVM. Its already has its own backend targeting debug builds for x86 and arm. ReleaseFast and ReleaseSmall is an entire different beast, but its going to be tackled eventually.
- rvdca 3y agoI will chime in to day that rust is also building a alternative to the LLVM backend in the form of cranelift : https://github.com/rust-lang/rustc_codegen_cranelift https://github.com/rust-lang/rustc_codegen_cranelift
- kjksf 3y agoMinor correction: Go compiler used to be a modification of Plan9 C compiler, then a Go port of that modification but then it was completely rewritten as a SSA-based compiler so today it has almost nothing to do with the original Plan9 code.