5 ms·
Has Go become the new PHP? Every now and then I see an article complaining about Go's shortcomings.
by figmert 1y ago
Has Go become the new PHP? Every now and then I see an article complaining about Go's shortcomings.
- giancarlostoro 1y agoNo, this has been the case as long as Go has been around, then you look and its some C or C++ developer with specific needs, thats okay, its not for everyone.
- ginko 1y agoGo was announced as a replacement for C & C++ so I think it's reasonable to compare it to that.
- Matl 1y agoIt was intended as a as a replacement for C & C++ for Google's use case of network services btw.
- pjmlp 1y agoNot really, no one at other other than the original authors though of that, the authors had an issue with C++ compile times and were sponsored by their manager to work on this Go side project of theirs. Google's networking services keep being writen in Java/Kotlin, C++, and nowadays Rust.
- Matl 1y agoGo was written with the experience of a bunch of C people who weren't particularly fond of C++ while writing network services/systems at Google and have written Go as a 'C for the 21st century' with the sort of use case they used C++ for previously at Google. People like Rob Pike and Ken Thompson certainly knew that you can't put in a GC and cover all systems programming use cases, but they knew that Go could cover their use cases. Or are you suggesting that they were frustrated with C++ so they decided to write a language they couldn't use instead of C++ for their use case? > Google's networking services keep being writen in Java/Kotlin, C++, and nowadays Rust. And? Google is a massive company that uses many languages across many teams. That doesn't mean that some people at Google, incl Go's original creators, would not use Go nowdays to write what they would previously use C++ for.
- wild_egg 1y agoIt hasn't been promoted that way for over a decade at this point.
- jact 1y agoI think with C or C++ devs, those who live in glass houses shouldn’t throw stones. I would criticize Go from the point of view of more modern languages that have powerful type systems like the ML family, Erlang/Elixir or even the up and coming Gleam. These languages succeed in providing powerful primitives and models for creating good, encapsulating abstractions. ML languages can help one entirely avoid certain errors and understand exactly where a change to code affects other parts of the code — while languages like Erlang provided interesting patterns for handling runtime errors without extensive boilerplate like Go. It’s a language that hobbles developers under the aegis of “simplicity.” Certainly, there are languages like Python which give too much freedom — and those that are too complex like Rust IMO, but Go is at best a step sideways from such languages. If people have fun or get mileage out of it, that’s fine, but we cannot pretend that it’s really this great tool.
- gf000 1y ago> I would criticize Go from the point of view of more modern languages that have powerful type systems like the ML Go release date: 2012 ML: 1997
- pjmlp 1y agoYou forgot: CLU 1977. ". They are likely the two most difficult parts of any design for parametric polymorphism. In retrospect, we were biased too much by experience with C++ without concepts and Java generics. We would have been well-served to spend more time with CLU and C++ concepts earlier." https://go.googlesource.com/proposal/+/master/design/go2draft-generics-overview.md https://go.googlesource.com/proposal/+/master/design/go2draf...
- funcDropShadow 1y agoAnd still there are more modern idioms and language features that ML had in the 70s but are missing from Go. But, these have the fatal flaw of Not being Invented Here.
- giancarlostoro 1y agoMy biggest nitpick against Go was, is and still is the package management. Rust did it so nice and NuGet (C#/.NET) got it so right that Microsoft added it as a built-in thing for Visual Studio, it was originally a plugin and not from Microsoft whatsoever, now they fully own it which is fine, and it just works. Cargo is amazing, and you can do amazing things with it, I wish Go would invest in this area more. Also funny you mention Python, a LOT of Go devs are former Python devs, especially in the early days.
- pydry 1y agoGo is a pretty good example of how mediocre technology that would never have taken off on its own merits benefits from the rose tinted spectacles that get applied when FAANG starts a project.
- christophilus 1y agoI don’t buy this at all. I picked up Go because it has fast compilation speed, produces static binaries, can build useful things without a ton of dependencies, is relatively easy to maintain, and has good tooling baked in. I think this is why it gained adoption vs Dart or whatever other corporate-backed languages I’m forgetting.
- pydry 1y agoI tried out one project because of these attributes and then scrapped it fairly quickly in favor of rust. Not enough type safety, too much verbosity. Too much fucking "if err != nil". The language sits in an awkward space between rust and python where one of them would almost always be a better choice. But, google rose colored specs...
- christophilus 1y agoI’m almost with you. If there was a language with a fast compiler, excellent tooling, a robust standard library, static binaries, and an F#-like type system, I’d never use anything else. Rust simply doesn’t cut it for me. I’m hoping Roc might become this, but I’m not holding my breath.
- raincole 1y agoIt means many people are using it. That's it.
- Xelbair 1y agoGo was always 80% there,but the last missing(hard) 20% wasn't ever done. It is infuriating because it is close to being good, but it will never get there - now due to backwards compatibility. Also Rob Pike quote about Go's origins is spot on.
- RadiozRadioz 1y agoThe last 20% is also deliberately never done. It's the way they like to run their language. I find it frustrating, but it seems to work for some people.
- pjmlp 1y agoOn the contrary, PHP at least improves with times and embraces modern pratices in language design.
- chimeracoder 1y ago> Has Go become the new PHP? Every now and then I see an article complaining about Go's shortcomings. These sorts of articles have been commonplace even before Go released 1.0 in 2013. In fact, most (if not all) of these complaints could have been written identically back then. The only thing missing from this post that could make me believe it truly was written in 2013 would be a complaint about Go not having generics, which were added a few years ago. People on HN have been complaining about Go since Go was a weird side-project tucked away at Google that even Google itself didn't care about and didn't bother to dedicate any resources to. Meanwhile, people still keep using it and finding it useful.