7 ms·
>How did we wind up in this ugly situation? The problem I believe stems from some misconceptions, and some historical precedents in the Go community. First th
by coldtea 8y ago
>How did we wind up in this ugly situation? The problem I believe stems from some misconceptions, and some historical precedents in the Go community. First the Go community has long touted static linking as one of its significant advantages. However, I believe this has been taken too far.
How about people just go out to solve their problems, in their own platforms, and don't care to support all platforms?
It's not like most of those Go projects are big in the first place, and one or a couple of contributors don't have the means to test other platforms much, or the time to write it platform-agnostically.
- fndrplayer13 8y agoI think this is likely the reality. I don't think this is necessarily a community problem so much as it is the reality of software development today. Most developers given the time and resources would probably enjoy making their libraries and applications as portable and flexible as possible -- who doesn't love to see their work reused? That being said, on a typical software delivery cycle you optimize for what you think _most_ people are using, and likely what you yourself are using -- standard flavors of Linux operating systems running in one of the big cloud providers. This is not to say Go doesnt have applications outside of this space -- it clearly does.
- scarface74 8y agoThe only Go apps that I’ve knowingly used are from Hashicorp - Nomad, Consul and Vault and they were all running on Windows. I found it quite refreshing that the “install” process was copying one relatively small executable. That being said, Terraform is quite popular and I would think that it’s used by Windows admins/devops locally.
- jniedrauer 8y agoYou've also probably used docker, which is written in Go.
- scarface74 8y agoNever used Docker. That was the advantage of using Nomad. It can orchestrate anything - Docker containers, executables, Shell scripts, etc.
- monocasa 8y agoI mean, afaict nomad uses docker to orchestrate docker containers...
- cwyers 8y agoIt's not like the author is asking for people to write a bunch of whatever Go's equivalent of IFDEF is. The author's proposed alternative code is just as concise and straightforward, it just has the benefit of using something that's portable across multiple platforms.
- cube2222 8y agoHowever, this created a great ecosystem where everything is usually cross-platform by default. With a lot of projects being developed in Go in the cloud ecosystem, developers can more freely choose the platform they want to develop with. Same story with tools written in rust.
- gok 8y agoIf the goal was "Go is a language for Linux", fine. But that wasn't the goal. From the first release it was targeted to macOS, Windows and other platforms, but implemented in a way that didn't make any sense on those platforms.
- pjmlp 8y agoActually Go was implemented as OS X and Linux language initially. They left up to the community to build up Windows support. Certain packages are still not available on Windows, like plugins for example. Easy to find that out searching early gonuts posts.
- gok 8y agoOk I stand corrected; they only botched it on 50% of their initial targets :)
- pcwalton 8y agoBecause that's doing a disservice to potential users? If the Go culture doesn't favor writing portable code, that's absolutely a problem with Go's culture.