News for hackers. Stuff that matters.
Re:Go is still not good by stouset on Friday August 22, 2025 @11:44AM (#44985985)
> Who cares, hasn't happen to me in the first 5 years I used Go.

This is the mindset that makes me want to throttle the golang authors.

Golang makes it easy to do the dumb, wrong, incorrect thing that looks like it works 99.7% of the time. How can that be wrong? It works in almost all cases!

The problem is that your code is littered with these situations everywhere. You don’t think to test for them, it’s worked on all the data you fed it so far, and then you run into situations like the GP’s where you lose data because golang didn’t bother to think carefully about some API impedance mismatch, can’t even express it anyway, and just drops things on the floor when it happens.

So now your user has irrecoverably lost data, there’s a bug in your bug tracker, and you and everyone else who uses go has to solve for yet another a stupid footgun that should have been obvious from the start and can never be fixed upstream.

And you, and every other golang programmer, gets a steady and never-ending stream of these type of issues, randomly selected for, for the lifetime of your program. Which one will bite you tomorrow? No idea! But the more and more people who use it, the more data you feed it, the more clients with off-the-beaten-track use-cases, the more and more it happens.

Oops, non-UTF-8 filename. Oops, can’t detect the difference between an empty string in some JSON or a nil one. Oops, handed out a pointer and something got mutated out from under me. Oops, forgot to defer. Oops, maps aren’t thread-safe. Oops, maps don’t have a sane zero value. And on and on and fucking on and it never goddamn ends.

And it could have, if only Rob Pike and co. didn’t just ship literally the first thing they thought of with zero forethought.

Re:Go is still not good by blibble on Friday August 22, 2025 @12:37PM (#44986608)
> Golang makes it easy to do the dumb, wrong, incorrect thing that looks like it works 99.7% of the time. How can that be wrong? It works in almost all cases!

my favorite example of this was the go authors refusing to add monotonic time into the standard library because they confidently misunderstood its necessity

(presumably because clocks at google don't ever step)

then after some huge outages (due to leap seconds) they finally added it

now the libraries are a complete a mess because the original clock/time abstractions weren't built with the concept of multiple clocks

and every go program written is littered with terrible bugs due to use of the wrong clock

https://github.com/golang/go/issues/12914 (https://github.com/golang/go/issues/12914#issuecomment-15075... might qualify for the worst comment ever)

Re:Go is still not good by 0cf8612b2e1e on Friday August 22, 2025 @06:28PM (#44990666)
This issue is probably my favorite Goism. Real issue identified and the feedback is, “You shouldn’t run hardware that way. Run servers like Google does without time jumping.” Similar with the original stance to code versioning. Just run a monorepo!
Re:Go is still not good by jen20 on Friday August 22, 2025 @12:42PM (#44986671)
I can count on fewer hands the number of times I've been bitten by such things in over 10 years of professional Go vs bitten just in the last three weeks by half-assed Java.
Re:Go is still not good by gf000 on Friday August 22, 2025 @01:05PM (#44986981)
There is a lot to say about Java, but the libraries (both standard lib and popular third-party ones) are goddamn battle-hardened, so I have a hard time believing your claim.
Re:Go is still not good by p2detar on Friday August 22, 2025 @03:42PM (#44988958)
They might very well be, because time-handling in Java almost always sucked. In the beginning there was java.util.Date and it was very poorly designed. Sun tried to fix that with java.util.Calendar. That worked for a while but it was still cumbersome, Calendar.getInstance() anyone? After that someone sat down and wrote Joda-Time, which was really really cool and IMO the basis of JSR-310 and the new java.time API. So you're kind of right, but it only took them 15 years to make it right.
Re:Go is still not good by gf000 on Friday August 22, 2025 @05:08PM (#44989841)
At the time of Date's "reign", were there any other language with a better library? And Calendar is not a replacement for Date so it's a bit out of the picture.

Joda time is an excellent library and indeed it was basically the basis for java's time API, and.. for pretty much any modern language's time API, but given the history - Java basically always had the best time library available at the time.

Re:Go is still not good by p2detar on Saturday August 23, 2025 @11:28AM (#44996681)
I’m sorry but I do not agree at all.

That “reign” continued forever if you count when java.time got introduced and no, Calendar was not much better in the mean time. Python already had datetime in 2002 or 2003 and VB6 was miles ahead back when Java had just util.Date.

Re:Go is still not good by jen20 on Friday August 22, 2025 @01:08PM (#44987016)
You can believe what you like, of course, but "battle tested" does not mean "isn't easy to abuse".
Re:Go is still not good by tom_m on Friday August 22, 2025 @11:30PM (#44992882)
ROFL really?
Re:Go is still not good by stouset on Friday August 22, 2025 @01:11PM (#44987041)
Is golang better than Java? Sure, fine, maybe. I'm not a Java expert so I don't have a dog in the race.

Should and could golang have been so much better than it is? Would golang have been better if Pike and co. had considered use-cases outside of Google, or looked outward for inspiration even just a little? Unambiguously yes, and none of the changes would have needed it to sacrifice its priorities of language simplicity, compilation speed, etc.

It is absolutely okay to feel that go is a better language than some of its predecessors while at the same time being utterly frustrated at the the very low-hanging, comparatively obvious, missed opportunities for it to have been drastically better.

Re:Go is still not good by 0x696C6961 on Friday August 22, 2025 @01:48PM (#44987464)
Ikr, why didn't they just make zero mistakes?
Re:Go is still not good by jack_h on Friday August 22, 2025 @05:18PM (#44989916)
It’s not about making zero mistakes, it’s about learning from previous languages which made mistakes and not repeating them. I decided against using go pretty early on because I recognized just how many mistakes they were repeating that would end up haunting maintainers.
Re:Go is still not good by 0x696C6961 on Friday August 22, 2025 @06:17PM (#44990546)
If only everyone was as smart as you.
Re:Go is still not good by achierius on Friday August 22, 2025 @10:09PM (#44992374)
This isn't an issue of intelligence, and GP didn't imply that it was.
Re:Go is still not good by 0x696C6961 on Saturday August 23, 2025 @05:50AM (#44994716)
They very much did imply that.