What's the best programming language for coding agents?
- AI
- Programming
- Developer Tools
- Open Source
The post benchmarks how well coding agents handle different languages on tasks like implementing a Zstandard decoder and a Pandoc-like converter, looking at token usage, speed, and how close outputs get to correct behavior. The headline question is "best language for coding agents," but the article itself is much less decisive than that. Several commenters pointed out that the variance is high, the task choice is narrow, and the results mostly do not support sweeping claims about one language being intrinsically better for LLMs. Python and JavaScript looked strong on some charts, oddballs like J and Factor often struggled, and the safer conclusion was that modern models already generalize across many languages better than people expected.
Choose a language stack that gives agents fast, reliable checks like compilers, linters, tests, and strong conventions, then optimize your repo and workflows around those loops. Treat language-level token efficiency as a weak signal unless your tasks, tooling, and libraries match the benchmark closely.
-
danluu.com
- Discuss on HN