31 points · by microtonal · 10y ago · 21 comments
In this particular case, the discussion is about a program that imports around 500 package dependencies and is compiling everything (as I understand it) from scratch, resulting in a binary that is around 90MB.
Yes. Go was nearly as bad as java and C++ in 2014, and it has gotten nearly twice as slow since then. And yet "compiler performance" is the excuse for not having generics. While C++ and java both have them and are now faster than go's compiler, and ocaml is way faster and has them.
Please do provide them.
The notion that Go's compiler is slower than C++ is ridiculous. Go's compiler, despite the recent slowdown, is still famously fast, whereas C++'s notorious header file problem means that even small changes can trigger huge recompiles (which is exacerbated by the fact that templates must often have their implementation code in the header file, not the implementation file).
Meanwhile, Rust's compiler is much, much slower than Go's, and probably not much faster than GCC/Clang with C++.
> since gri's switched to making binary export/import the default, and a few followups from khr the time to build jujud compared to 1.4.3 is now solidly below 2x
If anyone else is curious like I was, I believe this is referring to a recent Go change [1] which was previously discussed on HN [2].
However, I can't find the corresponding commit in the Juju repo.
[1] https://github.com/golang/go/commit/af6aa0fd745d48c2db70712e...
[0] https://github.com/golang/go/commit/7538b1db8ec0d82a623847fe...
Compiling a C or C++ project with 512 translation units would probably take enough time to prepare a full meal.