Re:Unpacking Git packfiles
by nathancahill on Wednesday June 24, 2015 @04:36PM
(#9774300)
Kudos. Just noting that one of libgit2's primary strengths is 100% cross-platform portability. Is this different from your cross-compilation goal? I'm not familiar with Go.
[ Parent
| on HN ]
Re:Unpacking Git packfiles
by giovannibajo1 on Wednesday June 24, 2015 @05:29PM
(#9774621)
Yes because Go generates static binaries and requires no toolchain. Once you link a C library, you loose these benefits and cross-compiling returns to the "normal" difficulty. In addition to that, Go code may be buggy but it's safe, while linking a C library means dropping this guarantee.
So in the Go ecosystem it is actually preferred to use pure Go libraries not to loose these benefits.