r/ProgrammingLanguages • u/malderson • Jan 09 '26
Blog post Which programming languages are the most token efficient?
https://martinalderson.com/posts/which-programming-languages-are-most-token-efficient/
0
Upvotes
View all comments
Show parent comment
3
u/Sumandora Jan 09 '26
Apart from the fact, that I went through some rosetta code tasks and couldn't find any where APL was actually more tokens than Clojure, you didn't understand my point. This kind of test doesn't tell you what language is actually more token-saving in practice due to a ton of variables. Rosetta Code is not a code golf, go there instead. But then again, an LLM will not code golf its examples. This was the point, an LLM will not respond optimally. You mention TOON, while I'm not exactly sure about it, most of these serialization languages were made to be used as an input, not as an output, where the minimizing tokens actually makes sense and is controllable.
PS: You probably didn't remove comments on most APL solutions. I saw that most of them are quite verbose compared to Clojure, because the answers are often just a handful of characters and people tend to comment more around them to fill the space. Binary search was quite funny offering a huge reimplementation and just mentioning that it's actually just a single character.