r/ArtificialInteligence • u/yazanwael • 16h 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?
5
Upvotes
•
u/AutoModerator 16h ago
Heads-up: your flair was changed to Analysis / Opinion. News and Research posts need a link to the article, paper or source. If you have one, edit it into the post and send us a modmail, and we'll switch the flair back.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
2
u/authorinthesunset 15h ago
Speaking from experience they do fairly well. You need to give it concise instructions with examples. And if you're using a model where you can set a scheme for structured output. I.e something likeGpt
strict: true.If your model doesn't support it you should test the output yourself and feed it back into the model with any errors.
You will of course have better results with a model actually trained on your language.
1
u/CS_70 14h ago
Extracting and using relationships far deeper than the surface form is exactly what these algorithms are designed to do.
So in short: yes.
1
u/magicdoorai 12h 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.
1
u/audioen 11h ago
They iterate and try again and converge to a solution. It is less efficient than a known language, because the system is not previously known, and rather than "just knowing the answer" they have to reason out the answer.
1
u/JoeStrout 3h ago
I’ve done this, more than once. They do shockingly well.
1
u/munchin-grr 3h ago
I have vibe coded an compiler for an language i has halucinated and then vibe coded an game in it. So it works, even if it's not the smartest thing to do.
1
u/Fizzy_beeG 2h ago
Speaking from real experience developing never before seen ai architecture they would perform terribly. Anything they did not perform terribly on the first time they will try to rewrite every chance they get. Anyone who says otherwise is not an "expert".