News for hackers. Stuff that matters.
Re:A case for Go as the best language for AI agents by bensyverson on Monday March 02, 2026 @02:10PM (#47222585)
I built an agent with Go for the exact reasons laid out in the article, but did consider Rust. I would prefer it to be Rust actually. But the #1 reason I chose Go is token efficiency. My intuitive sense was that the LLM would have to spent a lot of time reasoning about lifetimes, interpreting and fixing compiler warnings, etc.
Re:A case for Go as the best language for AI agents by llimllib on Monday March 02, 2026 @02:14PM (#47222649)
I've built tools with both Go and Rust as LLM experiments, and it is a real advantage for Go that the test/compile cycle is much faster.

I've been successful with each, I think there's positives and negatives to both, just wanted to mention that particular one that stands out as making it relatively more pleasant to work with.

Re:A case for Go as the best language for AI agents by g947o on Monday March 02, 2026 @02:36PM (#47222986)
"LLM would have to spend a lot of time reasoning about lifetimes"

Let's set aside the fact that Go is a garbage collected language while Rust is not for now...

Do you prefer to let LLM reason about lifetimes, or debugging subtle errors yourself at runtime, like what happens with C++?

People who are familiar with the C++ safety discussion understand that lifetimes are like types -- they are part of the code and are just as important as the real logic. You cannot be ambiguous about lifetimes yet be crystal clear about the program's intended behavior.

Re:A case for Go as the best language for AI agents by bensyverson on Monday March 02, 2026 @02:52PM (#47223175)
Fair point, and it depends on whether you're building code to last a decade, or creating a quick proof of concept.
Re:A case for Go as the best language for AI agents by gf000 on Monday March 02, 2026 @04:36PM (#47224473)
For many (most) types of objects lifetimes can be a runtime property just fine. For e.g. a list, in rust/c/c++ you would have to do an explicit decision how long should it be "alive", meanwhile a managed language's assumption that when it's reachable that is its lifetime is completely correct and it has the benefit of fluidly adapting to future code changes, lessening maintenance costs.

Of course there are types where this is not true (file handlers, connections, etc), and managed languages usually don't have as good features to deal with these as CPP/Rust (raii).

Re:A case for Go as the best language for AI agents by zarzavat on Monday March 02, 2026 @02:31PM (#47222925)
It's not a waste of time though. Those warnings and clippy lints are there to improve the quality of the code and to find bugs.

As a human I can just decide to write quality code (or not!), but LLMs don't understand when they're being lazy or stupid and so need to have that knowledge imposed on them by an external reviewer. Static analysis is cheap, and more importantly it's automatic. The alternative is to spend more time doing code review, but that's a bottleneck.

Re:A case for Go as the best language for AI agents by 0x3f on Monday March 02, 2026 @02:13PM (#47222632)
I've never actually seen it get a compiler issue arising from lifetimes, so it seems to one-shot that stuff just fine. Although my work is typically middle of the road, non-HFT trading applications, not super low-level.
Re:A case for Go as the best language for AI agents by bryanlarsen on Monday March 02, 2026 @02:23PM (#47222786)
It certainly had to iterate on lifetimes prior to Claude 4.5, at least for me. Prior to Claude 4.0 it was pretty bad at Rust.
Re:A case for Go as the best language for AI agents by littlestymaar on Monday March 02, 2026 @04:46PM (#47224606)
Most LLM sucked at Rust at the beginning because there's much less rust code available on the broad internet.

I suspect the providers started training specifically in it because it appeared proportionally much more in the actual LLM usage (obviously much less than more mainstream languages like Python or JavaScript, but I wouldn't be surprised if there was more LLM queries on Rust than on C, for demographic reasons).

Nowadays even small Qwens are decent at it in one-shot prompts, or at least much better than GPT-4 was.

Re:A case for Go as the best language for AI agents by littlestymaar on Monday March 02, 2026 @04:42PM (#47224558)
That matches with actual Rust use actually, I've worked with Rust since 2017 on multiple projects and the number of times I've used the lifetime annotation has been very limited.

It's actually rare to have to borrow something and keep the borrow in another object (is where lifetime happens), most (95% at least I'd say) of the time you borrow something and then drop the borrow, or move the thing.

Re:A case for Go as the best language for AI agents by 0x3f on Monday March 02, 2026 @06:41PM (#47225894)
Yes, I basically do everything the lazy/thoughtless way for a first pass. I find in 99% of cases that's already performant enough and matches the intended data flow, but if you ever want to optimize it, you can. The same is also true with the types: you can bash out a prototype very quickly and then tighten them up later, using Clippy to easily find all the shortcuts you took.
Re:A case for Go as the best language for AI agents by b40d-48b2-979e on Monday March 02, 2026 @02:20PM (#47222734)
LLMs don't "reason".
Re:A case for Go as the best language for AI agents by thot_experiment on Monday March 02, 2026 @02:29PM (#47222901)
Why is this a meaningful distinction to you? What does "reason" mean here? Can we construct a test that cleanly splits what humans do from what LLMs do?
Re:A case for Go as the best language for AI agents by grey-area on Monday March 02, 2026 @02:49PM (#47223134)
Sure, things like counting the ‘r’s in strawberry, for example (till they are retrained not to make that mistake).
Re:A case for Go as the best language for AI agents by thot_experiment on Monday March 02, 2026 @03:11PM (#47223414)
There are humans that can't do that but are clearly capable of reasoning. Not a meaningful categorical split.
Re:A case for Go as the best language for AI agents by grey-area on Monday March 02, 2026 @06:40PM (#47225884)
There are certainly humans with poor reasoning or even incapable of reasoning, I’m not sure what you think that proves?
Re:A case for Go as the best language for AI agents by thot_experiment on Monday March 02, 2026 @08:09PM (#47226587)
Ok, but if you read my comment you would note that I constructed a category of humans who can reason but cannot count the r's in strawberry.

I think you don't know what it means to reason, and are dismissively claiming AI cannot reason as though it invalidates a point made earlier without even having a sturdy definition in your head. I think for you to say "LLMs can't reason" in this context is essentially a NOP.

Re:A case for Go as the best language for AI agents by grey-area on Tuesday March 03, 2026 @04:43AM (#47230262)
It is hard to define reasoning or thinking, these are vague concepts. I use them to indicate there are areas where these machines take obviously wrong decisions, because they are above all probability weighing machines based on a corpus, that is not I hope you would agree thinking, so you must believe there is some emergent properties which constitute thinking since you're so confident these machines are in fact doing that.

AI companies use these terms (thinking, reasoning etc) to try to trick users into anthropomorphising pattern matching machines and so that people believe they are true general intelligence.

I don't think we've reached AGI yet, though we are closer than previously, and I'm skeptical LLMs will be the route - they are impressive, but they are better at tricking humans than at performing complex tasks they have not seen before IME.

Do you think we have seen AGI yet from LLMs? If not how would you define their limitations?

Re:A case for Go as the best language for AI agents by RedNifre on Tuesday March 03, 2026 @08:43AM (#47232198)
They don't see the letters, so how could they possibly succeed at that? It's like asking a human how many infrared flowers they see.
Re:A case for Go as the best language for AI agents by grey-area on Friday March 06, 2026 @06:54AM (#47273865)
I'm pointing out that they don't 'think' or 'reason' like humans, they're very impressive, but I don't think they've reached the bar for thinking yet, as simple logic puzzles or puzzles like this prove (until the LLM authors take note and add special workarounds for those particular use-cases).

I believe most LLMS no longer fail at this, because they've been given the tools to do so (for example use python under the hood to count letters), but it's an important observation because it shows us that they don't think like us.

Re:A case for Go as the best language for AI agents by bensyverson on Monday March 02, 2026 @02:53PM (#47223188)
Take it up with OpenAI's API designers—it's their term
Re:A case for Go as the best language for AI agents by b40d-48b2-979e on Thursday March 05, 2026 @08:56AM (#47261592)
You are the one repeating their lies.