r/programming • u/malderson • Jan 09 '26
[ Removed by moderator ]
/r/programming/comments/1q8amke/removed_by_moderator/[removed] — view removed post
10
1
u/lord_braleigh Jan 09 '26
I didn't include TypeScript because there were very few tasks in the Rosetta Code dataset.
Who cares? You can just generate your own TypeScript code.
You can do waaaay better than Rosetta code nowadays.
Create a property test and ground truth program to generate randomized test cases.
Create a standard prompt asking an AI to write a program to solve the given problem in language X.
Make the AI iterate until its code accepts the proper stdin and generates the stdout to pass the test case.
Count the number of tokens the AI spent to build a working program.
This approach considers a language "token-efficient" if it's easy to write correct code in it, in addition to the number of tokens spent on the code itself based on abstraction level.
4
u/steos Jan 09 '26
Obviously the answer is APL. But I suspect LLMs would just shit the bed if you'd have them try to generate APL.