frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Which programming languages are most token-efficient?

https://martinalderson.com/posts/which-programming-languages-are-most-token-efficient/
19•tehnub•1h ago

Comments

btbytes•53m ago
Not surprisingly, it is J [1], an APL dialect.

[1] https://www.jsoftware.com/

epolanski•32m ago
I doubt this to be a meaningful metric for anything but code exploration in a larger codebase.

E.g. when it comes to authoring code, C, which comes language, is by far one of the languages that LLMs excel most at.

HarHarVeryFunny•31m ago
I don't think context size is really the limit for larger codebases - it's more about how you use that context.

Claude Code makes some efforts to reduce context size, but at the end of the day is loading entire source files into context (then keeping them there until told to remove them, or context is compacted). One of the major wins is to run subagents for some tasks, that use their own context rather than loading more into CCs own context.

Cursor makes more efficient use of context by building a vector database of code chunks, then only loading matching chunks into context (I believe it does this for Composer/agentic use as well as for tab/autocomplete).

One of the more obvious ways to reduce context use in a larger multi-module codebase would be to take advantage of the split between small module definition (e.g. C++ .h files) and large module implementations (.cpp files). Generally you'd only need to load module interfaces/definitions into context if you are working on code that uses the module, and Cursor's chunked approach can reduce that further.

For whole codebase overview a language server can help locate things, and one could use the AI to itself generate shortish summaries/overviews of source files and the codebase and structure, similar to what a human developer might keep in their head, rather than repeatedly reading entire source files for code that isn't actually being modified.

It seems we're really in the early days of agentic coding tools, and they have a lot of room to get better and more efficient.

CuriouslyC•3m ago
The approaches used by Claude Code and Cursor are inefficient. It's possible to calculate a covering set for a piece of code and provide that to an agent directly via a tool, and it turns out that this can reduce context usage in SWE-bench style tasks by >90% over RAG and grep/read.

If you're interested in learning more, https://github.com/sibyllinesoft/scribe

bicx•29m ago
Realistically, it’s also a function of how many iterations it takes for an AI agent to correctly solve a problem with a given language. I’d imagine most AI agents would frequently have to redo J or F# code, as they are fairly uncommon languages with much smaller training set than JavaScript or Python.
switchbak•20m ago
I would expect that we’ll end up compressing (or whatever term you would use) this at some point so many of those syntactical differences will not be as significant.

But I would love for more expressive and compact languages to do better, selfish as I am. But I think training data size is more of a factor, and we won’t be all moving up Clojure any time soon.

bri-holt•19m ago
I suspect DB queries will also benefit from token-efficient query languages as RAG queries grow exponentially. I've been working on one such language that is emitted in a token-efficient IR and compiles to SQL. https://memelang.net/

Debian goes retro with a spatial desktop that time forgot

https://www.theregister.com/2026/01/09/desktop_classic_system/
1•mmphosis•3m ago•0 comments

Official TypeScript Cheat Sheets

https://www.typescriptlang.org/cheatsheets/
1•doodlesdev•6m ago•0 comments

Himalayas bare and rocky after reduced winter snowfall, scientists warn

https://www.bbc.com/news/articles/clyndv7zd20o
1•koolhead17•8m ago•0 comments

Rethinking Helix

https://asta.boserup.eu/forest/rethinking-helix/
1•todsacerdoti•9m ago•0 comments

What the actual science says about "brain rot" [video]

https://www.youtube.com/watch?v=tdIUMkXxtHg
1•mgh2•10m ago•0 comments

Hepatic adaptation to chronic metabolic stress primes tumorigenesis

https://www.cell.com/cell/fulltext/S0092-8674(25)01366-2
1•PaulHoule•14m ago•0 comments

Code Is Cheap Now. Software Isn't

https://www.chrisgregori.dev/opinion/code-is-cheap-now-software-isnt
3•fs_software•15m ago•0 comments

Malaysia and Indonesia block Musk's Grok over sexually explicit deepfakes

https://www.bbc.com/news/articles/cg7y10xm4x2o
2•breve•15m ago•0 comments

Show HN: The Thiele Machine – Coq-Verified Computational Model Beyond Turing

https://github.com/sethirus/The-Thiele-Machine
1•nwthiele•19m ago•0 comments

Barista: Serving up fresh stats for your Claude Code sessions

https://github.com/pstuart/pstuart/tree/main/barista
1•handfuloflight•20m ago•0 comments

Show HN: LifeOps – Relationship intelligence for developers (local-first)

https://github.com/senguttuvang/LifeOps-CLI
1•seng•21m ago•0 comments

CES 2026: "Worst in Show" – Calling Out Gadgets That Make Things Worse

https://www.ifixit.com/News/115344/worst-in-show-returns-at-ces-2026-calling-out-gadgets-that-mak...
2•gnabgib•22m ago•0 comments

Can Shawn Levy Resuscitate "Star Wars?"

https://www.nytimes.com/2026/01/08/movies/shawn-levy-star-wars-stranger-things.html
4•bookofjoe•28m ago•1 comments

Silent Rebuilds: Keeping Container CVE Counts Near-Zero

https://www.bretfisher.com/silent-rebuilds/
1•ropable•47m ago•1 comments

Anthropic bans xAI from using Claude in Cursor

https://xcancel.com/kyliebytes/status/2009686466746822731
5•Palmik•50m ago•1 comments

Federal prosecutors open criminal investigation into the Fed and Jerome Powell

https://www.cnn.com/2026/01/11/business/federal-prosecutors-criminal-investigation-federal-reserv...
10•washedup•1h ago•1 comments

Critical Analysis of Air Up's Scientific Marketing Claims

https://zenodo.org/records/18197315
2•OrthoBottle•1h ago•1 comments

Uncrossy

https://uncrossy.com/
9•dgacmu•1h ago•3 comments

Show HN: Constela – Build web pages using JSON instead of JavaScript

https://github.com/yuuichieguchi/constela
1•yuu1ch13•1h ago•0 comments

Which programming languages are most token-efficient?

https://martinalderson.com/posts/which-programming-languages-are-most-token-efficient/
19•tehnub•1h ago•7 comments

Fed Chair Powell says he's under criminal investigation

https://www.cnbc.com/2026/01/12/fed-jerome-powell-criminal-probe-nyt.html
8•victor106•1h ago•1 comments

Men Who Are Super Competitive About Sleep

https://www.wsj.com/style/fashion/competitive-about-sleep-gear-sleepwear-76761041
3•lxm•1h ago•1 comments

Karmic Tail Calculator – a free, explainable Matrix of Destiny tool

https://destiny-matrix.cc/en/tool/karmic-tail-calculator/
1•yxchen1994•1h ago•1 comments

AI models were given four weeks of therapy: the results worried researchers

https://www.nature.com/articles/d41586-025-04112-2
3•andromaton•1h ago•4 comments

I made a simple agent for PR reviews. Don't use it

https://xeiaso.net/blog/2026/reviewbot/
3•xena•1h ago•1 comments

Show HN: Fetch – A minimalistic and super fast macOS app launcher

https://github.com/hackerbirds/fetch
2•hackerbirds•1h ago•0 comments

Show HN: Tmp.tf – Cross-device text transfer with just a channel name, no signup

https://tmp.tf
1•iamlin•1h ago•1 comments

BowMac Sign

https://en.wikipedia.org/wiki/BowMac_sign
1•kerim-ca•1h ago•0 comments

Show HN: Web CLI v0.2.4 – Added YAML/JSON validators with auto-fix

https://github.com/pozgo/web-cli
1•polinux•1h ago•0 comments

Show HN: Neurop Forge – AI executes verified blocks instead of writing code

https://github.com/Louw115/neurop-forge
1•LBWasserman•1h ago•1 comments