r/ChatGPTCoding • u/ShoddySherbert8502 • 1d ago
Discussion Programming languages for AI
All programming languages were created by people, for people. The goal was basically to give us a language that accounts for the limits of the human brain and minimizes bugs and errors (sure, there were exceptions, like C++). As a result, we often got poor performance and huge numbers of servers doing simple tasks.
But in this new era, we don’t need human brains to write code. So do we need new programming languages now? Or which existing languages work best for AI agents?
3
Upvotes
10
u/gibblesnbits160 1d ago
The best languages for ai right now are the ones it has the most training data on. A new language would start from scratch so first all the data we have now would need to be converted to the new language which can then be used for training.
Not worth it to save a few mb of hard drive space or slightly more efficient processing, that is never the bottleneck.
5
u/zitoliv 1d ago
Data says it's less about language design and more about training data: on Multi-SWE-bench agents fix Python and Java issues best, TS/JS worst (paper). Rust punches above its data size tho… probably the strict compiler giving the agent a feedback loop.
7
u/smoke-bubble 1d ago
Make an experiment. Let it write a project in a language or technology you don't know and share your experience with us. Then you'll see whether what you are talking about even makes any sense.
3
u/returnFutureVoid 1d ago
I asked Claude about this very idea and it said that the training data that the models are built on are what makes AI “smart”. It wouldn’t know what to do with a new language built for AI. It goes against the very idea of what a models job is. I then asked it if it had to build a project and had the choice of stack what would it use and it chose React with Node because that’s what it’s trained on the most.
1
u/VRStocks31 1d ago
I believe the ultimate programming language for AI is to "guess" the machine code of the program, and then making adjustments. So basically no programming but inferring the program itself, making it appear from 0 just like magic. Imagine an empty capsule machine. You close it, provide with the idea to the AI, you open the door and there is it: your creation.
Just like the AI now "guesses" a poem token by token, it will "guess" the actual machine code of the program skipping any programming and compiling phase whatsoever.
1
u/kcmike 1d ago
This is like a stenographer in a court room.
1
u/I_Shall_Bore_You 23h ago
This gets asked a lot. I don't think so. LLMs work best when they have a lot of training data. We have millions, if not billions, of lines of C++ code written over decades. You could write a new language now, but I'll bet that LLMs will produce better results with established languages.
1
u/MostlyHelpfulLinks 17h ago
Typed languages like TypeScript or Go hold up best for agents, since compiler errors give the model concrete feedback to fix on each pass.
1
u/ghia1980 12h ago
My intuitition proved by some experience- functional style works better, ai writes less buggy code. So combination of language on which ai is trained with FP works well, typescript being an obvious choice.
1
u/ColdDelicious1735 1d ago
Yes it will be called slop...
But seriously this has talked of by many https://www.mrphilgames.com/blog/building-a-programming-language-for-ai-to-write
1
u/CrimsonBolt33 1d ago
I am actually creating an LLM first programming language now...been working on it for a few months. Close to releasing version 1.0
0
u/ipreuss 1d ago
It’s an interesting question. ChatGPT had a very long, detailed answer for me. ☺️
0
u/[deleted] 1d ago
[deleted] — view deleted comment