News for hackers. Stuff that matters.
Re:A case for Go as the best language for AI agents by 9rx on Monday March 02, 2026 @02:31PM (#47222915)
Calling a programming language without dependent types king of type safety is comical.

Does one get paid well to post these advertisements for Rust?

Re:A case for Go as the best language for AI agents by ses1984 on Monday March 02, 2026 @04:09PM (#47224107)
I’m not sure they’re saying rust is king of types, they’re saying it’s king of llm targets.
Re:A case for Go as the best language for AI agents by hu3 on Monday March 02, 2026 @04:16PM (#47224184)
Which it obviously can't be because it has an anaemic standard library and depends on creates for basic things like error handling and async.

Not to mention it's one of the slowest compilation of recent languages if not the slowest (maybe Kotlin).

Re:A case for Go as the best language for AI agents by ses1984 on Monday March 02, 2026 @04:48PM (#47224636)
But there is no language that is best in all of these dimensions (including ones described above).

Everything is a trade-off.

Re:A case for Go as the best language for AI agents by satvikpendem on Monday March 02, 2026 @02:36PM (#47222981)
What will you use for dependent types, Idris 2? Lean? None are as popular as Rust especially counting the number of production level packages available.
Re:A case for Go as the best language for AI agents by valenterry on Tuesday March 03, 2026 @03:23AM (#47229702)
Scala has dependant types (though inferior than Idris ones) and has the whole jvm ecosystem.
Re:A case for Go as the best language for AI agents by sockaddr on Monday March 02, 2026 @03:24PM (#47223564)
This is quite sad to see someone react to a comment they disagree with by assuming that different opinion is paid for. I'd love it if you dug into my comment history and found even a shred of evidence that I'm being paid to talk positively about my programming language of choice.

I hope there aren't many of your type on here.

Re:A case for Go as the best language for AI agents by 9rx on Monday March 02, 2026 @03:43PM (#47223767)
All comments are paid for in some way, even if only in "warm fuzzies". If that is sad, why are you choosing to be sad? But outlandish comments usually require greater payment to justify someone putting in the effort. If you're not being paid well, what's the motivation to post things you know don't make any sense to try and sell a brand?
Re:A case for Go as the best language for AI agents by sockaddr on Tuesday March 03, 2026 @12:52AM (#47228648)
> If you're not being paid well, what's the motivation to post things you know don't make any sense to try and sell a brand?

Because it works. Because it does in fact make sense despite your frustration with the concept.

Re:A case for Go as the best language for AI agents by 9rx on Tuesday March 03, 2026 @02:15AM (#47229192)
Right. So why did you deny it earlier?
Re:A case for Go as the best language for AI agents by sockaddr on Tuesday March 03, 2026 @10:54AM (#47234246)
I'm answering the part of your question about why I post about something that I find works.

Are you this dense in real life or is this an act?

Re:A case for Go as the best language for AI agents by 9rx on Tuesday March 03, 2026 @04:12PM (#47239084)
Is a computer dense in real life? Does that not go without saying?

Are you under the impression that HN is some kind of intelligent animal?

Re:A case for Go as the best language for AI agents by chillfox on Monday March 02, 2026 @03:56PM (#47223951)
Isn’t dependent types replicating the object oriented inheritance problem in the type system?
Re:A case for Go as the best language for AI agents by 9rx on Monday March 02, 2026 @04:04PM (#47224043)
No, unless you mean the problem of over-engineering? In which case, yes, that is a realistic concern. In the real world, tests are quite often more than good enough. And since they are good enough they end up covering all the same cases a half-assed type system is able to assert anyway by virtue of the remaining logic needing to be tested, so the type system doesn't become all that important in the first place.

A half-assed type system is helpful for people writing code by hand. Then you get things like the squiggly lines in your editor and automated refactoring tools, which are quite beneficial for productivity. However, when an LLM is writing code none of that matters. It doesn't care one bit if the failure reports comes from the compiler or the test suite. It is all the same to it.