4 ms·
Coming from a Go background I found it quite easy to use Zig, as the language is small and you can be proficient in few days. Of course you have more to handle
by fbouvier 4y ago
Coming from a Go background I found it quite easy to use Zig, as the language is small and you can be proficient in few days.
Of course you have more to handle by yourself in Zig. For example a simple string concatenation will need more work as there is no implicit heap allocation.
For interoperability with Go it's quite the same than C<>Go through Cgo: doable but not ideal.
However the Zig toolchain can be used to improve the build system of Go projects with Cgo dependancies. That's what Uber is doing https://jakstys.lt/2022/how-uber-uses-zig/ https://jakstys.lt/2022/how-uber-uses-zig/