Hacker News new | ask | show | jobs
by LelouBil 798 days ago
Really ? I didn't use Go much but it had by far the shortest compile time of any language I ever used.
1 comments

Yeah, it's the best ..until you try to build a native executable GUI, then it's slower than cold tar. Blasphemous.. because how TF did Win95 + Delphi work so gosh darn well on 0.01% as many resources, and then we got to here? :D

Literally.. the machine has 40 fast cores and 384GB of very fast memory. Wow, just.. kind of nauseating. It could be a case study, I'm sure, because this exceeds even the compiler bloat of Electron.

CGO being slow is unavoidable. It’s external to Go and (afaik) has to be rebuilt every time
It doesn’t have to be rebuilt every time. The incremental parts are missing when compared to the Go compiler, but when coding a GUI app with Go you’re not modifying the C packages behind the scenes so they won’t need recompiled.

This means one rather slow compile to start and then it’s back to super fast!