Which programming languages are most token-efficient? - Martin Alderson
martinalderson.com · 816 words · saved by 1 readers
Comparing token efficiency across 19 popular programming languages using RosettaCode data - from Clojure to C, there's a 2.6x difference.
I've been trying to think through what happens to programming languages and tooling if humans are increasingly no longer writing it. I wrote about how good agents are at porting code recently , and it got me thinking a bit more about what constraints LLMs have vs humans. One of the biggest constraints LLMs have is on context length. This is a difficult problem to solve, as memory usage rises significantly with longer context window in current transformer architectures. And with the current memory shortages, I don't think the world is drowning in memory right now. As such, for software developm
saved by
related reading
- Composer2.pdfcursor.com
- Shipping at Inference-Speed | Peter Steinbergersteipete.me
- [2604.22750] How Do AI Agents Spend Your Money? Analyzing and Predicting Token Consumption in Agentic Coding Tasksarxiv.org
- Lean Software Scaling Laws · Gwern.netgwern.net
- 2025: The year in LLMssimonwillison.net
- crawshaw - 2025-01-06crawshaw.io
- Benchmarking Coding Agents on Databricks’ Multi-Million Line Codebasedatabricks.com
- Introducing SWE-grep and SWE-grep-mini: RL for Multi-Turn, Fast Context Retrieval | Cognitioncognition.ai
- Code is cheap. Show me the talk. - nadh.innadh.in
- Inference economics of language modelsarxiv.org
- State of AI 2025: 100T Token LLM Usage Study | OpenRouteropenrouter.ai
- 2506.17298arxiv.org