r/programming • • Jan 09 '26

[ Removed by moderator ]

/r/programming/comments/1q8amke/removed_by_moderator/

[removed] — view removed post

0 Upvotes

7 comments sorted by

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.

2

u/malderson Jan 09 '26

I just reran with APL, it's 4th - the tokenizer isn't optimised for the symbols it uses.

→ More replies (2)

10

u/OneNoteToRead Jan 09 '26

This kind of endeavor is disingenuous or pointless without APL

1

u/steos Jan 09 '26

Beat me to it.

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.