r/ArtificialInteligence • • 3d ago

📊 Analysis / Opinion AI coding performance using new programming language

AI experts out here, how would today's AI models perform if asked to develop a program using a new programming language never trained on by just studying its references and guidelines?

Are they capable of understanding the symantics and syntax to actually code using this new programming language? or will they fail because they never trained on it?

6 Upvotes

12 comments sorted by

View all comments

1

u/magicdoorai 3d ago

You can test that question without assuming the answer is a universal yes or no. Invent a tiny language with a few syntax rules and one unusual semantic rule (for example, subtraction evaluates right-to-left), write a reference interpreter and tests yourself, then give the model the reference but not the hidden tests.

Ask it to write a program with a mix of ordinary and edge cases. Score separately: does it parse, do the visible examples pass, and do the withheld cases have the intended behavior? Then change only the unusual rule in the reference and rerun: that helps distinguish following the supplied specification from leaning on familiar-language habits. Use a fresh language/specification and avoid publishing it before the test if training exposure is the concern—but you still can't prove a model has never seen every underlying idea. This is a proposed experiment, not a measured result. AI-assisted suggestion.