←back to thread

Go is still not good

(blog.habets.se)
644 points ustad | 1 comments | | HN request time: 0.205s | source
Show context
t43562 ◴[] No.44985395[source]
Cross compiling go is easy. Static binaries work everywhere. The cryptographic library is the foundation of various CAs like letsencrypt and is excellent.

The green threads are very interesting since you can create 1000s of them at a low cost and that makes different designs possible.

I think this complaining about defer is a bit trivial. The actual major problem for me is the way imports work. The fact that it knows about github and the way that it's difficult to replace a dependency there with some other one including a local one. The forced layout of files, cmd directories etc etc.

I can live with it all but modules are the things which I have wasted the most time and struggled the most.

replies(2): >>44985692 #>>44986990 #
hellcow ◴[] No.44985692[source]
> The fact that it knows about github and the way that it's difficult to replace a dependency there with some other one including a local one.

Use `replace` in `go.mod`, or `go.work` if you're hacking on it locally?

replies(1): >>44986253 #
1. mdaniel ◴[] No.44986253[source]
or go ahead and commit it, if you're galaxy brain and want to throw off would-be attackers trying to understand your codebase https://github.com/pulumi/pulumi/blob/v3.191.0/pkg/go.mod#L5 or https://github.com/opentofu/terraform-provider-aws/blob/main...