Re:Making o1, o3, and Sonnet 3.7 Hallucinate for Everyone
by andix on Saturday March 01, 2025 @03:55PM
(#43223591)
> A language like Golang tries really hard to only have _one_ way to do something
Really?
Logging in Go: A Comparison of the Top 9 Libraries
https://betterstack.com/community/guides/logging/best-golang...
Re:Making o1, o3, and Sonnet 3.7 Hallucinate for Everyone
by evanmoran on Saturday March 01, 2025 @04:04PM
(#43223664)
Since Go added slog many of these have been removed in favor of that. Obviously not universal, but compared to npm there really are massive numbers of devs just using the standard library.
Re:Making o1, o3, and Sonnet 3.7 Hallucinate for Everyone
by throwaway920102 on Saturday March 01, 2025 @04:27PM
(#43223852)
I would argue logging options to be more of an exception than the rule. Compare the actual language features of Go to something like Rust or Javascript and you'll see what I mean. As a new developer to the language (especially for juniors), you can learn all the features of Go much faster. It's made to be picked up quickly and for everyone's code to look the same, rather than expressing a personal style.
Re:Making o1, o3, and Sonnet 3.7 Hallucinate for Everyone
by duskwuff on Sunday March 02, 2025 @12:31AM
(#43227712)
I find it hard to imagine how a language could enforce that no two (third-party) libraries can implement the same functionality.
Re:Making o1, o3, and Sonnet 3.7 Hallucinate for Everyone
by Yoric on Saturday March 01, 2025 @04:51PM
(#43224087)
Note that "super-simple", "hard to footgun yourself" and "one way to do things that is consistent" are three very different things.
I don't think that we yet have one language that is good at all that. And yes, I (sometimes) program in Go for a living.
I predict that the variance in success in using LLM for coding (even agentic coding with multi-step rather than a simple line autosuggest or block autosuggest that many are familar with via CoPilot) has much more to do with:
1) is the language a super simple, hard to foot-gun yourself language, with one way to do things that is consistent
AND
2) do juniors and students tend to use the lang, and how much of the online content vis a vis StackOverflow as an example, is written by students or juniors or bootcamp folks writing incorrect code and posting it online.
What % of the online Golang is GH repo like Docker or K8s vs a student posting their buggy Gomoku implementation in StackOverflow?
The future of programming language design has AI-comprehensibility/AI-hallucination-avoidance as one of the key pillars. #1 above is a key aspect.