Re:Lies we tell ourselves to keep using Golang
by formerly_proven on Friday April 29, 2022 @02:26PM
(#31208940)
> it's very powerful and I don't know a single language that does it out of the box like go does.
zig build -Dtarget=x86_64-windows
Re:Lies we tell ourselves to keep using Golang
by Thaxll on Friday April 29, 2022 @02:30PM
(#31208978)
I'm talking about mainstream language not stuff in dev. And go has been doing that for 10years+
Re:Lies we tell ourselves to keep using Golang
by kristoff_it on Saturday April 30, 2022 @06:17AM
(#31214802)
well, not exactly. Zig is also crosscompiling C/C++ code, not just Zig. CGo doesn't do cross-compilation.
The fact that you can cross compile a win10 .exe on a raspberry pi with a single command as easy as "GOARCH=amd64 GOOS=win go build ." it's very powerful and I don't know a single language that does it out of the box like go does.
Go tooling is one of the strongest point of Go you have all of that built-in:
- compilation
- testing
- benchamark
- dep managment