News for hackers. Stuff that matters.
Re:Python Is Easy. Go Is Simple. Simple != Easy by EnergyAmy on Monday November 27, 2023 @12:43PM (#38435427)
> geniuses

That's very strong language. Go was created by some smart people that have completely ignored programming language developments that happened after the 70's.

Re:Python Is Easy. Go Is Simple. Simple != Easy by lambda_garden on Monday November 27, 2023 @12:47PM (#38435474)
Ironically, we had more advanced languages than Go in the 70s.
Re:Python Is Easy. Go Is Simple. Simple != Easy by Ferret7446 on Monday November 27, 2023 @07:27PM (#38440630)
Advanced != good. It takes some genius to realize that.
Re:Python Is Easy. Go Is Simple. Simple != Easy by Cthulhu_ on Thursday November 30, 2023 @09:52AM (#38474214)
Yeah, but advanced languages are also a problem for long-term maintainability.

Remember, Go was developed at Google - jokingly, while waiting for stuff to compile. They deal with tens of millions of lines of C++ written by thousands of engineers with varying skill levels and career paths. The advancedness of C++ did not reduce the compile times or readability of the code. At those scales you can't rely on being familiar with a particular section of code; you need to be able to drop in anywhere and know what's going on, without having to learn which subset of the advanced language they used for that particular feature.

Go is not advanced by design.

Re:Python Is Easy. Go Is Simple. Simple != Easy by lambda_garden on Friday December 08, 2023 @05:14AM (#38567283)
Advanced languages can compile quickly - it depends on the feature set chosen. For example, do-notation is an advanced feature not found in most languages, but it compiles quickly as it is syntactic sugar. Operator overload, on the other hand, might require a solver and thus compile slower. It's not a particularly advanced feature, however. Binary optimization passes do not make the language any more advanced (on the user side), but will slow down compilation. Advanced design and compile-times are pretty orthogonal.

As for maintainability, it's not clear to me that reams of imperative code is easier to maintain than something terse and declarative. In fact, probably the opposite.

Re:Python Is Easy. Go Is Simple. Simple != Easy by cogman10 on Monday November 27, 2023 @02:19PM (#38436875)
Yup.

Go made a lot of odd choices from a language design perspective. It's pretty much "C, but with better types and a garbage collector!"

It certainly has its usages and does some nice things. But at the same time, the obsession with compile speed has, IMO, has been a detriment to the language as a whole. We see this in the way generics ultimately entered go after years of causing problems by not existing from the get-go.

Re:Python Is Easy. Go Is Simple. Simple != Easy by aforwardslash on Monday November 27, 2023 @04:37PM (#38438751)
I'd say that the hands-down improvement over C is simplified threading and proper utf8 support. The utf8 alone (because of the notion of rune) is a good reason to use golang over C or C++.
Re:Python Is Easy. Go Is Simple. Simple != Easy by bufio on Monday November 27, 2023 @01:26PM (#38436080)
Maybe you could educate them.