News for hackers. Stuff that matters.
Re:If AI writes your code, why use Python? by gertlabs on Monday May 11, 2026 @09:58PM (#48103303)
Surprisingly, LLMs are actually much worse at reasoning in Python than other common programming languages for agentic coding tasks.

Data here: https://gertlabs.com/rankings?mode=agentic_coding

Re:If AI writes your code, why use Python? by BariumBlue on Monday May 11, 2026 @10:23PM (#48103472)
Hah, I was just thinking that Python likely has a vast ocean of training data, but it's likely of lower quality, being much of it is written by beginners and those who aren't primarily programmers.
Re:If AI writes your code, why use Python? by dariusj18 on Tuesday May 12, 2026 @12:03AM (#48104071)
That was the hardest part of learning PHP, all the code examples online were just awful.
Re:If AI writes your code, why use Python? by andai on Tuesday May 12, 2026 @04:16AM (#48105584)
Worked on a PHP project once. Every time I asked why something was done a certain way the answer was "dunno, we copy pasted this code snippet."

Certain popular PHP codebases appear to use a similar methodology.

Re:If AI writes your code, why use Python? by Sohcahtoa82 on Tuesday May 12, 2026 @03:05PM (#48112865)
It's why I consider PHP to be "RCE as a Service".

So much copy/pasted code, some of it REALLY bad, and PHP has a lot of foot-guns that can lead to RCE.

Re:If AI writes your code, why use Python? by stefanfisk on Monday May 11, 2026 @11:45PM (#48103968)
Reminds me of the time I asked Claude to write some Wordpress code for me. The results were…rough.
Re:If AI writes your code, why use Python? by topham on Monday May 11, 2026 @10:50PM (#48103631)
There's a broken idea that AI know Python because they're written in Python.

Not how any of it works.

Re:If AI writes your code, why use Python? by gertlabs on Monday May 11, 2026 @11:12PM (#48103755)
While recent models are capable of generalizing to any language at this point, I do think there are weights from their pretraining corpus that still leak through into how they create their responses. We observed similar language performance patterns across models from different providers, btw.
Re:If AI writes your code, why use Python? by dasyatidprime on Tuesday May 12, 2026 @03:04AM (#48105137)
Not what anyone was talking about. Training corpus ≠ inference engine.
Re:If AI writes your code, why use Python? by FireBeyond on Tuesday May 12, 2026 @12:37AM (#48104231)
All my vibe coded projects (personal) are Go backend services, with Typescript/React frontend. And my thoughts were based on similar things. Like why I wouldn't use PHP for that, either.
Re:If AI writes your code, why use Python? by librasteve on Tuesday May 12, 2026 @04:22AM (#48105628)
I was (pleasantly) surprised by Claude Code doing Raku - also with a limited training set (~2000 Stack Overflow, a bunch of Rosetta, 2,500 modules). I put this down to the quality of the code for the core community who are all frankly uber-gremlins.
Re:If AI writes your code, why use Python? by polytely on Tuesday May 12, 2026 @05:15AM (#48105947)
Yeah Raku feels so expressive and lovely to me with the help of an AI assistant. I've only done toy programs and scripts with it but it is actually so nice.
Re:If AI writes your code, why use Python? by kraf on Tuesday May 12, 2026 @05:44AM (#48106096)
That's what I'm thinking too. There is a lot of noise and I know teams where the majority of the people writing Python just have no idea what they're doing.

I'm working with Clojure which is used mostly by senior engineers and it still blows my mind how well Claude writes software in it even though it's a fringe language. It's even able to pick up in-house DSLs written with macros.

Re:If AI writes your code, why use Python? by chamomeal on Tuesday May 12, 2026 @06:14PM (#48115308)
Was looking for somebody to mention that LLMs are weirdly good at clojure! Have you tried hooking your LLM up to a repl? It’s crazy stuff. Type systems are a great feedback loop, but a LLM with a REPL is something else. Much more dangerous though!!
Re:If AI writes your code, why use Python? by smoe on Tuesday May 12, 2026 @06:23AM (#48106285)
Having used Python on and off for 20 years, my experience with LLMs writing Python has been mixed. I don’t think that’s necessarily because of a low-quality dataset, but rather because Python’s applications are so broad and the language has gone through several paradigm shifts over time: sync vs. async, typed vs. untyped, scientific Python looking very different from web application code, some people really wishing it were an FP language, and others doing the clean-architecture OOP onion soup. It has gotten so fragmented.

Recently, I had a more pleasant experience using LLMs with Go. It reminds me a bit of Python 2.x, when the community seemed, in my view, more focused on embracing a stupid simple language, with everyone trying to write roughly similar "Pythonic" code.

Re:If AI writes your code, why use Python? by stingraycharles on Tuesday May 12, 2026 @07:36AM (#48106802)
> Having used Python on and off for 20 years, my experience with LLMs writing Python has been mixed. I don’t think that’s necessarily because of a low-quality dataset, but rather because Python’s applications are so broad and the language has gone through several paradigm shifts over time

If there’s one language that is the prime example of this, it’s C++, and according to this benchmark it ranks incredibly high.

I’m also thoroughly confused why Kimi 2.6 scores 83% while Opus 4.7 scores 67% for C++, GPT5.5 isn’t even in the top10.

Gemma 4 31B scores 100% success rate for Python (!!) while Opus 4.6 only 65%.

This benchmark really seems to be all over the place and doesn’t make sense.

Re:If AI writes your code, why use Python? by gertlabs on Tuesday May 12, 2026 @05:23PM (#48114800)
The more filters you apply (single model and single language, especially if you also filter by pipeline like agentic vs one-shot), the fewer samples, so there is variance. Known limitation that is inevitable with any finite budget. This is why we are selective about adding more languages because it will dilute the amount of samples we can run per language per model. But the aggregated statistics hold up well and are very consistent in our testing.
Re:If AI writes your code, why use Python? by stingraycharles on Tuesday May 12, 2026 @09:48PM (#48116898)
I just applied a single filter, programming language.
Re:If AI writes your code, why use Python? by isityettime on Monday May 11, 2026 @10:50PM (#48103636)
I would love to see how they do with functional languages and especially Lisps here. I've noticed pretty good performance with Emacs Lisp relative to overall model strength, but I haven't used LLMs to application code in any such languages.

It would also be interesting to see how Python compares to other languages in its niche (Ruby, Perl, Raku).

Thanks for putting this together! It's interesting.

Re:If AI writes your code, why use Python? by gertlabs on Monday May 11, 2026 @11:52PM (#48104009)
That's a good idea. Would you rather see Lisp or Scala? Any interest in Prolog? We are trying to be selective to keep the data concentrated, but we will eventually add a couple more, most likely to sample different programming paradigms.
Re:If AI writes your code, why use Python? by phillc73 on Tuesday May 12, 2026 @01:19AM (#48104481)
Just last night I was going down the rabbit hole of "what's the best programming language to use for vibe coding." I came to a short list of:

a) Typed Racket

b) OCaml

c) Julia

I would love to see those three added to your benchmarks. And Mistral Medium 3.5 added to the LLM list, please.

Re:If AI writes your code, why use Python? by andai on Tuesday May 12, 2026 @04:12AM (#48105568)
Those are some fine languages, but how did you pick them? What was the criterion?
Re:If AI writes your code, why use Python? by phillc73 on Tuesday May 12, 2026 @04:57AM (#48105850)
The initial criteria was strongly typed and functional first. Using an LLM for answers, of course, that returned me a list that looked like:

- Haskell

- OCaml

- F#

- Scala

- Gleam

- Purescript

- Grain

- Idris

Then I asked if there were any Schemes or Lisps that met the initial requirements, which added a bunch more options (Typed Racket, Typol, Elm, ReScript etc).

Then I asked about Julia specifically, as it's a language I'm already reasonably familiar with and knew that it's possible to write it with static annotations.

Next I started filtering the list based on additional criteria; didn't want to target a JS compilation target, performance, size of package ecosystem, tooling, community, learning curve (I do want to review and understand the output).

There were a bunch of follow-up questions over a few hours of prompting, reading and a couple of beers. All this resulted in the shortlist of OCaml, Typed Racket and Julia.

Julia pretty much remains in there, even though it doesn't really meet the strongly typed initial criteria, based on my familiarity, the ecosystem especially for AI/ML tasks and performance factors.

I know zero about OCaml and find the thought of learning it a bit daunting. Typed Racket seems more approachable anyway.

Re:If AI writes your code, why use Python? by gertlabs on Tuesday May 12, 2026 @02:02AM (#48104752)
Thanks for the recs, we will look into adding some of these, maybe OCaml for variety. I'm not familiar with Racket.

Mistral Medium 3.5 is on there, but you will have to scroll down pretty far to find it (does not perform well): https://gertlabs.com/rankings?mode=oneshot_coding

Re:If AI writes your code, why use Python? by phillc73 on Tuesday May 12, 2026 @02:15AM (#48104826)
Thanks for that, I hadn't scrolled down far enough.

Just want to be sure I'm reading the results correctly... When I compare GPT-5.5 with Mistral Medium 3.5, I see in the tables:

a) Mistral beats GPT in Java and C++

b) It's close for Rust

c) GPT-5.5 easily wins for Go, Javascript, Python and Typescript

Model choice really does appear to be language dependent (assuming I'm reading the results correctly).

Re:If AI writes your code, why use Python? by gertlabs on Tuesday May 12, 2026 @02:52AM (#48105061)
The deeper you go into the filters (single models, cross correlated by specific languages), the smaller your sample sizes. A known limitation, tbh I doubt Mistral is better than GPT 5.5 at programming in any specific language and probably hit a few lower quality generations by GPT 5.5 by chance (but I could be wrong! We're always adding more samples so data improves over time. We always prioritize largest sample counts for near-frontier models first).
Re:If AI writes your code, why use Python? by regularfry on Tuesday May 12, 2026 @04:55AM (#48105837)
What's going on with Qwen3.6 27b? Filtered to Python it comes out at the top of the list, which seems... well, unlikely.
Re:If AI writes your code, why use Python? by johndough on Tuesday May 12, 2026 @07:11AM (#48106611)
While Qwen3.6 27B and 35B-A3B are very good, I am skeptical about them being that good. I think another factor is at play here.

The Qwen3.6 models have memorized some common games. For example, if you ask it to create an index.html with a snake game, it will generate almost the same high quality snake game every time. The relatively low success rate of 25% but high average percentile of almost 100% for one-shot coding in Python suggests that the model is extremely good at few tasks.

Re:If AI writes your code, why use Python? by 2ndorderthought on Tuesday May 12, 2026 @06:23AM (#48106286)
Qwen3.6 27b is a really strong model.
Re:If AI writes your code, why use Python? by regularfry on Tuesday May 12, 2026 @07:53AM (#48106941)
Yeah but that strong?
Re:If AI writes your code, why use Python? by 2ndorderthought on Tuesday May 12, 2026 @08:11AM (#48107125)
Yes that strong. Its only lacking in context length, but it's not that small there and it gets caught in circles more often then say a 1t parameter model does.

That's why a lot of people have been freaking out about local LLMs since april. There's finally a decent model that runs locally on a GPU or two that can do agentic programming at a reasonable enough tokens per second.

Re:If AI writes your code, why use Python? by johndough on Tuesday May 12, 2026 @12:07PM (#48110227)
> it gets caught in circles more often then say a 1t parameter model does.

I've found that the Q5+ quants are less loopy than Q4. Still not perfect, but noticeably better.

> reasonable enough tokens per second

The speed has been amazing. I've been running the recent llama.cpp MTP branch with an uncensored variant of Qwen3.6-35B-A3B on my RTX 3090 over 170 tokens per second and it was able to turn a buffer overflow into a reliable shell exploit in just a few seconds (with reasoning disabled). Still a bit loopy though. Hopefully, the Qwen team will pay more attention to those looping issues. It feels like their models are especially susceptible.

Re:If AI writes your code, why use Python? by 2ndorderthought on Tuesday May 12, 2026 @01:23PM (#48111336)
Is that on a single 3090? I need to change my settings it sounds like
Re:If AI writes your code, why use Python? by johndough on Tuesday May 12, 2026 @04:05PM (#48113726)
Yes, single RTX 3090 with this model https://huggingface.co/llmfan46/Qwen3.6-35B-A3B-uncensored-h... following these https://huggingface.co/havenoammo/Qwen3.6-35B-A3B-MTP-GGUF instructions (should add "-j 8" to last cmake command for parallel build) and llama-server with --reasoning off

Note that the MTP PR https://github.com/ggml-org/llama.cpp/pull/22673 is still under development, so things might be broken.

Re:If AI writes your code, why use Python? by gertlabs on Tuesday May 12, 2026 @11:48AM (#48110013)
The more filters applied (one-shot coding only, Python only), the more variation you can expect from fewer samples -- that being said, it really is a great model so it's probably not too far above where it would end up with infinite samples.
Re:If AI writes your code, why use Python? by isityettime on Tuesday May 12, 2026 @06:51AM (#48106455)
Racket is a variety of Scheme that grew up as a teaching language, but now also has a few other notable niches as well.

Typed Racket is to Racket as TypeScript is to JavaScript: it adds some additional static checks to an otherwise dynamic language via gradual typing. This pair of languages might help begin answer the question "does gradual typing generally help LLMs, or does TypeScript outperform JavaScript for incidental reasons?".

Among Lisps, I'm most interested in seeing Clojure because it's a language I can see myself using with LLMs at work. But Typed Racket and Racket could make an especially interesting pair because of the gradual typing thing.

I'm not sure whether you want to include them in your project. The kind of selectivity you describe yourself as going for is hard for me, especially since I'm not the one doing the work. :)

PS: Aside from this benchmarking and comparison project: Racket is an interesting language and seems like a good place to start if you want to explore classic Scheme texts (Structure and Interpretation of Computer Programs, The Little Schemer, How to Design Programs) or newer ones that try to teach newer or more specialized ideas (e.g., The Little Typer). You may have to tweak the language a bit to stay faithful to some of those books, but that's something Racket is good at and there are already sources noting relevant differences online.

When a non-programmer in my life expressed curiosity about programming, we ended up starting HtDP together and it's been fun. I think Racket was a good choice for that.

Re:If AI writes your code, why use Python? by 1659447091 on Tuesday May 12, 2026 @02:54AM (#48105078)
If you are taking request, I was hoping to see clojure on there.
Re:If AI writes your code, why use Python? by andai on Tuesday May 12, 2026 @04:12AM (#48105562)
My spider sense tells me the immutable-ness would help with correctness, but I'm not sure how much difference it would make in practice. Would love to see some numbers.

A relative lack of training data might have a bigger effect though.

Re:If AI writes your code, why use Python? by isityettime on Tuesday May 12, 2026 @06:26AM (#48106302)
I think Clojure would probably make for a more interesting comparison because its syntax is more different from the other languages currently on there and it's less multi-paradigm than Scala is (it doesn't support OOP, it's more explicitly immutable-first). I think Scala is a lovely and cool language, but I'd be more interested in the Clojure comparison here.

Prolog night be interesting because I bet nobody is trying to train very hard on it, but I'm less directly interested in model performance with Prolog.

Re:If AI writes your code, why use Python? by iLemming on Tuesday May 12, 2026 @03:45PM (#48113431)
> it doesn't support OOP

That is only accurate if OOP means "inheritance-based class hierarchies with mutable state" - which is one narrow definition of it. Clojure has solid OOP support, just not in the class-hierarchy-first sense.

Re:If AI writes your code, why use Python? by isityettime on Tuesday May 12, 2026 @07:46PM (#48116066)
In this context, what I mean is "Clojure seems like a more interesting example because inheritance-based class hierarchies with mutable state are a footgun and it lacks them; I wonder if that will help LLMs be any more effective in the language." :)

But I am curious about your favorite OOP-y tools in Clojure. I know it has flexible dispatch, it has a notion of agents that are a bit like objects in how they encapsulate state... but it's been a long time since I really used Clojure and I don't have a clear picture of what the best OOP-y idioms in Clojure look like or what makes them good to use.

Care to explain a bit more?

Re:If AI writes your code, why use Python? by iLemming on Tuesday May 12, 2026 @09:41PM (#48116850)
Clojure is opinionated about state and identity, not about paradigm in general. It will accommodate whatever paradigms as long as you respect its model of how state gets managed. But try to smuggle some pervasive mutability and you'll feel resistance. Immutability and explicit state management are non-negotiable defaults, and most paradigms fit comfortably within that constraint. Clojure bends well toward:

- Functional (its primary identity)

- Data-oriented (how you model your domain)/data-driven(how you control behaivor)

- Polymorphic/interface-driven (protocols, multimethods)

- Logic-style (via core.logic) - mostly unused

- Reactive/event-driven/actor-like concurrency (core.async, manifold)

- There's another paradigm vector (Spec/Malli), but it frankly has the gap in the terminology landscape. It's neither Dependent Typing, nor Gradual; not quite Contract-based Design; not Refinement Types (typically a static concept); calling it Schema Validation really undersells it - implies just input checking. It does something genuinely novel in combination. There isn't a single established term to capture all of that.

Where the language resists:

- Classical OOP with mutable stateful objects - you can do it via Java interop or careful use of atoms+records, but the language actively nudges you away. It won't feel natural and you'll be fighting the grain.

- Imperative/procedural style - possible, but again, why?

Re:If AI writes your code, why use Python? by librasteve on Tuesday May 12, 2026 @04:19AM (#48105609)
I just did a side-by-side with Claude Code Python vs. Raku for DSL use ... https://slangify.org if you are interested.
Re:If AI writes your code, why use Python? by regularfry on Tuesday May 12, 2026 @04:50AM (#48105811)
I've noticed that with clojure(script) unless you specifically instruct them to keep nesting levels low, they can hit a point where they make a paren placement error and can't debug their way out of it. Although in my case while one model made the error then couldn't find what it had done, a second model that I switched to was then able to identify it and back it out. So I suspect this is a transient weakness in today's models, not something fundamental.
Re:If AI writes your code, why use Python? by forlorn_mammoth on Tuesday May 12, 2026 @09:48AM (#48108267)
That's because you are holding it wrong. Just replace the ( with rs, like in strawberry.
Re:If AI writes your code, why use Python? by isityettime on Tuesday May 12, 2026 @10:49AM (#48109137)
It's a bit of a pitiful way to fail. I wonder if diffusion models could handle parenthesis matching better. And I wonder if you could rig up tools for structural editing, like with paredit.
Re:If AI writes your code, why use Python? by regularfry on Tuesday May 12, 2026 @01:10PM (#48111157)
It's one of the drawbacks of having quite so little syntax. There's just less to grab hold of.
Re:If AI writes your code, why use Python? by chamomeal on Tuesday May 12, 2026 @06:17PM (#48115340)
I don’t know, I think it might be fundamental. They think in tokens, and )))))))) might look equivalent to ))))))). Just like the strawberry problem.

The calva backseat driver extension even includes a specific paren balancer for this reason, and it works quite well

Re:If AI writes your code, why use Python? by regularfry on Wednesday May 13, 2026 @05:17AM (#48119604)
It's fundamental in that it's harder because there's less information per token. But we know it's not impossible because they can get nesting right at all, it's just a question of where the boundary is today. And if different models have different crapping-out points, then there's a gradient there and future models can do better.

In token terms it's more like the fingers problem than the strawberry problem. ")" is a single token, but the model gets confused by several repeats of the same thing.

Re:If AI writes your code, why use Python? by iLemming on Wednesday May 13, 2026 @02:20PM (#48125503)
> can't debug their way out of it

Whoa, it seems you're using LLM to generate Clojure code like you'd do it with any other "static" PL. Give it a live REPL - it works wondrously.

Re:If AI writes your code, why use Python? by bushbaba on Monday May 11, 2026 @10:42PM (#48103589)
Cool to see my hunch be backed by data. Python is a scripting language with OOP bolted on. Means there’s not really a styling consistency that other languages have, with things tending to look like PHP, a collection of various scripts that invoke one another
Re:If AI writes your code, why use Python? by toxik on Tuesday May 12, 2026 @01:35AM (#48104575)
Python was designed with objects in mind from day one.
Re:If AI writes your code, why use Python? by regularfry on Tuesday May 12, 2026 @04:58AM (#48105856)
"Designed" is doing a lot of work here. There are clearly bits that are just bolted on because they didn't want to change the syntax.
Re:If AI writes your code, why use Python? by nsbk on Tuesday May 12, 2026 @02:15AM (#48104825)
EVERYTHING in Python is an object. I’m not sure how that could have been bolted onto the language
Re:If AI writes your code, why use Python? by Daishiman on Tuesday May 12, 2026 @03:20PM (#48113123)
They don't tend to look like that. Grab any one of the packages people use in Python at is generally well-disciplined OOP code.

There are teams of people who don't come from an engineering background who do utilize Python as a series of scripts with some extra sugar. Just because you can do that doesn't mean that you should.

Re:If AI writes your code, why use Python? by w0m on Monday May 11, 2026 @11:31PM (#48103886)
Huh. This surprises me. Digging, it seems it looks like it comes down to interpreted + dynamically typed vs compiled and statically typed.

TIL. If i were to start a truly vibe project; Go would have a significant leg up.

Re:If AI writes your code, why use Python? by dnautics on Monday May 11, 2026 @11:43PM (#48103959)
and yet dynamically typed elixir wipes the floor with go.

https://github.com/Tencent-Hunyuan/AutoCodeBenchmark/blob/ma...

Re:If AI writes your code, why use Python? by bontaq on Tuesday May 12, 2026 @01:27AM (#48104530)
LLMs get ridiculous with elixir, especially with the repl, runtime, and ability to hot reload / directly test functions. It's really surprising to me it hasn't caught on more but I guess you have to see it to believe it.
Re:If AI writes your code, why use Python? by cultofmetatron on Tuesday May 12, 2026 @04:49AM (#48105804)
built my startup in elixir and can concur. elixir has a relatively consistent syntax that makes for a pretty good target for llms.

In my opinion, the only thing holding elixir back as an llm deliverable is that there's not as much training data for llms to work with.

Of course if we had a new AI that could be trained on a minimum of existing training data, common lisp would absolutely beat out everything else. everything you mentioned about elixir (repl, runtime, and ability to hot reload / directly test functions) are possible and were invented in lisp with an AST instead of a syntactic language as the ultimate build artifact. CL lets you recover from exceptions and rewind the stack before reloading your fixes and continuing. I can't even fathom the workloads an LLM could conceive of working with that.

Re:If AI writes your code, why use Python? by nojito on Tuesday May 12, 2026 @08:27PM (#48116371)
This doesn't say what you think it does.

Language like elixir were given easier problems to solve when compared to other languages.

Re:If AI writes your code, why use Python? by dnautics on Wednesday May 13, 2026 @12:32AM (#48117858)
Where does the paper say this?
Re:If AI writes your code, why use Python? by nojito on Saturday May 16, 2026 @06:08PM (#48164202)
Pages 3-6
Re:If AI writes your code, why use Python? by rossjudson on Monday May 11, 2026 @10:26PM (#48103493)
My standard joke here:

Q: Say, what does this Python code do?

A: Nobody f&%^ing knows.

Re:If AI writes your code, why use Python? by thfuran on Monday May 11, 2026 @10:48PM (#48103621)
That’s Perl.
Re:If AI writes your code, why use Python? by altmanaltman on Monday May 11, 2026 @11:12PM (#48103756)
Hey they said it had a lot of training data, not necessarily high-quality python code training data.
Re:If AI writes your code, why use Python? by ricardo_lien on Monday May 11, 2026 @11:11PM (#48103748)
This surprised me, but I can understand it - Python sucks in many ways lol.
Re:If AI writes your code, why use Python? by js8 on Tuesday May 12, 2026 @12:22AM (#48104168)
The LLMs are generally still pretty bad at (deductive) reasoning. IME they go along more with the things like variable names and comments than the actual program logic (it would be an interesting experiment to compare LLM's understanding of three identical programs with different identifiers, one with normal identifiers, one with obfuscated identifiers, and one with deliberately misleading identifiers). I also think this particular comparison comes down to typing, which helps to avoid LLM's reasoning go astray.

When we reason we need to typically propagate the constraints to arrive at a solution to these constraints. I think the best language to reason in could be something like Lean, which allows both constraints and actual code to be expressed at the same time. Although this might not be the case for current LLMs, as I explain above.

Re:If AI writes your code, why use Python? by by364 on Tuesday May 12, 2026 @02:21AM (#48104866)
wait till you look inside a neural network and realize they're incapable of deductive reasoning! amazing how many devs that talk about "AI" would probably have a hard time telling apart deductive and inductive reasoning.
Re:If AI writes your code, why use Python? by js8 on Tuesday May 12, 2026 @02:55AM (#48105082)
That's actually untrue. Yes, training a neural network is mostly inductive reasoning process. However, the ability of LLMs to reason deductively (as a chain of thought, although it's probably not the only mechanism) is an emergent phenomenon, rising up from the training it on data and problems that exhibit deductive reasoning.

But of course, because the deductive reasoning is inductively taught, there might be various shortcuts which compromise the soundness of deductive reasoning. That's why my claim - LLMs are not as good at it as other algorithms, although they have many other strengths that make up for it.

Re:If AI writes your code, why use Python? by kelseyfrog on Tuesday May 12, 2026 @02:40AM (#48104984)
How so?
Re:If AI writes your code, why use Python? by antonvs on Tuesday May 12, 2026 @10:48PM (#48117241)
> wait till you look inside a neural network and realize they're incapable of deductive reasoning!

You could just as well say, wait until you look inside a human brain and realize they’re incapable of deductive reasoning!

Of course we’re not actually able to do that, but if you could you might very well find a similar apparent lack of whatever it is you expect to see at that level.

Re:If AI writes your code, why use Python? by fulafel on Tuesday May 12, 2026 @01:03AM (#48104386)
What would comparing rates across languages tell in the context of this benchmark? Are the tasks the same or robustly difficulty-normalized across the languages?

Also somehow the 2 language comparison graphs (avg percentile and success rate) rank Python in dramatically different positions, with Python outranking Rust and Java in the success rate. What does the avg percentile mean in this context?

Re:If AI writes your code, why use Python? by gertlabs on Tuesday May 12, 2026 @03:21AM (#48105251)
Success rate measures the amount of code submissions that played the game/environment without failing (compilation, breaking game rules, violating sandbox, etc.), so it makes sense Python would do better there.

Percentile compares only the submissions that didn't hard-fail. So they are a bit different, and we incorporate them both into the combined score.

Re:If AI writes your code, why use Python? by Yokohiii on Tuesday May 12, 2026 @10:41AM (#48109009)
Comparing rust to javascript, the gscore is rather similar in distribution, while python falls off. I don't see why python should be so much worse?
Re:If AI writes your code, why use Python? by gertlabs on Tuesday May 12, 2026 @11:50AM (#48110028)
This was an unexpected result, and it held up under large sample sizes.
Re:If AI writes your code, why use Python? by Yokohiii on Wednesday May 13, 2026 @05:04AM (#48119497)
Did you try to analyze a few of the failures? I would be very intrigued here.
Re:If AI writes your code, why use Python? by robot-wrangler on Tuesday May 12, 2026 @01:09AM (#48104418)
> Data here: https://gertlabs.com/rankings?mode=agentic_coding

Oh wow, we got "tribal domination", "market simulator" and "adversarial customer service". I don't know what those are but it sure sounds like big torment nexus milestones

Maybe we could at least play nicer games like hackenbush and act surprised when there's some wicked use-case that's isomorphic.

EDIT: Ok fine. I like "Rubik's Cube Chess" a lot. Never heard of it, is this analyzed formally at all? Hard to search for since there's tons of collisions

Re:If AI writes your code, why use Python? by gertlabs on Tuesday May 12, 2026 @04:48PM (#48114327)
Not formally analyzed -- in practice, we see a lot of repetition/draws from code submissions. Our version is custom, and uses more pawns, which can move in any direction but don't upgrade to other pieces. We try to include just as many cooperatives games as competitive games, but both are important for measuring model ability in the real world.
Re:If AI writes your code, why use Python? by stingraycharles on Tuesday May 12, 2026 @01:42AM (#48104632)
I’m super surprised that C++ scores so high, this does not match our experience at all, and for anything performance critical it always drops the ball completely.

I also don’t understand how these “games” map to real world complex problems. How are you measuring success? How does “adversarial customer service” map to “this LLM is better at C++ than the other” ? How are you sure you’re not just benchmarking language suitability for a problem ?

I have so many questions about this…

Re:If AI writes your code, why use Python? by gertlabs on Tuesday May 12, 2026 @02:36AM (#48104955)
- The majority of the environments can be played where the agent writes code to work the environment towards a goal. So the model is problem solving, and it has to do so in a particular language, and some languages outperform others. We have a lot of data to back up the improved compiled language performance, but note these are for successful code submissions (failures are counted in a different metric). With the Languages chart we're moreso measuring how good the ideas they came up with were, once they already compiled/didn't fail basic environment rules.

- You need to run evals at scale to converge on this kind of behavior: these benchmarks run samples across a pool of hundreds of different types of environments

- Some games are too open-ended to support code play. The customer service game is an example of that, where models are called on every tick of the environment to make a decision (that's the 'decision making' part of the evals which is weighted lowest). Very interesting results but not testing coding ability, just general reasoning.

Not sure what issues you have with models writing C++ vs other languages, but I can imagine all sorts of C++ specific bottlenecks not directly related to the model's ability to reason in the language, like the dependencies, verbosity, extra effort to manage memory, etc. I have only done a little C/embedded work since agentic coding happened but I was pleasantly surprised.

Re:If AI writes your code, why use Python? by bdamm on Tuesday May 12, 2026 @03:04AM (#48105141)
I've found the current cream of the crop to be quite good at resource management. I've sic'd Opus on some very gnarly lambda context bugs and it has directly improved the stability of the product I'm working on right now in a very substantial way. It couldn't quite do it entirely by itself, but with the right nudges here and there, it has absolutely accellerated the debugging work. It is particularly good at analyzing crashes and piecing together the detective work of what preconditions must exist for certain crashes to occur.
Re:If AI writes your code, why use Python? by stingraycharles on Tuesday May 12, 2026 @05:06AM (#48105897)
I think my problem is that I’m not sure I understand whether you evals are testing language abilities or reasoning abilities.

It seems to present results as if they’re testing language abilities, but the problems seem to be reasoning problems.

Re:If AI writes your code, why use Python? by gertlabs on Tuesday May 12, 2026 @01:10PM (#48111150)
I'm not so sure there's a difference. The main thing we want to measure for LLMs is broad reasoning capability, but seeing how that ability changes under different constraints (like programming language) is the interesting part.
Re:If AI writes your code, why use Python? by stingraycharles on Tuesday May 12, 2026 @09:46PM (#48116889)
Ok, when you put it that way, I agree that this is in fact interesting. Maybe you should actually put that sentence in some kind of form on your website because it clarifies a lot.
Re:If AI writes your code, why use Python? by gertlabs on Tuesday May 12, 2026 @10:16PM (#48117045)
Appreciate the feedback, we're taking a lot of good recommendations from this thread, which will be live in a few days: better explanations/tooltips, more samples for any filter sets we offer (or show sample counts if potentially noisy), and adding some functional languages like Clojure
Re:If AI writes your code, why use Python? by shimman on Tuesday May 12, 2026 @04:09PM (#48113770)
It's a VC backed company using "scoreboards" as a means of marketing. There is nothing scientific or academic about this, stop assuming as much.
Re:If AI writes your code, why use Python? by stingraycharles on Tuesday May 12, 2026 @09:55PM (#48116938)
You’re probably correct, but the problem I have is that even a lot of “scientific” benchmarks have similar issues. The whole AI benchmark landscape seems to suffer from similar issues, that benchmarks don’t appear to be matching real world experience (eg open weight Chinese models scoring super high on all benchmarks, while clearly being inferior when using in real life).
Re:If AI writes your code, why use Python? by shimman on Wednesday May 13, 2026 @09:35AM (#48121728)
No offense, but honestly look into who are making these "benchmarks" it's all industry insiders little to no academics to be found. If you listen to actual academics on the subject they are far more realistic than what VC fools will tell you otherwise, which makes sense: one has an incentive to further the knowledge of humanity while the other wants to rat fuck the world to make a quick buck.
Re:If AI writes your code, why use Python? by riedel on Tuesday May 12, 2026 @02:43AM (#48105002)
My feeling is that for agentic tasks this is not only language design but also LSPs, error messages and static analysis capabilities that dominate the benchmarks. It would IMHO be interesting to look into better subsets of python and style/rewrite techniques as well as alternative linter and their effects on performance.
Re:If AI writes your code, why use Python? by andai on Tuesday May 12, 2026 @04:18AM (#48105605)
But then why does JS score 50% better? (Almost identical to TypeScript.)

Actually, JS can get a surprising amount of "intellisense" as well. Not sure if that was used here though.

Re:If AI writes your code, why use Python? by kevinautumn on Tuesday May 12, 2026 @03:07AM (#48105156)
A strict compiler is basically a free feedback loop for the LLM.
Re:If AI writes your code, why use Python? by andai on Tuesday May 12, 2026 @04:19AM (#48105610)
Also the human. (I like being told about my bugs when I write them, instead of at some generally much more unpleasant moment in the future.)
Re:If AI writes your code, why use Python? by hooloovoo_zoo on Tuesday May 12, 2026 @02:47AM (#48105031)
Mm, the code is constrained to run inside a game 'tick'?
Re:If AI writes your code, why use Python? by andai on Tuesday May 12, 2026 @04:10AM (#48105550)
I thought it might have to do with the type system, but JavaScript type system is atrocious and it scores about 50% higher. So my theory does not make much sense.
Re:If AI writes your code, why use Python? by doug_durham on Tuesday May 12, 2026 @03:40PM (#48113369)
Reasoning??? Since when to LLMs reason. The word "reasoning" has become almost worthless in modern computer science due to misuse.
Re:If AI writes your code, why use Python? by antonvs on Tuesday May 12, 2026 @10:43PM (#48117213)
LLMs can regularly produce correct conclusions from the input they’re given. When a human does that, we call the process involved “reasoning”. LLMs can even explain how their conclusions are supported in ways that again, if a human employed them, would be called reasoning.

As such, functionally speaking - focusing on inputs and outputs - models can be said to reason. If you’re tempted to argue that it’s “only statistics” or similar, consider that human reasoning is only chemical and electrical signals in neurons.

Re:If AI writes your code, why use Python? by rightbyte on Wednesday May 13, 2026 @01:39AM (#48118260)
I think I've read some study that the LLM reasoning is a mirage.