4 ms·
> it generates a single statically linked binary. Doing this is very difficult in most other languages. For AOT platforms it's difficult mostly due to glibc. e
by cm3 11y ago
> it generates a single statically linked binary. Doing this is very difficult in most other languages.
For AOT platforms it's difficult mostly due to glibc. e.g. on FreeBSD and Linux musl it's trivial to build fully static binaries.
Otherwise all valid statements and Golang is an improvement over other mainstream languages. So here's some future items for improvement that would make it even better and well suited for wider use:
* a nicer error handling mechanism, though this may be hard
* dead code elimination. Golang's static binaries are huge compared to fully statically compiled executables for other languages. I suppose the new compiler passes and backend might provide a basis to solve this.
* restore compile speed, which of course was mostly due to previously missing optimizations and simple compiler passes, which were added now and made it slower. Still the Wirth'ian language design allows for much faster compile times than C or C++.