News for hackers. Stuff that matters.
Re:A case for Go as the best language for AI agents by 0x3f on Monday March 02, 2026 @02:07PM (#47222545)
I think the more you can shift to compile time the better when it comes to agents. Go is therefore 'ok', but the type system isn't as useful as other options.

I would say Rust is quite good for just letting something churn through compiler errors until it works, and then you're unlikely to get runtime errors.

I haven't tried Haskell, but I assume that's even better.

Re:A case for Go as the best language for AI agents by dnautics on Monday March 02, 2026 @04:14PM (#47224162)
> I think the more you can shift to compile time the better when it comes to agents

not born out by evidence. rust is bottom-mid tier on autocoderbenchmark. typescript is marginally bettee than js

shifting to compile time is not necessarily great, because the llm has to vibe its way through code in situ. if you have to have a compiler check your code it's already too late, and the llm does not havs your codebase in its weights, a fetch to read the types of your functions is context expensive since it's nonlocal.

Re:A case for Go as the best language for AI agents by zozbot234 on Monday March 02, 2026 @04:18PM (#47224206)
> if you have to have a compiler check your code it's already too late

If you're running good agentic AI it can read the compile errors just like a human and work to fix them until the build goes through.

Re:A case for Go as the best language for AI agents by hu3 on Monday March 02, 2026 @04:22PM (#47224285)
Which is slow and heavy in Rust. All languages have that but faster (and simpler due to no lifetimes).
Re:A case for Go as the best language for AI agents by zozbot234 on Monday March 02, 2026 @04:25PM (#47224318)
cargo check is fast. It's only slow when the build goes through (barring extreme use of compile-time proc macros, which is rare and crate-specific).
Re:A case for Go as the best language for AI agents by dnautics on Monday March 02, 2026 @04:25PM (#47224321)
i mean as a first order approximation context (the key resource that seems to affect quality) doesn't depend on real compilation speed, presumably the agent is suspended and not burning context while waiting for compliation
Re:A case for Go as the best language for AI agents by dnautics on Monday March 02, 2026 @04:22PM (#47224279)
how about not making the error in the first place
Re:A case for Go as the best language for AI agents by hnhn34 on Monday March 02, 2026 @06:49PM (#47225972)
If you have an LLM that doesn't make errors ever, then you have an ASI, at which point the conversation is meaningless. In the meantime, having a lower error rate but more uncaught errors is less important than making incorrect code impossible to compile, and/or flagged by strict linters.
Re:A case for Go as the best language for AI agents by dnautics on Tuesday March 03, 2026 @02:00PM (#47237050)
incorrect. having a higher caught error rate means that you consume more context on the way to your solution which makes for worse results, both by spending more time in the context danger zone, and by losing more on compaction handoffs.

given a system that can ascertain the same level of overall non-business logic errors as one that makes a ton of non-business logic errors that are all catchable, your LLM's ability to correctly implement business logic amid the noise will be greatly impaired along the way.

Re:A case for Go as the best language for AI agents by g947o on Monday March 02, 2026 @02:21PM (#47222754)
I think Rust is great for agents, for a reason that is rarely mentioned: unit tests are in the same file. This means that agents just "know" they should update the tests along with the source.

With other languages, whether it's TypeScript/Go/Python, even if you explicitly ask agents to write/run tests, after a while agents just forget to do that, unless they cause build failures. You have to constantly remind them to do that as the session goes. Never happens with Rust in my experience.

Re:A case for Go as the best language for AI agents by wakawaka28 on Monday March 02, 2026 @04:08PM (#47224098)
Unit tests in the same file wastes context and makes the whole thing hard to navigate for humans and machines alike.
Re:A case for Go as the best language for AI agents by dnautics on Monday March 02, 2026 @04:15PM (#47224168)
nah, the agents jump around files anyways.
Re:A case for Go as the best language for AI agents by J_Shelby_J on Monday March 02, 2026 @04:21PM (#47224258)
I’ve been doing the least amount of unit tests possible and doing debug asserts instead.
Re:A case for Go as the best language for AI agents by 0x3f on Monday March 02, 2026 @06:30PM (#47225793)
Normally I would put as many invariants in the types as possible, then tests cover the rest. I'm curious how you do this/what you use it for though. Would be cool if you had any examples.
Re:A case for Go as the best language for AI agents by jimbokun on Monday March 02, 2026 @06:11PM (#47225602)
It’s about the best possible documentation.
Re:A case for Go as the best language for AI agents by wakawaka28 on Monday March 02, 2026 @06:36PM (#47225855)
It isn't documentation. It is example code, in the best case. That shit belongs in other files, not in the main file. There is also a reason why literate programming never took off in general. Good luck getting anything done when 80% (conservatively) of the stuff you have to scroll through contributes nothing to the actual execution of the program and might actually be giving you false impressions of how things need to be done.
Re:A case for Go as the best language for AI agents by g947o on Tuesday March 03, 2026 @06:47AM (#47231052)
I have yet to see a single Rust file where the test comes before source and takes 80% of the file content.
Re:A case for Go as the best language for AI agents by wakawaka28 on Tuesday March 03, 2026 @09:25AM (#47232822)
Probably because all the tests are trivial, and people have the bias to not add all the testing that is needed inline with the code.
Re:A case for Go as the best language for AI agents by 0x3f on Monday March 02, 2026 @02:22PM (#47222783)
You can add a callback to e.g. Claude to guarantee it does a cargo check and test.
Re:A case for Go as the best language for AI agents by unshavedyak on Monday March 02, 2026 @02:32PM (#47222931)
Fwiw i used to do this (and with lints) - it was the only way to make Claude consistent in the early days when i first started using it (~August 2025).

For many months now though, Claude is nearly consistent with both calling test and check/clippy. Perhaps this is due to my global memory file, not sure to be honest.

What i do know, is that i never use those hooks, i have them disabled atm. Why? Because the benefit is almost nonexistent as i mentioned, and the cost is at times, quite high. It means i cannot work on a project piecemeal, aka "only focus on this file, it will not compile and that's okay", and instead forces claude to make complete edits which may be harder to review. Worst of all, i have seen it get into a loop and be unable to exit. Eg a test fails and claude says "that failure is not due to my changes" or w/e, and it just does that.. forever, on loop. Burns 100% of the daily tokens pretty quick if unmonitored.

Fwiw i've not looked to see if there's an alternate way to write hooks. It might be worth having the hook only suggest, rather than forcing claude. Alternatively, maybe i could spawn a subagent to review if stopping claude makes sense.. hmm.

Re:A case for Go as the best language for AI agents by 0x3f on Monday March 02, 2026 @06:28PM (#47225779)
I find this doesn't work automatically for me because the projects I'm on have a lot of conditional compilation feature flags that it doesn't quite understand how to cargo check properly, unless I tell it.

Maybe for your case you could create a /maybe-check command, and run that in the hook? Then specify the conditions under which a check/test is needed in there.

Re:A case for Go as the best language for AI agents by jimbokun on Monday March 02, 2026 @06:10PM (#47225596)
Even LLMs know they should write tests but hate doing it.
Re:A case for Go as the best language for AI agents by overfeed on Tuesday March 03, 2026 @01:35AM (#47228911)
> if you explicitly ask agents to write/run tests, after a while agents just forget to do that

Add a single task using your project's preferred task-runner that performs all the checks you want the agent to adhere to: linting, test coverage, style checks, test, etc, and add a rule in AGENTS.md that agents should always run this tasks after edits, and fix any warnings or errors produced.

Add the same task to your version management's pre-merge checks, in case the agent (or colleague) forgets to check before pushing. This was good practice since before LLMs, but I never was a fan of having such checks to pre-commit hooks.

Re:A case for Go as the best language for AI agents by sarkarsh on Tuesday March 03, 2026 @02:17PM (#47237365)
This is good advice but it highlights the real issue -- were encoding agent workflow into markdown files and hoping the model follows instructions consistently.

AGENTS.md saying "run tests after edits" works until the agent decides it knows better, or the context window gets long enough that it deprioritizes the instruction. The language you write agents in matters way less than the state layer they operate on.

Ive been using ctlsurf for this -- structured blocks agents read and write through MCP. Task checklists the agent checks off, key-value state it updates, append-only logs of what it did. The project owns that state, not the agent session. Instead of "put a rule in AGENTS.md" you have actual task state the agent queries and updates, and a human can see exactly where it is.

The whole thread is debating Go vs Rust vs Python but the language is maybe 10% of what makes an agent reliable in production. The other 90% is state management, and right now most people are doing that with flat files.

Re:A case for Go as the best language for AI agents by gf000 on Monday March 02, 2026 @04:08PM (#47224099)
I absolutely love Rust, but due to the space it occupies there is simply more to specify in code, and more things to get wrong for a stochastic LLM.

Lifetimes are a global property and LLMs are not particularly good at reasoning about them compared to local ones.

Most applications don't need low level memory control, so this complexity is better pushed to runtime.

There are lots of managed languages with good/even stronger type systems than Rust, paired with a good modern GC.

Re:A case for Go as the best language for AI agents by zozbot234 on Monday March 02, 2026 @04:21PM (#47224262)
> Lifetimes are a global property and LLMs are not particularly good at reasoning about them compared to local ones.

Huh? Lifetime analysis is a local analysis, same as any other kind of type checking. The semantics may have global implications, but exposing them locally is the whole point of having dedicated syntax for it.

Re:A case for Go as the best language for AI agents by gf000 on Monday March 02, 2026 @04:47PM (#47224623)
> Lifetime analysis is a local analysis, same as any other kind of type checking

That's what the compiler is doing.

The developer (or LLM) is supposed to do the global reasoning so that what they end up writing down makes semantic sense.

Sure, throwing a bunch of variants at it and see what sticks is certainly an approach, but "lifetimes check out" only proves that the resulting code will be memory safe, not that it actually makes sense.

Re:A case for Go as the best language for AI agents by siliconc0w on Monday March 02, 2026 @02:27PM (#47222860)
+1 to Rust - if we're offloading the coding to the clankers, might as well front-load more complexity cost to offload operational cost. Sure, it isn't a particularly ergonomic or simple language but we're not the ones who have to use it.
Re:A case for Go as the best language for AI agents by jaggederest on Monday March 02, 2026 @02:18PM (#47222711)
Haskell is great, for what it's worth, but as with any language you have to reign in the AI's use of excessive verbosity. It will stack abstractions to the moon even for simple projects, and haskell's strengths for humans in this regard are weaknesses for AI - different weaknesses than other languages, but still, TANSTAAFL

I am trying out building a toy language hosted on Haskell and it's been a nice combo - the toy language uses dependent typing for even more strictness, but simple regular syntax which is nicer for LLMs to use, and under the hood if you get into the interpreter you can use the full richness of Haskell with less safety guardrails of dependent typing. A bit like safe/unsafe Rust.

Re:A case for Go as the best language for AI agents by solomonb on Monday March 02, 2026 @02:26PM (#47222845)
> Haskell is great, for what it's worth, but as with any language you have to reign in the AI's use of excessive verbosity. It will stack abstractions to the moon even for simple projects, and haskell's strengths for humans in this regard are weaknesses for AI - different weaknesses than other languages, but still, TANSTAAFL

I haven't had this problem with Opus 4.5+ and Haskell. In fact, I get the opposite problem and often wish it was more capable of using abstractions.

Re:A case for Go as the best language for AI agents by jaggederest on Monday March 02, 2026 @02:36PM (#47222988)
I guess it might be something with the subject matter and how I'm prompting. I prefer somewhat more imperative haskell though so that's probably a taste thing.
Re:A case for Go as the best language for AI agents by jnpnj on Monday March 02, 2026 @02:32PM (#47222933)
Was asking on mastodon if people tried leveraging very concise and high level languages like haskell, prolog with 2025 llms.. I'm really really curious.
Re:A case for Go as the best language for AI agents by synergy20 on Monday March 02, 2026 @02:47PM (#47223108)
the problem there might be limited training data?
Re:A case for Go as the best language for AI agents by esafak on Monday March 02, 2026 @02:53PM (#47223196)
So you're saying we should be vibe coding more open source stuff in languages for discerning programmers ;)
Re:A case for Go as the best language for AI agents by bethekind on Monday March 02, 2026 @04:35PM (#47224455)
Jane Street had a cool video about how you can address lack of training data in a programming language using llm patching. Video is called "Arjun Guha: How Language Models Model Programming Languages & How Programmers Model Language Models"

The big take away is that you can "patch" llms and steer them to correct answers in less trained programming languages, allowing for superior performance. Might work here. Not a clue how to implement, but stuff to llm-to-doc and the like makes me hopeful

Re:A case for Go as the best language for AI agents by headcanon on Monday March 02, 2026 @03:00PM (#47223291)
I've been cruising on rust too, not just because it works great for LLMs but also the great interop:

- I can build SPAs with typescript and offload expensive operations to a rust implementation that targets wasm

- I can build a multi-platform bundled app with Tauri that uses TS for the frontend, rust for the main parts of the backend, and it can load a python sidecar for anything I need python for (ML stuff mainly)

- Haven't dived too much into games but bevy seems promising for making performant games without the overhead of using one of the big engines (first-class ECS is a big plus too)

It ended up solving the problem of wanting to use the best parts of all of these different languages without being stuck with the worst parts.

Re:A case for Go as the best language for AI agents by sockaddr on Monday March 02, 2026 @02:14PM (#47222639)
Exactly. Here's my experience using LLMs to produce code:

- Rust: nearly universally compiles and runs without fault.

- Python,JS: very often will run for some time and then crash

The reason I think is type safety and the richness of the compiler errors and warnings. Rust is absolutely king here.

Re:A case for Go as the best language for AI agents by lmf4lol on Monday March 02, 2026 @03:18PM (#47223503)
I ve just vibed for 2 weeks a pretty complex Python+Next.js app. I've forced Codex into TDD, so everything(!) has to be tested. So far, it is really really stable and type errors haven't been a thing yet.

Not wanting to disagree, I am sure with Rust, it would be even more stable.

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.

Re:A case for Go as the best language for AI agents by squeegmeister on Monday March 02, 2026 @02:15PM (#47222660)
Have also wondered how Haskell would be. From my limited understanding it’s one of the few languages whose compiler enforces functional purity. I’ve always liked that idea in theory but never tried the language
Re:A case for Go as the best language for AI agents by ruszki on Monday March 02, 2026 @02:21PM (#47222764)
You can write in it like in imperative languages. I did it when I first encountered it long time ago, and I didn’t know how to write, or why I should write code in a functional way. It’s like how you can write in an object oriented way in simple C. It’s possible, and it’s a good thought experiment, but it’s not recommended. So, it’s definitely not “enforced” in a strict sense.
Re:A case for Go as the best language for AI agents by squeegmeister on Monday March 02, 2026 @03:09PM (#47223394)
Isn’t code in Haskell pure by default and you have to use special keywords to have code with side effects?
Re:A case for Go as the best language for AI agents by lock1 on Monday March 02, 2026 @04:23PM (#47224287)
There's no special keyword, just a "generic" type `IO<T>` defined in standard library which has a similar "tainting" property like `async` function coloring.

Any side effect has to be performed inside `IO<T>` type, which means impure functions need to be marked as `IO<T>` return. And any function that tries to "execute" `IO<T>` side effect has to mark itself as returning `IO<T>` as well.

Re:A case for Go as the best language for AI agents by gf000 on Monday March 02, 2026 @04:30PM (#47224403)
It's pure even with side effects.

You basically compose a description of the side effects and pass this value representing those to the main handler which is special in that it can execute the side effects.

For the rest of the codebase this is simply an ordinary value you can pass on/store etc.

Re:A case for Go as the best language for AI agents by 0x3f on Monday March 02, 2026 @02:21PM (#47222763)
I think the intersection of FP and current AI is quite interesting. Purity provides a really tightly scoped context, so it almost seems like you could have one 'architect' model design the call graph/type skeleton at a high level (function signatures, tests, perf requirements, etc.) then have implementers fill them out in parallel.
Re:A case for Go as the best language for AI agents by iddan on Monday March 02, 2026 @03:04PM (#47223334)
Also LLMs don’t mind repeating params for each child call. Pretty neat
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.
Re:A case for Go as the best language for AI agents by lokl on Monday March 02, 2026 @02:40PM (#47223027)
What about SPARK? Not enough training data?
Re:A case for Go as the best language for AI agents by chrismanning on Monday March 02, 2026 @02:35PM (#47222966)
Haskell works pretty well with agents, particularly when the agent is LSP-capable and you set up haskell-language-server. Even less capable models do well with this combo. Without LSP works fine but the fast feedback loop after each edit really accelerates agents while the intent is still fresh in context
Re:A case for Go as the best language for AI agents by solomonb on Monday March 02, 2026 @02:23PM (#47222811)
I've been using LLMs (Opus) heavily for writing Haskell, both at work and on personal projects and its shockingly effective.

I wouldn't use it for the galaxy brain libraries or explorations I like to do for my blog but for production Haskell Opus 4.5+ is really good. No other models have been effective for me.

Re:A case for Go as the best language for AI agents by cortesoft on Monday March 02, 2026 @02:22PM (#47222779)
I am guessing there is a balance between a language that has a lot of soundness checks (like Rust) and a language that has a ton of example code to train on (like Python). How much more valuable each aspect is I am not sure.
Re:A case for Go as the best language for AI agents by echelon on Monday March 02, 2026 @02:23PM (#47222809)
Rust is the best language for AI:

- Rust code generates absolutely perfectly in Claude Code.

- Rust code will run without GC. You get that for free.

- Rust code has a low defect rate per LOC, at least measured by humans. Google gave a talk on this. The sum types + match and destructure make error handling ergonomic and more or less required by idiomatic code, which the LLM will generate.

I'd certainly pick Rust or Go over Python or TypeScript. I've had LLMs emit buggy dynamic code with type and parameter mismatches, but almost never statically typed code that fails to compile.

Re:A case for Go as the best language for AI agents by moritz on Monday March 02, 2026 @02:36PM (#47222983)
https://arxiv.org/abs/2508.09101

In this benchmark, models can correctly solve Rust problems 61% on first pass — A far cry from other languages such as C# (88%) or Elixir (a “buggy dynamic language”) where they perform best (97%).

I wonder why that is, it’s quite surprising. Obviously details of their benchmark design matter, but this study doesn’t support your claims.

Re:A case for Go as the best language for AI agents by squeegmeister on Monday March 02, 2026 @03:07PM (#47223379)
This is great, but aug 2025 is almost a lifetime ago with how fast these models are improving. Opus 4.5 came out November 2025 fwiw
Re:A case for Go as the best language for AI agents by xigoi on Monday March 02, 2026 @02:31PM (#47222920)
The downside is that even simple Rust projects typically use hundreds of dependencies, and this is even worse with LLMs, who don’t understand the concept of “less is more”.
Re:A case for Go as the best language for AI agents by echelon on Monday March 02, 2026 @03:23PM (#47223560)
Nobody forces dependencies on you. You can control that.
Re:A case for Go as the best language for AI agents by nesarkvechnep on Monday March 02, 2026 @03:20PM (#47223527)
Idris would be even better.
Re:A case for Go as the best language for AI agents by thot_experiment on Monday March 02, 2026 @02:27PM (#47222858)
Of my friend group the two people I think of as standout in terms of getting useful velocity out of AI workflows in non-trivial domains (as opposed to SaaS plumbing or framework slop) primarily use Haskell with massive contexts and tight integration with the dev env to ground the model.
Re:A case for Go as the best language for AI agents by michaelbarton on Monday March 02, 2026 @05:19PM (#47224987)
I wonder if then Idris would be even better than that since it has even more typing