r/ChatGPTCoding • • 22d 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?

1 Upvotes

36 comments sorted by

View all comments

1

u/Ok-Experience9462 18d ago

The answer depends on what you want to prioritize.

1. Generating correct code with as few mistakes as possible
Widely used programming languages, such as Python, are strong candidates.

2. Reducing token consumption
My research suggests that languages capable of expressing more meaning with less code can be effective.

3. Reducing the time from prompt to execution
One possible approach is to generate executable files, such as .exe files, directly. This would eliminate the step of compiling generated source code.
However, executable files can be larger than their source code, and depending on how the output is represented, generating them may consume more tokens. The model would also need to learn a wide range of technical details, including CPU instruction sets, executable file formats, and OS-specific behavior, which would likely make training more challenging. Even so, this is feasible in principle.